Se anything wrong here?
#1

I can't, can you?
Код:
public OnPlayerCommandText(playerid, cmdtext[])
if (strcmp("/lichelp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"/buycarlic, /buyflylic, /buybikelic, /licenses");
return 1;
}
if (strcmp("/cellhelp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"/call, /hangup, /pickup, /SMS, /pb, /mpn, /ph");
return 1;
}
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/lichelp", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid,COLOR_YELLOW,"/buycarlic, /buyflylic, /buybikelic, /licenses");
        return 1;
        }

    if (strcmp("/cellhelp", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid,COLOR_YELLOW,"/call, /hangup, /pickup, /SMS, /pb, /mpn, /ph");
        return 1;
        }
Reply
#3

Now it don't work at all....
Reply
#4

Код:
public OnPlayerCommandText(playerid, cmdtext[])
if (strcmp("/lichelp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"/buycarlic, /buyflylic, /buybikelic, /licenses");
return 1;
}
if (strcmp("/cellhelp", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"/call, /hangup, /pickup, /SMS, /pb, /mpn, /ph");
return 1;
}

}
Reply
#5

Try:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/lichelp", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid,COLOR_YELLOW,"/buycarlic, /buyflylic, /buybikelic, /licenses");
        return 1;
        }

    if (strcmp("/cellhelp", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid,COLOR_YELLOW,"/call, /hangup, /pickup, /SMS, /pb, /mpn, /ph");
        return 1;
        }
        return 0;
        }
Reply
#6

Many thanks Klutty! Now it works!
Reply
#7

Quote:
Originally Posted by Cabby
Many thanks Klutty! Now it works!
Ah, I'm glad to help. Happy scripting!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)