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


Messages In This Thread
Simple question - by kdaniel2410 - 30.09.2016, 18:47
Re: Simple question - by Vince - 30.09.2016, 18:54
Re: Simple question - by kdaniel2410 - 30.09.2016, 18:55
Re: Simple question - by AMouldyLemon - 30.09.2016, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)