Advertisement
RogerGomesCosta

Untitled

Jul 18th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 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.     PlayerInfo[playerid][pWeapon][ResultQuery] = SQLiteGetResultIntAssoc(ResultQuery, "Weapon");
  7.     PlayerInfo[playerid][pAmmo][ResultQuery] = SQLiteGetResultIntAssoc(ResultQuery, "Ammo");
  8.     if(!db_next_row(ResultQuery))
  9.         break;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement