Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SQLite tabela Weapons
- format(szString, sizeof szString, "SELECT * FROM Weapons WHERE ID = %d", PlayerInfo[playerid][pID]);
- ResultQuery = db_query(DataBase, szString);
- if(db_num_rows(ResultQuery)) // Se o jogador tem arma cadastrada...
- {
- new slot;
- slot = SQLiteGetResultIntAssoc(ResultQuery, "Slot");
- PlayerInfo[playerid][pWeapon][slot] = SQLiteGetResultIntAssoc(ResultQuery, "Weapon");
- PlayerInfo[playerid][pAmmo][slot] = SQLiteGetResultIntAssoc(ResultQuery, "Ammo");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement