ForeClassSelection
#1

How can I check whether this is true or not? Cus if I use:

if(ForeClassSelection == true), I get an error.
Reply
#2

pawn Код:
if(ForeClassSelection)
Reply
#3

pawn Код:
if(GetPlayerHealth(playerid) < 1)
    return //stuff goes here
Or if you have more than 1 function:
pawn Код:
if(GetPlayerHealth(playerid) < 1)
{
    //Stuff here
    return 1;
}
Reply
#4

ForceClassSelection doesn't return anything ..
Reply
#5

Neither does GetPlayerHealth. What are you attempting to achieve?
Reply
#6

well it is for my balancer, it should become -1 if the player goes to class selection.
Reply
#7

*BUMP*
Reply
#8

The player will go to class selection only in the beginning of the game unless you force it. In that case, just declare another variable and set it's value to something. When you want to check if the player is in class selection, just check for the value of that variable. When he spawns, set that variable to a different value.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)