Mysql wont get field
#1

pawn Код:
new Query[256],pName[MAX_PLAYER_NAME],MyIP[16];
    GetPlayerIp(playerid,IP[playerid],16);
    GetPlayerName(playerid,pName,24);
    format(Query,sizeof(Query),"SELECT * FROM `users` WHERE username = '%s' LIMIT 1",pName);
    mysql_query(Query);
    mysql_store_result();
    mysql_affected_rows();
    mysql_get_field("IP",MyIP);
    printf("%s = %s", MyIP , IP[playerid]);
PRINT RETURNS "= 192.168.1.2" (the first ip is gone )
Reply


Messages In This Thread
Mysql wont get field - by TheDeath - 28.07.2012, 10:57
Re: Mysql wont get field - by Misiur - 28.07.2012, 11:01
Re: Mysql wont get field - by TheDeath - 28.07.2012, 11:12
Re: Mysql wont get field - by TheDeath - 28.07.2012, 11:23

Forum Jump:


Users browsing this thread: 1 Guest(s)