SA-MP Forums Archive
Se anything wrong here? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Se anything wrong here? (/showthread.php?tid=77503)



Se anything wrong here? - Cabby - 11.05.2009

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



Re: Se anything wrong here? - Klutty - 11.05.2009

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



Re: Se anything wrong here? - Cabby - 11.05.2009

Now it don't work at all....


Re: Se anything wrong here? - kLx - 11.05.2009

Код:
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;
}

}



Re: Se anything wrong here? - Klutty - 11.05.2009

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



Re: Se anything wrong here? - Cabby - 11.05.2009

Many thanks Klutty! Now it works!


Re: Se anything wrong here? - Klutty - 11.05.2009

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