04.09.2010, 15:01
I'm having issues with value - PlayerInfo[player][pReg].
It changes it's value from 1 to 0. I made log file to check its value like this:
Then OnPlayerSpawn is called right ?
snap from on playerspawn
So far so good, everything is as it must be.
But now...
And server log shows me...
It changes it's value from 1 to 0. I made log file to check its value like this:
pawn Код:
printf("Last check, pReg is: %d", PlayerInfo[playerid][pReg]);
SpawnPlayer(playerid);
snap from on playerspawn
pawn Код:
printf("OnPlayerSpawn : %d", PlayerInfo[playerid][pReg]);
SetPlayerSpawn(playerid);
But now...
pawn Код:
printf("SetPlayerSpawn: %d",PlayerInfo[playerid][pTut]);
if(PlayerInfo[playerid][pTut] == 0)
Код:
[18:50:04] Last check, pReg is: 1 [18:50:07] OnPlayerSpawn : 1 [18:50:07] SetPlayerSpawn: 0