please, help me
#1

Код:
public OnGameModeExit()
{
  for(new k = 0; k < MAX_PLAYERS; k++)
  {
  new string[128];
	new Float:X, Float:Z, Float:Y;
	new currentveh;
	currentveh = GetPlayerVehicleID(k);
	GetVehiclePos(currentveh, X, Y, Z);
	new File:pos=fopen("vehicles.txt", io_write);
	format(string, 256, "GetVehiclePos(0, %f, %f, %f);", X, Y, Z);
	fwrite(pos, string);
	fclose(pos);
	}
	return 1;
}
I'm trying to do that after server restart cars would stay in the same place like before restart. I've made script but it's doesn't creates and saves positions. What I do wrong and how to solve this problem?
Reply


Messages In This Thread
please, help me - by lakierka - 29.06.2009, 09:26
Re: please, help me - by krisk - 29.06.2009, 10:20
Re: please, help me - by ledzep - 29.06.2009, 10:26
Re: please, help me - by Nero_3D - 29.06.2009, 10:30
Re: please, help me - by lakierka - 29.06.2009, 10:48
Re: please, help me - by krisk - 29.06.2009, 10:49
Re: please, help me - by lakierka - 29.06.2009, 10:59

Forum Jump:


Users browsing this thread: 2 Guest(s)