MySQL Problem - Loading a float ?
#4

Create new variables to store the floats:
pawn Код:
new
    Float:fVars[3];

sscanf(line, "p|ssddddddfff", data[0], data[1], data2[0], data2[1], data2[2], data2[3], data2[4], data2[5], fVars[0], fVars[1], fVars[2]); //Splits the line with sscanf

PInfo[playerid][PosX] = fVars[0];
PInfo[playerid][PosY] = fVars[1];
PInfo[playerid][PosZ] = fVars[2];
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)