Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Deletar todas os slots de armas
- format(szString, sizeof szString, "DELETE FROM Weapons WHERE ID = '%d'", PlayerInfo[playerid][pID]);
- db_query(DataBase, szString);
- for(new i = 0; i < 13; i++)
- {
- GetPlayerWeaponData(playerid, i, weapon[i], ammo[i]);
- if(weapon[i] != -1)
- {
- format(szString, 150, "INSERT INTO Weapons (ID,Slot,Weapon,Ammo) VALUES(%d,%d,%d,%d)", PlayerInfo[playerid][pID], i, weapon[i], ammo[i]);
- db_query(DataBase, szString);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement