
08-11-2010, 08:26 PM
|
|
o.o
|
 |
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
|
|
Quote:
Originally Posted by khortez
Nothing wrong with that, helps people that don't know how to use 'for' and the uses of it understand it better. Also saves possible future questions. Thanks guys, all this helped a lot. Now I got one last thing fustrating me,
Now for me this is pretty pathetic on my part if I really did this wrong. Such a simple script. But not working for me.
I was trying to test my knowledge on arrays by making a list, and then having a specific variable be output in F2 in-game. That failed, so I went even simpler. Just to see if I was doing something wrong
This is what I did....
PHP Code:
//#CLIENTSIDE
function onPlayerChats(){
if(player.chat == "/test")
echo("test");
}
I tried sendRPGMessage(); too like someone suggested, but that was a no-go.
I Also tried this server-side, and it worked, once? Out of the 5x i tried calling on it.
What did I mess up on?
|
Is that exactly what it is in your script? I don't see a problem with it. |
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
|
|
|
|