HELP ME Damn its aggreviating -
Buzzbomb - 15.10.2011
When ever a player JOINS everyone respawns its Driving me nuts This is UNDER OnPlayerReQuestClass
SetTimer("TimeSpawn", 50, false); //Spawn Player Last Position
pawn Код:
forward TimeSpawn(playerid);
public TimeSpawn(playerid)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), ARS_ACCOUNTS, name);
SetPlayerSkin(playerid, dini_Int(file, "Character"));
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"));
return 1;
}
Everyone Spawns In BlueBerry......
Re: HELP ME Damn its aggreviating -
JaTochNietDan - 16.10.2011
First of all, a 50 millisecond timer? That seems kind of pointless, also you're not even passing any values to the function, while it's expecting a value to be stored in "playerid", you're not giving it one, so that's going to cause an issue. Regardless, I have to wonder why you have a timer when it's only 50 milliseconds in length?
Re: HELP ME Damn its aggreviating -
Buzzbomb - 16.10.2011
Because If i just call the Function It spawns you in blueberry ... and it only worked that way for me...
Give Me an Example On what your saying cause im so confused right now Please...
Re: HELP ME Damn its aggreviating -
JaTochNietDan - 16.10.2011
Doesn't that tell you there's a problem with the loading of the data? Blueberry is where you end up when you are spawned at 0.0, 0.0, 0.0, which tells me that there is a problem with either the data storage, or the loading of it. Do some debugging with the print function to make sure that the data is being loaded correctly.
Re: HELP ME Damn its aggreviating -
Buzzbomb - 16.10.2011
Dude I Dont Know what it is.. I did some debuging I need help............
Re: HELP ME Damn its aggreviating -
cessil - 16.10.2011
then post some debugging results of the dini gets
Re: HELP ME Damn its aggreviating -
SuperViper - 16.10.2011
pawn Код:
SetTimerEx("TimeSpawn", 50, false, "i", playerid);