SA-MP Forums Archive
Help - 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: Help (/showthread.php?tid=480633)



Help - manoc - 11.12.2013

....


Re: Help - Zamora - 11.12.2013

Write the code..


Re: Help - manoc - 11.12.2013

....


Re: Help - Zamora - 11.12.2013

Try this
pawn Код:
OnPlayerCommandText(playerid, cmdtext[])
{  
 if (strcmp("/cmds", cmdtext, true, 10) == 0)    
 {              
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");      
 return 1;  
 }  
 return 0;}
Edit: Using mobile, that's why I can't fix the loose destination error.
Edit1: Fixed a bracket.


Re: Help - Wizza - 11.12.2013

Your code is basiclly dead, you have everything out of place lol here is the correct one
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/cmds", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
        return 1;
    }
    return 0;
}



Re: Help - manoc - 11.12.2013

....