Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Question.

$
0
0
PHP Code:

    static SpeedWarnCount[MAX_PLAYERS char];
            
                        if(
SpeedWarnCount{id}++)
                        {
                            
//code
                        
}
                        else 
SpeedWarnCount{id} = 0

So here is some code taken from my friend. I don't understand what did he do here. It checks if SpeedWarnCount has a value more than 0 but no code increases it there atm. So how does this code works like?

Viewing all articles
Browse latest Browse all 18226

Trending Articles