OnPlayerRequestClass save
#5

It looks like the skin are not still saving, after hitting Spawn it shoul've changed the value to the skin id of the player which he chooses and IsSavedSkin should be 1. Am I missing something?



@thereshold I noticed the skinid parameter which is not needed right?

So I've managed to fix it by doing this. But the problem was when i'm in a different world expect 0 and I died there. It keeps spawning me as CJ skin

PHP код:
    new skinidIsSaved 1;
    
skinid GetPlayerSkin(playerid);
    
SetPlayerSkin(playeridskinid);
    
PlayerInfoplayerid ][ SavedSkin ] = skinid;
    
PlayerInfoplayerid ][ IsSavedSkin ] = IsSaved;
    
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` = '%d'  WHERE `Key` = '%d'",IsSaved,PlayerInfoplayerid ][ AccID ]);
    
mysql_querygsQueryTHREAD_NONEplayerid ); 
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)