SA-MP Forums Archive
error 017: undefined symbol "SendClientMesssageToAll" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 017: undefined symbol "SendClientMesssageToAll" (/showthread.php?tid=533151)



error 017: undefined symbol "SendClientMesssageToAll" - brandypol - 22.08.2014

I was trying to make an auto announce system for my server and when i compiled i got this error message :

error 017: undefined symbol "SendClientMesssageToAll"

What can I do to correct this error ?


Re: error 017: undefined symbol "SendClientMesssageToAll" - ThePhenix - 22.08.2014

It's not SendClientMesssageToAll, you are adding an extra s, maybe a typo.

PHP код:
SendClientMessageToAll 



Re: error 017: undefined symbol "SendClientMesssageToAll" - Sledgehammer - 22.08.2014

You probably got something conflicting with SendClientMessageToAll but there is a way around it such as loop around all the players

Код:
for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        SendClientMessage(i, 0x33AA33AA, "Someone spawned!");
    }
Credits to the wiki witch can be found here: https://sampwiki.blast.hk/wiki/Loops

EDIT: I didn't see the typing error either but this would be a alternative.