MySQL Problem - Loading a float ?
#1

How am i able to load a float from MySQL ?

This is my current code, all works fine except from the floats.

pawn Код:
new data[2][50]; //The data strings
            new data2[9]; //The data variables
            sscanf(line, "p|ssddddddfff", data[0], data[1], data2[0], data2[1], data2[2], data2[3], data2[4], data2[5], data2[6], data2[7], data2[8]); //Splits the line with sscanf
            PInfo[playerid][Money] = data2[0];
            PInfo[playerid][AdminLevel] = data2[1];
            PInfo[playerid][Kills] = data2[2];
            PInfo[playerid][Deaths] = data2[3];
            PInfo[playerid][HoursPlayed] = data2[4];
            PInfo[playerid][Interior] = data2[5];
            PInfo[playerid][PosX] = data2[6];
            PInfo[playerid][PosY] = data2[7];
            PInfo[playerid][PosZ] = data2[8];
            mysql_free_result();
Thanks for the help..
Reply


Messages In This Thread
MySQL Problem - Loading a float ? - by GamingTurf - 26.04.2011, 21:25
Re: MySQL Problem - Loading a float ? - by SchurmanCQC - 26.04.2011, 21:34
Re: MySQL Problem - Loading a float ? - by GamingTurf - 26.04.2011, 21:37
Re: MySQL Problem - Loading a float ? - by [L3th4l] - 26.04.2011, 21:44
Re: MySQL Problem - Loading a float ? - by SchurmanCQC - 26.04.2011, 21:44
Re: MySQL Problem - Loading a float ? [FIXED] - by GamingTurf - 26.04.2011, 21:53

Forum Jump:


Users browsing this thread: 1 Guest(s)