mysql_real_escape_string
#4

pls stop using this check in every command waste of time
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
and also every query doesnt need to threaded
PHP код:
new Cache:cq=mysql_query(SQL,s);
///
cache_delete(cq); 
PHP код:
public OnPlayerCommandReceived(playerid,cmdtext[]){
    if(!
gPlayerLogged[playerid]){
        
SendClientMessage(playeridCOLOR_LIGHTRED"You need to log in first.");
        return 
0;
    }
    return 
1;

Reply


Messages In This Thread
mysql_real_escape_string - by RedGun2015 - 24.10.2017, 15:54
Re: mysql_real_escape_string - by Abagail - 24.10.2017, 15:56
Re: mysql_real_escape_string - by RedGun2015 - 25.10.2017, 11:53
Re: mysql_real_escape_string - by CodeStyle175 - 25.10.2017, 14:35

Forum Jump:


Users browsing this thread: 2 Guest(s)