22.08.2011, 11:48
How will I be able to check the admin level with enums?
How do I open the database, find the players admin level and then use it to check if a player can use a command?
Also, what does "30" mean from this code?
Thanks
EDIT:
Need some help on this code
How do I open the database, find the players admin level and then use it to check if a player can use a command?
Also, what does "30" mean from this code?
pawn Code:
db_get_field_assoc(Result, "ADMINLEVEL", Field, 30);
EDIT:
Need some help on this code
pawn Code:
db_get_field_assoc(Result, "ADMINLEVEL", Field, 30);
PlayerInfo[playerid][pAdminLevel] = strval(Field); // how can I retrieve the data and then put it in that line? The last line occurs an error