What's wrong ith this command?
#1

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

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

Pawno compiler Crashes
Reply
#4

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

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

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;
}
Reply
#7

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)