05.04.2013, 11:09
hey all,
so i was trying to set up my database, when i encountered some problems..
well, i only get the message "Load player called"
the message "Query started" doesn't even show..
it seems to wrong is this line already:
But the compiler doesn't give any errors, can someone tell me what i'm doing wrong here?
and when i move that line out of the function ( so i make it global )
things work normally!
Thanks in advance,
Jop9888
so i was trying to set up my database, when i encountered some problems..
pawn Код:
SendClientMessage(playerid,COLOR_RED, "Load player called");
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
new Row[1024], Field[44][255], Query[256+128];
SendClientMessage(playerid,COLOR_RED, "Query started");
format(Query, sizeof(Query), "SELECT * FROM `users` WHERE `username` = '%s'", name);
mysql_query(Query);
SendClientMessage(playerid,COLOR_RED, "Query succesfully started");
mysql_store_result();
if(mysql_num_rows() == 1)
{
the message "Query started" doesn't even show..
it seems to wrong is this line already:
pawn Код:
new Row[1024], Field[44][255], Query[256+128];
and when i move that line out of the function ( so i make it global )
things work normally!
Thanks in advance,
Jop9888