HELP ME Damn its aggreviating
#1

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......
Reply
#2

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?
Reply
#3

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...
Reply
#4

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.
Reply
#5

Dude I Dont Know what it is.. I did some debuging I need help............
Reply
#6

then post some debugging results of the dini gets
Reply
#7

pawn Код:
SetTimerEx("TimeSpawn", 50, false, "i", playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)