#1

i tried to make a thing which is:
if i am in game and i write "?" without anything it will say ... in color purple(What?) what should i put instead of
if(strcmp(cmd,
??
Reply
#2

You mean, When I type /? or ? I get "What?" in purple ?
If yes, then do you mean /? or just ?, If you mean /? then
pawn Код:
if(!strcmp(cmdtext, "/?"))
     {
        SendClientMessage(playerid, 0xFF00FFFF, "What?");
        return 1;
     }
and for just "?"
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == "?")
    {
        SendClientMessage(playerid, 0xFF00FFFF, "What?");
        return 0;
    }
    return 1
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)