[Script Help] Vehicle System - Identify Cars
#10

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

Forum Jump:


Users browsing this thread: 1 Guest(s)