30.07.2018, 09:51
pawn Код:
SetSpawnInfo(playerid, 0, pInfo[playerid][Skin], 1922.8219,2440.4648,11.1782,180.3614, -1, -1, -1, -1, -1, -1);
SetSpawnInfo(playerid, 0, pInfo[playerid][Skin], 1922.8219,2440.4648,11.1782,180.3614, -1, -1, -1, -1, -1, -1);
Can you show us your MySQL error log as well as yoır saving functions?
|
mysql_format(Database, DB_Query, sizeof(DB_Query), "UPDATE `PLAYERS` SET `SCORE` = %d, `CASH` = %d, `KILLS` = %d, `DEATHS` = %d, `ADMIN` = %d, `SKIN` = %d, `DONATOR` = %d, `NAMECHANGES` = %d, `HEADSHOTS` WHERE `ID` = %d LIMIT 1",
pInfo[playerid][Score], pInfo[playerid][Cash], pInfo[playerid][Kills], pInfo[playerid][Deaths], pInfo[playerid][Admin], pInfo[playerid][Skin], pInfo[playerid][Donator], pInfo[playerid][Namechanges], pInfo[playerid][Headshots], pInfo[playerid][ID]);
cache_get_value_int(0, "SKIN", pInfo[playerid][Skin]);
Change the number 0 to any other number.The skin ID you want. On the setspawninfo line
|
(playerid, team, skin, Float:x, Float:y, Float:z, Float:rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
`HEADSHOTS` WHERE `ID` = %d LIMIT 1
`HEADSHOTS` = %d WHERE `ID` = %d LIMIT 1
mysql_format(Database, DB_Query, sizeof(DB_Query), "UPDATE `PLAYERS` SET `SCORE` = %d, `CASH` = %d, `KILLS` = %d, `DEATHS` = %d, `ADMIN` = %d, `SKIN` = %d, `DONATOR` = %d, `NAMECHANGES` = %d, `HEADSHOTS`= %d WHERE `ID` = %d LIMIT 1",
pInfo[playerid][Score], pInfo[playerid][Cash], pInfo[playerid][Kills], pInfo[playerid][Deaths], pInfo[playerid][Admin], pInfo[playerid][Skin], pInfo[playerid][Donator], pInfo[playerid][Namechanges], pInfo[playerid][Headshots], pInfo[playerid][ID]);
seems like your updating data query has an issue.
PHP код:
PHP код:
PHP код:
|
SetPlayerSkin(playerid, pInfo[playerid][Skin]);