14.10.2011, 10:33
Quote:
I dont know what it is but when a player Connects ID 0 always respawns ...... Someone please Help me...
pawn Код:
|
pawn Код:
forward SpawnLastSaved(playerid);
public SpawnLastSaved(playerid)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), ARS_ACCOUNTS, name);
SetPlayerPos(playerid, dini_Float(file, "LocX"),dini_Float(file,"LocY"),dini_Float(file,"LocZ"));
SetPlayerFacingAngle(playerid,dini_Float(file,"LocA"));
SetPlayerInterior(playerid,dini_Int(file,"LocI"));
SpawnPlayer(playerid);
return 1;
}
Didn't you get errors which states that variable "i" hasn't been defined?