Question about if statements
#1

Is it possible to check if a variable increases using an if statement, I am trying to figure out how I can check if the player count increases in a variable to perform a certain function.

here is the variable I am using

gInfo[GAMEONE];
Reply
#2

I think you can use while
Reply
#3

Mmmmm just post some of your codes,and more about idea..
And try:
Код:
while(gInfo[GAMEONE]++)
{
Codes here
}
Reply
#4

I have tried that method already but it simply increases the number of the variable.

pawn Код:
while(gInfo[GAMEONE]++)
    {
        new string[250];
        format(string, sizeof(string), "BATTLE ROYALE: Players: %d, join the game by typing /joingame 1.", gInfo[GAMEONE]);
        SendClientMessageToAll(-1, string);
        print(string);
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)