OnPlayerRequestClass save
#1

I need help guys. I want to save the skin of the player directly to MySQL after they choose their desired skin on onPlayerRequestClass but I don't know how and what the correct format script is.

This is script for my command cmd:/skin, you might need this for more info.
PHP код:
format(gsQuery,sizeof(gsQuery),"UPDATE `accounts` SET `SavedSkin` = '%d'  WHERE `Key` = '%d'",skinid,PlayerInfoplayerid ][ AccID ]);
mysql_querygsQueryTHREAD_NONEplayerid );
format(gsQuery,sizeof(gsQuery),"UPDATE `accounts` SET `IsSavedSkin` = '1'  WHERE `Key` = '%d'",skinid,PlayerInfoplayerid ][ AccID ]);
mysql_querygsQueryTHREAD_NONEplayerid );
SetPlayerSkin(playeridskinid);
PlayerInfoplayerid ][ SavedSkin ] = skinid;
PlayerInfoplayerid ][ IsSavedSkin ] = 1
Reply


Messages In This Thread
OnPlayerRequestClass save sakin - by kampuman - 24.07.2016, 21:43
Re: OnPlayerRequestClass save - by Freaksken - 24.07.2016, 23:42
Re: OnPlayerRequestClass save - by kampuman - 25.07.2016, 00:48
Re: OnPlayerRequestClass save - by Threshold - 25.07.2016, 04:44
Re: OnPlayerRequestClass save - by kampuman - 25.07.2016, 19:25

Forum Jump:


Users browsing this thread: 1 Guest(s)