MySQL | Does not return the correct value
#1

hello !

here the code:

pawn Код:
SendClientMessage(playerid,c_green,".дъзбшъ магойп бдцмзд");
        format(String,256,"SELECT `AdminLevel` FROM `Users` WHERE `Nick`='%s'",GetName(playerid));
        mysql_query(String);
        mysql_store_result();
        if(mysql_retrieve_row()) Player[playerid][AdminLevel] = mysql_fetch_int();
        mysql_free_result();
this not return the correct value.
this return 0.
please help (:
Reply
#2

ey pal you have logges .. ?
Reply
#3

I did not understand the question..
Reply
#4

He means logs, put
pawn Код:
mysql_debug(1);
under OnGameModeInit();

Then run the code, open mysql_log.txt and you see what has wen't wrong.
Reply
#5

And ? what next ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)