12.11.2010, 14:22
hm how can i get the level of player or name from the data base?
i tried:
bot this is doesn't work....
as you can see i new in all that MYSQL+PAWNO stuff...
i tried:
Код:
stock IsPlayerAdminR(playerid) { new playrname[24],str2[256]; GetPlayerName(playerid,playrname,sizeof(playrname)); format(str2,sizeof(str2),"SELECT `AdminLevel` FROM `rUsers` WHERE `Name`='%s'",playrname); new res=mysql_fetch_int(mysql_query(str2)); return res; }
as you can see i new in all that MYSQL+PAWNO stuff...