a little help - 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: a little help (
/showthread.php?tid=350760)
a little help -
[LSG]Lil_Familie - 13.06.2012
okay i made a basic cmd for /ganginfo but it always says Unknown cmd ig
PHP код:
if (strcmp("/ganginfo", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid,COLOR_GREEN,"/gs , /ktb , /vla , /lsv , /lspd");
return 1;
}
Re: a little help -
ViniBorn - 13.06.2012
Try this
pawn Код:
if(!strcmp("/ganginfo", cmdtext))
Re: a little help -
iRage - 13.06.2012
I don't really suggest using strcmp, try ZCMD for commands processing, anyways try replacing it with this:
pawn Код:
if (strcmp("/ganginfo", cmdtext, true) == 0)
{
SendClientMessage(playerid,COLOR_GREEN,"/gs , /ktb , /vla , /lsv , /lspd");
return 1;
}