if return error
#1

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.
Reply
#2

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

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

if(CP[playerid] == 0)

try this!
Reply
#5

someone help
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)