24.02.2011, 15:07
Hello all, I have problem with MySQL and Sscanf :/
ok, so when I disconnect from server - ok, server saves my last poz,
but.. when i connecting sscanf my poz loading fine but my position is sets to 0.0.
My LoadPlayerData stock
ok, so when I disconnect from server - ok, server saves my last poz,
but.. when i connecting sscanf my poz loading fine but my position is sets to 0.0.
My LoadPlayerData stock
pawn Код:
stock LoadPlayerData( playerid )
{
new
String[ 500 ],
explode,Float:Pos[ 3 ]
;
mysql_fetch_row( String );
sscanf( String, "p<|>s[24]s[25]dddddddddddfffdd",
explode,explode,
playerDB[ playerid ][ admin ],
playerDB[ playerid ][ vip ],
playerDB[ playerid ][ pinigai ],
playerDB[ playerid ][ wlevel ],
playerDB[ playerid ][ plead ],
playerDB[ playerid ][ specialybe ],
playerDB[ playerid ][ kalejimo_laikas ],
playerDB[ playerid ][ uniforma ],
playerDB[ playerid ][ uniformd ],
playerDB[ playerid ][ narkotikai ],
playerDB[ playerid ][ wworld],
playerDB[ playerid ][ teises ],
playerDB[ playerid ][ interiors ],
playerDB[ playerid ][ mobsas ],
Pos[ 0 ],Pos[ 1 ],Pos[ 2 ],
playerDB[ playerid ][ drabuziai ],
playerDB[ playerid ][ lytis ],
playerDB[ playerid ][ score ] );
GivePlayerMoneyA( playerid, playerDB[ playerid ][ pinigai ] );
SetPlayerVirtualWorld( playerid, playerDB[ playerid ][ wworld ] );
SetPlayerInterior( playerid, playerDB[ playerid ][ interiors ] );
SetPlayerPos( playerid, Pos[ 0 ],Pos[ 1 ],Pos[ 2 ] );
}