MYSQL SAVING ERROR (NEED IT URGENT) Thanks!
#8

AH thanks, Can you make it like this. I want to see how does it look like so i can code it

PHP Code:
forward OnPlayerSave(playerid); 
public 
OnPlayerSave(playerid

    new 
query[500]; 
    if(
IsLoggedIn[playerid] == && playerid != INVALID_PLAYER_ID && !IsPlayerNPC(playerid)) 
    { 
        
mysql_format(MySQLConquerysizeof(query), "UPDATE `players` SET `Admin`=%d, `Vip`=%d, `Money`=%d, `Score`=%d, `Deaths`=%d, `Kills`=%d, `HitsCompleted`=%d, `SkinID`=%d, `Robbed`=%d, `RobbedMoney`=%d, `GotRobbed`=%d, `GotRobbedMoney`=%d, `StoreRobbed`=%d, `StoreRobbedMoney`=%d, `FoodPurchased`=%d, `FoodPurchasedMoney`=%d, `WeaponsPurchased`=%d, `WeaponsPurchasedMoney`=%d, `Healed`=%d, `Arrest`=%d, `Busted`=%d, `Crimes`=%d, `WantedLevel`=%d, `Drugs`=%d, \ 
        `Medical`=%d WHERE `ID`=%d AND `user`='%e'"

        
pInfo[playerid][pAdmin], 
        
pInfo[playerid][pVip], 
        
GetPlayerMoney(playerid), 
        
GetPlayerScore(playerid), 
        
pInfo[playerid][pDeaths], 
        
pInfo[playerid][pKills], 
        
pInfo[playerid][pHitsCompleted], 
Just make it look like this for exmaple. Thanks!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)