Gaining data from database
#4

I know how to do it now, I've started it, it needs to be done with for loops. But I'm really stuck at this point right now.

This is what I got:
pawn Код:
enum BanList {
    BanID,
    Name,
}
new BanListDialog[][BanList];

COMMAND:banlist(playerid, params[])
{
    if(PlayerInfo[playerid][AdminLevel] >= 2) {
        new banQuery[500];
        format(banQuery,sizeof(banQuery),"SELECT * FROM bans");
        mysql_query(banQuery);
        mysql_store_result();
       


    }  
    else {
    return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Gaining data from database[MySQL] - by SomebodyAndMe - 07.04.2013, 10:41
Re: Gaining data from database - by iJumbo - 07.04.2013, 11:08
Re: Gaining data from database - by SomebodyAndMe - 07.04.2013, 11:10
Re: Gaining data from database - by SomebodyAndMe - 07.04.2013, 18:03
Re: Gaining data from database - by ReVo_ - 07.04.2013, 18:55
Re: Gaining data from database - by SomebodyAndMe - 08.04.2013, 16:24
Re: Gaining data from database - by ReVo_ - 08.04.2013, 17:49
Re: Gaining data from database - by SomebodyAndMe - 09.04.2013, 16:18
Re: Gaining data from database - by RicaNiel - 09.04.2013, 16:21
Re: Gaining data from database - by M3mPHi$_S3 - 09.04.2013, 16:25

Forum Jump:


Users browsing this thread: 1 Guest(s)