16.08.2015, 00:50
(
Последний раз редактировалось appleomax; 16.08.2015 в 10:06.
)
I've created this stock to load player data:
When I try to give player XP in the stock it gives 0, but when I use SetPlayerScore in LoadData function it gives the XP.
If possible, how can I give player XP in the stock?
Код:
stock LoadPlayerData( playerid ) { new query[50]; format( query, 50 ,"SELECT XP FROM players WHERE Vardas = '%s'",GetName[ playerid ] ); mysql_function_query( mysql, query, true, "LoadData", "i", playerid ); SetPlayerScore(playerid, XP[playerid]); }
If possible, how can I give player XP in the stock?