why doesnt this work? - 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: why doesnt this work? (
/showthread.php?tid=250288)
why doesnt this work? -
CrazyBlob - 22.04.2011
why doesnt this cmd work?
Код:
if(strcmp(cmd,"/lic",true)==0)
{
if(PlayerInfo[playerid][pCarLic] < 0) return SendClientMessage(playerid,COLOR_GREY,"you dont have one");
if(PlayerInfo[playerid][pCarLic] < 1) return SendClientMessage(playerid,COLOR_GREY,"you do have one");
return 1;
}
ty
Re: why doesnt this work? -
Backwardsman97 - 22.04.2011
Try this.
pawn Код:
if(strcmp(cmd,"/lic",true)==0)
{
if(!PlayerInfo[playerid][pCarLic])
return SendClientMessage(playerid,COLOR_GREY,"you dont have one"),1;
else
return SendClientMessage(playerid,COLOR_GREY,"you do have one"),1;
}
Re: why doesnt this work? -
CrazyBlob - 22.04.2011
thanks