14.08.2018, 19:34
Vocк deu a soluзгo para o problema dele:
Eu sу dei o nome da funзгo para "atualizar" as armas.
PHP код:
SaveArmas(playerid){
new weaponid[13], ammo[13], query[150];
for(new i; i < 13; i++){
GetPlayerWeaponData(playerid, i, weaponid[i], ammo[i]);
mysql_format(dbHandle, query, sizeof(query), "INSERT INTO characters (weapon%d, ammo%d) VALUES (%d, %d)", i, i, weaponid[i], ammo[i]);
mysql_tquery(dbHandle, query);
}
return 1;
}