28.03.2015, 19:20
Quote:
save
pawn Код:
pawn Код:
|
Output in file is normal.
Here my code:
Код:
new string[256],i = 0; if(!fexist(mapName)) return SendClientMessage(playerid, c_red, "Tento soubor neexistuje!"); new File:ini_doeMap = fopen(mapName, io_read); while(i < sizeof(DOE) && fread(ini_doeMap, string)) { sscanf(string,"'('p<,>iffffffp<)>f", DOE[i][DOE_ModelID], DOE[i][DOE_X], DOE[i][DOE_Y], DOE[i][DOE_Z], DOE[i][DOE_rX], DOE[i][DOE_rY], DOE[i][DOE_rZ]); doe_Object[doe_Index] = CreateObject(DOE[i][DOE_ModelID], DOE[i][DOE_X], DOE[i][DOE_Y], DOE[i][DOE_Z], DOE[i][DOE_rX], DOE[i][DOE_rY], DOE[i][DOE_rZ]); SendClientMessage(playerid, c_ltgreen, string); new stringg[256]; SendFormatMsg(playerid, c_red, stringg, "doe_Object[%i/%i] = %f, %f, %f, %f, %f, %f", doe_Index, i, DOE[i][DOE_ModelID], DOE[i][DOE_X], DOE[i][DOE_Y], DOE[i][DOE_Z], DOE[i][DOE_rX], DOE[i][DOE_rY], DOE[i][DOE_rZ]); i++; doe_Index++; } fclose(ini_doeMap);