Value problem. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Value problem. (
/showthread.php?tid=174058)
Value problem. -
actiwe - 04.09.2010
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
Re: Value problem. -
Grim_ - 04.09.2010
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?
Re: Value problem. -
actiwe - 04.09.2010
Hahaha, ohlol....Well you can laugh with me now

Case closed.
Thanks btw