04.08.2016, 12:21
Hello and sorry for my english
Код HTML:
C:\Users\Yamaha\Desktop\Serveur Secondair RP\gamemodes\sql.pwn(489 -- 617) : error 001: expected token: ",", but found ";"
Код HTML:
format(query, sizeof(query), "INSERT INTO `compte` (`Enregistrer` = '%d', `Vie` = '%d', `Gillet` = '%d', `Masque` = '%d', `MasqueID` = '%d', `Faction` = '%d', `Grade` = '%d', `Situation` = '%d'", format(query, sizeof(query), "%s, `Mort` = '%d', `TempsJail` = '%d', `Warn` = '%d', `Banned` = '%d'", query, /*pInfo[playerid][Mort], pInfo[playerid][JailTime], pInfo[playerid][Warn], pInfo[playerid][Baned]*/ //); format(query, sizeof(query), "%s, `Maison` = '%d', `Commerce` = '%d', `FactionProprietaire` = '%d', `Vehicule1` = '%d', `Vehicule2` = '%d', `Vehicule3` = '%d'", query, /*pInfo[playerid][HouseOwner], pInfo[playerid][BizOwner], pInfo[playerid][FacOwner], pInfo[playerid][VehicleOwner], pInfo[playerid][VehicleOwner2], pInfo[playerid][VehicleOwner3]*/ //); format(query, sizeof(query), "%s `Level` = '%d', `Experience` = '%d', `MaxExperience` = '%d', `Skin` = '%d', `Sexe` = '%d', `Cash` = '%d', `CashBanque` = '%d'", query, /*pInfo[playerid][Level], pInfo[playerid][Exp], pInfo[playerid][MaxExp], pInfo[playerid][Skin], pInfo[playerid][Gender], pInfo[playerid][HandMoney], pInfo[playerid][BankMoney]*/ //); format(query, sizeof(query), "%s, `NumeroTel` = '%d', `Cheque` = '%d', `Temps` = '%d', `Amende` = '%d', `Facture` = '%d', `Emprunt` = '%d', `Lotto` = '%d', `Permis` = '%d', `PermisPoint` = '%d', `PortArme` = '%d'", query, /*pInfo[playerid][PhoneNumber], pInfo[playerid][PayeCheck], pInfo[playerid][PayeTime], pInfo[playerid][Amende], pInfo[playerid][Facture], pInfo[playerid][Emprunt], pInfo[playerid][Lotto], pInfo[playerid][Permis], pInfo[playerid][PermisPoint], pInfo[playerid][PortArme]*/ //); format(query, sizeof(query), "%s `Montre` = '%d', `GPS` = '%d', `Canne` = '%s', `Telephone` = '%s', `Credits` = '%d', `Identite` = '%d', `GramDrogue1` = '%d', `GramDrogue2` = '%d'", query, /*pInfo[playerid][Montre], pInfo[playerid][Gps], pInfo[playerid][Canne], pInfo[playerid][Phone], pInfo[playerid][Credits], pInfo[playerid][CarteIden], pInfo[playerid][DrogueFab1], pInfo[playerid][DrogueFab2]*/ //); /* for (new i = 0; i < 13; i ++) { format(query, sizeof(query), "%s, `Gun%d` = '%d', `Ammo%d` = '%d'", query, i + 1, pInfo[playerid][pGuns][i], i + 1, pInfo[playerid][pAmmo][i]); } */ format(query, sizeof(query), "%s, `GramDrogue3` = '%d', `Cocaine` = '%d', `Heroine` = '%d', `Ecstacy` = '%d', `Arme1` = '%d', `Minition1` = '%d', `Arme2` = '%d', `Minition2` = '%d', `Arme3` = '%d', `Minition3` = '%d', `Arme4` = '%d', `Minition4` = '%d', `Arme5` = '%d', `Minition5` = '%d', `Arme6` = '%d', `Minition6` = '%d', `Arme7` = '%d', `Minition7` = '%d')", query, format(query, sizeof(query), "%s, VALUES('%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d')", query, pInfo[playerid][Registered], pInfo[playerid][Health], pInfo[playerid][Armour], pInfo[playerid][Mask], pInfo[playerid][MaskID], pInfo[playerid][SecteID], pInfo[playerid][Grade], pInfo[playerid][LastPos], pInfo[playerid][Mort], pInfo[playerid][JailTime], pInfo[playerid][Warn], pInfo[playerid][Baned], pInfo[playerid][HouseOwner], pInfo[playerid][BizOwner], pInfo[playerid][FacOwner], pInfo[playerid][VehicleOwner], pInfo[playerid][VehicleOwner2], pInfo[playerid][VehicleOwner3], pInfo[playerid][Level], pInfo[playerid][Exp], pInfo[playerid][MaxExp], pInfo[playerid][Skin], pInfo[playerid][Gender], pInfo[playerid][HandMoney], pInfo[playerid][BankMoney], pInfo[playerid][PhoneNumber], pInfo[playerid][PayeCheck], pInfo[playerid][PayeTime], pInfo[playerid][Amende], pInfo[playerid][Facture], pInfo[playerid][Emprunt], pInfo[playerid][Lotto], pInfo[playerid][Permis], pInfo[playerid][PermisPoint], pInfo[playerid][PortArme], pInfo[playerid][Montre], pInfo[playerid][Gps], pInfo[playerid][Canne], pInfo[playerid][Phone], pInfo[playerid][Credits], pInfo[playerid][CarteIden], pInfo[playerid][DrogueFab1], pInfo[playerid][DrogueFab2], pInfo[playerid][DrogueFab3], pInfo[playerid][Cocaine], pInfo[playerid][Heroine], pInfo[playerid][Ecstacy], pInfo[playerid][Weapon1], pInfo[playerid][Wep1Ammo], pInfo[playerid][Weapon2], pInfo[playerid][Wep2Ammo], pInfo[playerid][Weapon3], pInfo[playerid][Wep3Ammo], pInfo[playerid][Weapon4], pInfo[playerid][Wep4Ammo], pInfo[playerid][Weapon5], pInfo[playerid][Wep5Ammo], pInfo[playerid][Weapon6], pInfo[playerid][Wep6Ammo], pInfo[playerid][Weapon7], pInfo[playerid][Wep7Ammo] ); mysql_tquery(g_iHandle, query, "Enregistrement", "dd", playerid, CREATION); mysql_tquery(g_iHandle, query);