[HELP] Help me please - Cannot fetch data!
#1

This is my problem...When i try to fetch all the data for my player account, the Username and pass print correctly however the numbers are wrong.. this is my code:

Код:
		//----------==========Load accoutn info==========----------
		mysql_fetch_field("ID",PlayerStats[playerid][pId]);
		mysql_fetch_field("user",PlayerStats[playerid][pUser]);
		mysql_fetch_field("pass",PlayerStats[playerid][pPass]);
		mysql_fetch_field("admin", PlayerStats[playerid][pAdmin]);
		printf("ID:%i,User:%s,Pass:%s,Admin:%i",PlayerStats[playerid][pId],PlayerStats[playerid][pUser],PlayerStats[playerid][pPass],PlayerStats[playerid][pAdmin]);
It should say this on the console:

Код:
ID:2,User:HighDarren,Pass:test,Admin:0
Although it says this instead:

Код:
ID:50,User:HighDarren,Pass:test,Admin:48
so, as u can see its the numbers that are not working.. (they are type 'int' on the Database...the text based ones are 'varchar')
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)