Looping
#3

Comparing against an empty string will return 0.

pawn Code:
if(!isnull(vpncountry[i]) && !strcmp(country, vpncountry[i]))
If you ever change the size of `vpncountry` and not remember to change the value in the loop, it will throw a run time error. But if the file is empty, why loop at all? Read from the file and have a global variable as a counter. Then use this counter instead of < 200

If you kick directly, what is the point to store in player-array to begin with?
Reply


Messages In This Thread
Looping - by TokicMajstor - 20.02.2019, 14:48
Re: Looping - by DaniceMcHarley - 20.02.2019, 15:05
Re: Looping - by Calisthenics - 20.02.2019, 15:07
Re: Looping - by TokicMajstor - 20.02.2019, 15:19

Forum Jump:


Users browsing this thread: 1 Guest(s)