SA-MP Forums Archive
What's wrong ith 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)
+--- Thread: What's wrong ith this command? (/showthread.php?tid=338667)



What's wrong ith this command? - AMEENAMEEN - 30.04.2012

pawn Код:
if(strcmp(cmd, "/lol", true) == 0)
    {
        if(IsPlayerConnected(playerid))
            {
                SendClientMessage(playerid, {FF0037}Hello {FF009D}And {B300FA}Hi ");
            }
        }
        return 1;



Re: What's wrong ith this command? - newbienoob - 30.04.2012

SendClientMessage(playerid, -1,"{FF0037}Hello {FF009D}And {B300FA}Hi");


Re: What's wrong ith this command? - AMEENAMEEN - 30.04.2012

Pawno compiler Crashes


Re: What's wrong ith this command? - newbienoob - 30.04.2012

pawn Код:
SendClientMessage(playerid, -1,"{FF0037}Hello {FF009D}And {B300FA}Hi");
//SendClientMessage(playerid, color, messages)



Re: What's wrong ith this command? - AMEENAMEEN - 30.04.2012

I know , i mean i want when a player types this command it sends him this text


Re: What's wrong ith this command? - newbienoob - 30.04.2012

Try this

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/lol",cmdtext,true,10) == 0)
    {
        SendClientMessage(playerid, -1,"{FF0037}Hello {FF009D}And {B300FA}Hi");
        return 1;
    }
    return 0;
}



Re: What's wrong ith this command? - sniperwars - 30.04.2012

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
       if(strcmp(cmdtext, "/lol", true, 10) == 0)
       {
           SendClientMessage(playerid, -1, "{FF0037}Hello {FF009D}And {B300FA}Hi");
           return 1;
       }
       return 0;
}