Advertisement
RogerGomesCosta

Untitled

Jul 18th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.54 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.                     if(db_num_rows(ResultQuery)) // Se o jogador tem arma cadastrada...
  5.                     {
  6.                         new slot;
  7.                         slot = SQLiteGetResultIntAssoc(ResultQuery, "Slot");
  8.                         PlayerInfo[playerid][pWeapon][slot] = SQLiteGetResultIntAssoc(ResultQuery, "Weapon");
  9.                         PlayerInfo[playerid][pAmmo][slot] = SQLiteGetResultIntAssoc(ResultQuery, "Ammo");
  10.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement