help mysql
#4

Hello!

PHP Code:
new qstr[100];
mysql_format(handle,qstr,sizeof qstr,"SELECT * FROM `players` WHERE `username`='%e';",plname);
mysql_tquery(handle,qstr,"OnLoadPlayer","i",playerid);//handle is the connection handle, please adjust this
//at the end of the script:
forward OnLoadPlayer(playerid);
public 
OnLoadPlayer(playerid)
{
    if(!
cache_num_rows())return 1;
    
gPlayerAccount[playerid] = 1;
    return 
1;

Notice:
Quote:

//handle is the connection handle, please adjust this

- Mencent
Reply


Messages In This Thread
help mysql - by Jimmi - 25.07.2015, 20:05
Re: help mysql - by Jimmi - 25.07.2015, 21:06
Re: help mysql - by TheSkyBlueTeam - 25.07.2015, 21:11
AW: help mysql - by Mencent - 25.07.2015, 21:26
Re: AW: help mysql - by J0sh... - 25.07.2015, 21:27

Forum Jump:


Users browsing this thread: 2 Guest(s)