[Ajuda] Tempo de resposta MySQL
#1

Quando o jogador clica no textdrawn:

pawn Код:
if(clickedid == BoxLogin[2] || clickedid == BoxLogin[3]){
        MySQL_CheckAccount(playerid);
    }
O MySQL_CheckAccount

pawn Код:
CallBack::MySQL_CheckAccount(playerid){
    format(Query,sizeof(Query),"SELECT * FROM `users` WHERE name='%s' LIMIT 1",PlayerName(playerid));
    mysql_function_query(MysqlC,Query,true,"r@MySQL_CheckAccount","d",playerid);
    return 1;
}
O r@MySQL_CheckAccount:

pawn Код:
CallBack::r@MySQL_CheckAccount(playerid){
    new rows,fields;
    cache_get_data(rows,fields,MysqlC);
    if(rows){
        //DIALOGLOGIN
    }
    else{
             //DIALOGREGISTRO
        }
    }
    return 1;
}
Nгo identifico nenhum problema nos cуdigos, qual o possнvel problema ?
Reply


Messages In This Thread
Tempo de resposta MySQL - by NuTShoT - 25.12.2015, 20:40
Re: Tempo de resposta MySQL - by cicinho - 25.12.2015, 23:15
Re: Tempo de resposta MySQL - by NuTShoT - 26.12.2015, 02:31

Forum Jump:


Users browsing this thread: 1 Guest(s)