SA-MP Forums Archive
Why is this not working? - 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: Why is this not working? (/showthread.php?tid=301244)



Why is this not working? - Super_Panda - 03.12.2011

Код:
if (strcmp("/test", cmdtext, true, 10) == 0)
	{
	    new str[124];
		format(str, sizeof(str), "~n~~n~~n~~n~~n~~n~~w~Esta por llegar un nuevo ~g~reporte de ~r~%s");
		GameToAdmins(str);
		return 1;
	}

stock GameToAdmins(text[])
{
    for(new a, g = GetMaxPlayers(); a < g; a++)
        if(IsPlayerConnected(a) && IsPlayerAdmin(a))
            GameTextForPlayer(a, text);
}