Value problem.
#1

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:
pawn Код:
printf("Last check,  pReg is: %d", PlayerInfo[playerid][pReg]);
SpawnPlayer(playerid);
Then OnPlayerSpawn is called right ?
snap from on playerspawn
pawn Код:
printf("OnPlayerSpawn : %d", PlayerInfo[playerid][pReg]);
SetPlayerSpawn(playerid);
So far so good, everything is as it must be.
But now...
pawn Код:
printf("SetPlayerSpawn: %d",PlayerInfo[playerid][pTut]);
if(PlayerInfo[playerid][pTut] == 0)
And server log shows me...
Код:
[18:50:04] Last check,  pReg is: 1
[18:50:07] OnPlayerSpawn : 1
[18:50:07] SetPlayerSpawn: 0
Reply
#2

You're changing from
pawn Код:
PlayerInfo[playerid][pReg]
// to
PlayerInfo[playerid][pTut]

// In this line:
printf("SetPlayerSpawn: %d",PlayerInfo[playerid][pTut]);
If I understand your problem correctly?
Reply
#3

Hahaha, ohlol....Well you can laugh with me now
Case closed.

Thanks btw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)