Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tabela: Teste
- Colunas:
- PLAYERID ARMA AMMO
- 1 35 9999
- 2 35 9999
- 1 31 9999
- Ou seja, o jogador de id 1 tem 2 armas: 35 e 31 que estão na linha 0 e 2.
- Como eu faço pra pegar esses valores?
- format(szString, sizeof szString, "SELECT * FROM Teste WHERE PLAYERID = %d", playerid);
- ResultQuery = db_query(DataBase, szString);
- for(new i = 0; i < db_num_rows(ResultQuery); i++)
- // pelo que eu entendi desse for, vai retornar 2, certo? (voce ja me explicou acho que isso, mas esqueci. eu não lembro se retorna 2 ou se retorna no caso, a linha 0 e a linha 2.
- {
- if(db_num_rows(ResultQuery)) // ai eu tenho que usar esse if pra reconhecer a linha 0 e 2? no caso, ele pula a linha 1?
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement