11.08.2010, 19:30
Hello again 
I'm having a bit of problem with my script about Faction Spawning:
I've tried debugging the piece of script but it just shows 0.0000000 and so on. Can anyone see where I'm going wrong?

I'm having a bit of problem with my script about Faction Spawning:
pawn Код:
new query [256], result[256], Float:X, Float:Y, Float:Z, Float:A;
format(query,256,"SELECT `x`,`y`,`z`,`ang` FROM factions WHERE id = '%d'",playerinfo[playerid][Faction]);
mysql_query(query);
mysql_store_result();
mysql_fetch_row(result);
printf("X: %f", X);
printf("Y: %f", Y);
printf("Z: %f", Z);
sscanf(result,"ffff",X,Y,Z,A);
mysql_free_result();
SetPlayerPos(playerid, X, Y, Z);
SetPlayerFacingAngle(playerid, A);
SetPlayerInterior(playerid, 0);