25.12.2015, 20:40
Quando o jogador clica no textdrawn:
O MySQL_CheckAccount
O r@MySQL_CheckAccount:
Nгo identifico nenhum problema nos cуdigos, qual o possнvel problema ?
pawn Код:
if(clickedid == BoxLogin[2] || clickedid == BoxLogin[3]){
MySQL_CheckAccount(playerid);
}
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;
}
pawn Код:
CallBack::r@MySQL_CheckAccount(playerid){
new rows,fields;
cache_get_data(rows,fields,MysqlC);
if(rows){
//DIALOGLOGIN
}
else{
//DIALOGREGISTRO
}
}
return 1;
}