30.09.2016, 18:47
Can anyone see a problem with the following?
EDIT: Pastebin because the above code looks shit!
I get this error but this function is practically identical to a one before hand which works flawlessly.
Quote:
stock SendLocalActionMessage(playerid, action[]) { new str[128]; new Float, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); format(str, sizeof(str), "%s %s", GetPlayerCleanName(playerid), action); for(new i; i < MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i, 8, x, y, z) SendClientMessage(i, COLOR_RPMESSAGE, str); } return 1; } |
I get this error but this function is practically identical to a one before hand which works flawlessly.