25.07.2015, 21:26
Hello!
Notice:
- Mencent
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;
}
Quote:
//handle is the connection handle, please adjust this |