Nothing happends with this command? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Nothing happends with this command? (
/showthread.php?tid=125838)
Nothing happends with this command? -
bartje01 - 05.02.2010
Hey guys. I have a radio cmd but nothing happends when I do /r text
Код:
if (strcmp("/r", cmdtext, true, 2) == 0)
{
new str[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(str,sizeof(str) , "[Radio] (%s): %s",pName, cmdtext [ 3 ] );
for(new loopplayers = 0; loopplayers<MAX_PLAYERS; loopplayers ++)
{
if(IsPlayerConnected(loopplayers))
{
if (GetPlayerColor(playerid) == GetPlayerColor(loopplayers))
{
SendClientMessage(loopplayers,0xFF0000AA,str); // red
}
}
}
return 1;
}
Can someone fix this script for me or tell me what I have to do please?
Kind regards, bart
Re: Nothing happends with this command? -
bartje01 - 05.02.2010
Nobody knosw how to fiX?