27.09.2015, 13:20
Alright, under OnPlayerDisconnect:
- You can depend also on the playername instead of the userID in your database.
- You can also use normal formatting (format) instead of mysql_format as you are not going to escape strings while saving the skin id.
I hope I helped any feedback is appreciated!
pawn Код:
new query[128];
PlayerSkin[playerid] = GetPlayerSkin(playerid);
mysql_format(sqlLine, query, sizeof(query), "UPDATE `players` SET `skinid`= '%d' WHERE `userID` = '%d'", PlayerSkin[playerid], UserID[playerid]);
mysql_tquery(sqlLine, query, "", "");
- You can also use normal formatting (format) instead of mysql_format as you are not going to escape strings while saving the skin id.
I hope I helped any feedback is appreciated!

