Simple question
#1

Can anyone see a problem with the following?

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;
}

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.

Reply
#2

Код:
if(IsPlayerInRangeOfPoint(i, 8, x, y, z) SendClientMessage(i, COLOR_RPMESSAGE, str);
Now you figure out where the missing red closing bracket is supposed to go.
Reply
#3

Well... thats embarrassing,

Thanks.
Reply
#4

Nevermind
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)