[MySql Help] Get a value from db
#1

hm how can i get the level of player or name from the data base?
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;
}
bot this is doesn't work....
as you can see i new in all that MYSQL+PAWNO stuff...
Reply


Messages In This Thread
[MySql Help] Get a value from db - by XePloiT - 12.11.2010, 14:22
Re: [MySql Help] Get a value from db - by Cameltoe - 12.11.2010, 14:22
Re: [MySql Help] Get a value from db - by XePloiT - 12.11.2010, 14:33

Forum Jump:


Users browsing this thread: 3 Guest(s)