19.10.2010, 18:33
Try with small letters.
pawn Код:
if (strcmp(cmdtext, "/savepostofile", true)==0)
{
new string[128];
new Float:x, Float:z, Float:y, Float:Rotation;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, Rotation);
new File:pos=fopen("Server/Save/onfoot", io_append);
format(string, sizeof(string), "AddPlayerClass(0, %f, %f, %f, %f, 0,0,0,0,0,0);", x, y, z,Rotation);
fwrite(pos, string);
fclose(pos);
return 1;
}