Advertisement
RogerGomesCosta

Untitled

Jul 18th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.51 KB | None | 0 0
  1. // SQLite tabela Weapons
  2. format(szString, sizeof szString, "SELECT * FROM Weapons WHERE ID = %d", PlayerInfo[playerid][pID]);
  3. ResultQuery = db_query(DataBase, szString);
  4. for(new i = 0; i < db_num_rows(ResultQuery); i++)
  5. {
  6.     new slot = = SQLiteGetResultIntAssoc(ResultQuery, "Slot");
  7.     PlayerInfo[playerid][pWeapon][slot] = SQLiteGetResultIntAssoc(ResultQuery, "Weapon");
  8.     PlayerInfo[playerid][pAmmo][slot] = SQLiteGetResultIntAssoc(ResultQuery, "Ammo");
  9.     if(!db_next_row(ResultQuery))
  10.         break;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement