17.01.2015, 11:06
Hello, i have a varible 'nev' for e.g. "Thommas_Cook".
And the code is:
The second cames always, when the player (Thommas Cook) is connected, or not connected. Why?
I debug it with prinf(id) and printf(nev) and it's good, (id = playerid, 0), nev is Thommas_Cook
And the code is:
Код:
new id = GetPlayerID(nev); if (IsPlayerConnected(id)) { // 1 } else { // 2 }
I debug it with prinf(id) and printf(nev) and it's good, (id = playerid, 0), nev is Thommas_Cook