25.03.2010, 18:58
what have i done wrong here? I want it so that it sends the message (once) every time i go near the coordinates.
I get these errors:
3607 = this line:
Код:
new playerReceivedMessage[MAX_PLAYERS] = 0; public liftcheck(playerid) { if(IsPlayerInRangeOfPoint([playerid], 15, -2464.9296875,1522.9167480469,27.570457458496)){ if(playerReceivedMessage[playerid] == 0) { SendClientMessage([playerid], 0x99FF66AA, "Use /lift to bring the lift up and /lift to take it back down"); GameTextForPlayer([playerid], "/lift to bring the lift up and /lift to take it back down", 5000, 5); playerReceivedMessage[playerid] = 1; } } else { playerReceivedMessage[playerid] = 0; } }
Код:
C:\Users\Corran\Desktop\Samp Server Latest Latest (RC5)\gamemodes\CJfreeroam.pwn(3607) : error 029: invalid expression, assumed zero C:\Users\Corran\Desktop\Samp Server Latest Latest (RC5)\gamemodes\CJfreeroam.pwn(3607) : warning 215: expression has no effect C:\Users\Corran\Desktop\Samp Server Latest Latest (RC5)\gamemodes\CJfreeroam.pwn(3607) : error 001: expected token: ";", but found "]" C:\Users\Corran\Desktop\Samp Server Latest Latest (RC5)\gamemodes\CJfreeroam.pwn(3607) : error 029: invalid expression, assumed zero C:\Users\Corran\Desktop\Samp Server Latest Latest (RC5)\gamemodes\CJfreeroam.pwn(3607) : fatal error 107: too many error messages on one line
Код:
if(IsPlayerInRangeOfPoint([playerid], 15, -2464.9296875,1522.9167480469,27.570457458496)){