16.05.2010, 13:05
Well you just mixed up some things I guess.
If you store each player number in a variable pi[playerid][pNumber] just use that as reference, you don't need to compare the file data additionally (if I assume correctly and you store the number of each player file in that variable upon OnPlayerConnect).
Just try something like this:
(( I can only assume how your datamanagement / variables are set up, hence - adjust as necessary.
If you store each player number in a variable pi[playerid][pNumber] just use that as reference, you don't need to compare the file data additionally (if I assume correctly and you store the number of each player file in that variable upon OnPlayerConnect).
Just try something like this:
Код:
NumberUsedT(number)
{
for(new i = 0; i < MAX_PLAYERS; i ++)
if(number==pi[i][pNumber])
return 1;
return 0;
}

