SA-MP Forums Archive
if return error - 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: if return error (/showthread.php?tid=651498)



if return error - Zeus666 - 21.03.2018

PHP код:
            if((CP[playerid] > 0) && (MilitarJob[playerid] == 3) && (pInfo[playerid][ZombiesKilled] >= 1)) return SendClientMessage(playerid, -1"You don't have at least 1 zombie killed!"); 

my if is given an error during the game, if i have 0 zombieskilled it still allows me to acces the command.


Re: if return error - X337 - 21.03.2018

Код:
(pInfo[playerid][ZombiesKilled] < 1)
you check if a player killed more than one zombie


Re: if return error - Zeus666 - 21.03.2018

Quote:
Originally Posted by X337
Посмотреть сообщение
Код:
(pInfo[playerid][ZombiesKilled] < 1)
you check if a player killed more than one zombie
still doesn't work.


Re: if return error - Jithu - 21.03.2018

if(CP[playerid] == 0)

try this!


Re: if return error - Zeus666 - 21.03.2018

someone help


Re: if return error - MadeMan - 21.03.2018

Quote:
Originally Posted by X337
Посмотреть сообщение
Код:
(pInfo[playerid][ZombiesKilled] < 1)
you check if a player killed more than one zombie
I think X337 already provided the answer.