20.03.2015, 16:26
Hey there, I'm having a quite weird problem about setting virtual world for player.
When player spawns he should get virtualworld from y_ini file. and its written there but yet it always set the virtual world to 0. ex: file has value 2 and player spawns in virtual world 0, even after using SetPlayerVirtualWorld.
Some codes (Won't show the savechar stock as it is saving the right values to the file, loadings is the problem):
(Other stuff load perfectly, the problem is only with virtual world)
Under LoadUser_PlayerData(playerid,name[],value[]): (executed before onplayer spawn)
Under OnPlayerSpawn(playerid)
(I'm setting virtualworld after position&interior)
Why does it always spawns player with virtual world 0?
When player spawns he should get virtualworld from y_ini file. and its written there but yet it always set the virtual world to 0. ex: file has value 2 and player spawns in virtual world 0, even after using SetPlayerVirtualWorld.
Some codes (Won't show the savechar stock as it is saving the right values to the file, loadings is the problem):
(Other stuff load perfectly, the problem is only with virtual world)
Under LoadUser_PlayerData(playerid,name[],value[]): (executed before onplayer spawn)
pawn Код:
INI_Int("VirutalWorld", PlayerInfo[playerid][pVW]);
return 1;
pawn Код:
SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVW]);
Why does it always spawns player with virtual world 0?