#1

hello i have mysql system and its save the data fine and the register system is but where i load the stats of player OnPlayerSpawn or OnPlayerConnected or where like SetPlayerSkin and SetPlayerInterior etc?
Reply
#2

Loading data is usually done under OnPlayerConnect.
Players usually connect once, but may respawn multiple times during their gaming session.
There is no need to reload all their data everytime they spawn, since the data was already loaded before.
Reply
#3

Quote:
Originally Posted by PowerPC603
Посмотреть сообщение
Loading data is usually done under OnPlayerConnect.
Players usually connect once, but may respawn multiple times during their gaming session.
There is no need to reload all their data everytime they spawn, since the data was already loaded before.
Give me exmaple please i tryed to SetPlayerSkin(playerid,pdata[playerid][Skin]); etc with OnPlayerConnected and didnt work but when i i put it with OnPlayerSpawn it works Sorry for my english sir
Reply
#4

Setting a skin under OnPlayerConnect won't work.
The player is still being connected and has to pass class-selection first.

You can use SetPlayerSkin under OnPlayerSpawn, or OnPlayerRequestSpawn, whichever you prefer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)