11.07.2013, 21:16
Are u sure? It's impossible seeing your code.
Try a debug there:
By the way, i was reading something about MySQL doesn't supporting 'localhost', you should use 127.0.0.1 or you local network ip adress...
@Edit FAIL, i've made a mistake with Create and Check, hehe
I dont't really know if it works
But i'm sure this way works:
Try a debug there:
pawn Код:
public MySQL_CheckAccount(playerid){
GetPlayerName(playerid,PlayerName,25);
format(s_Query,sizeof(s_Query),"SELECT * FROM `accounts` WHERE sUser = '%s'",PlayerName);
mysql_function_query(s_MySQL,s_Query,true,"s@MySQL_CheckAccount","d",playerid);
printf("Checking for: %s",PlayerName);
return 1;
}
@Edit FAIL, i've made a mistake with Create and Check, hehe
I dont't really know if it works
pawn Код:
if( 5 < (strlen(inputtext)) > 25)
pawn Код:
if(strlen(inputtext) < 5 || strlen(inputtext) > 25)
return Something;

