Bugs, bugs, and bugs...
#1

Hi, i'm very sorry for my massive amount of posts in this board, but I just got overflooded by bugs in my server, what is a real pain in the ass...
ok so let's start...

first there's a bug with Theplayer classes, I added all th eplayer classes in a custom FS, so my GM wouldn't be bumped with lines...
Well the problem is that on the classrequest when u press the left arrow the skin does not change, u still see CJ, so it doesn't go from 0 to 300 but from 0 to 0... so to chose skin 299 F.e I have to click the right button 299 times...
Then when you click spawn with the selected skin your skin will just be CJ... and not the selected one...

Ok another bug is this one:I have activated deathmessages in my server, and even though my color is f.e green, the deathmessage will be orange, it's always orange...

and a third bug: fixed

ok so here are my OnPlayerConnect, OnPlayerSpawn and OnPlayerRequestClass callbacks from the first 2 bugs...
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    iSpawnSet[playerid] = 0;
    SetPlayerTime(playerid, 21, 0);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-2379.4502,1795.1753,3.1638);
    SetPlayerFacingAngle(playerid, 90.0);
    SetPlayerCameraPos(playerid,-2382.3833,1790.3931,2.3312);
    SetPlayerCameraLookAt(playerid,-2367.1626,1798.9792,6.3829);
    PlayerPlaySound(playerid,1185,0.0,0.0,0.0);
    ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
    return 1;
}

public OnPlayerConnect(playerid)
{
    new string[128];
   
//==============================================================================
//Variables/Arrays
//==============================================================================
    SpeedBoostMultiplier[playerid] = 2.0;
//==============================================================================
//Misc
//==============================================================================
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "Player %s (%i) joined the server!", name, playerid);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
//------------------------------------------------------------------------------
    SendDeathMessage(playerid, INVALID_PLAYER_ID, 200);
    AllowPlayerTeleport(playerid,1);
//==============================================================================
//TextDraws
//==============================================================================
    Opdracht[playerid] = TextDrawCreate(320,431.000000,"New Stuntages     /help  /cmds  /v  /teles  ..."); // Info TD on the bottom of the screen
    TextDrawLetterSize(Opdracht[playerid], 0.260000, 1.400000);
    TextDrawSetOutline(Opdracht[playerid], 1);
    TextDrawBackgroundColor(Opdracht[playerid],0x000000ff);
    TextDrawUseBox(Opdracht[playerid], 1);
    TextDrawBoxColor(Opdracht[playerid], 0x000000AA);
    TextDrawAlignment(Opdracht[playerid], 2);
    TextDrawFont(Opdracht[playerid],2);
//------------------------------------------------------------------------------
    SPEEDOS[playerid] = TextDrawCreate(10.0,200.0," "); // SpeedoMeter TD
    TextDrawShowForPlayer(playerid,SPEEDOS[playerid]);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid,Opdracht[playerid]);
    SetPlayerTime(playerid, 12, 0);
    SetPlayerWeather(playerid,0);
    ResetPlayerWeapons(playerid);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    SetPlayerRandomSpawn(playerid);
    PlayerPlaySound(playerid,1186,0,0,0);
    return 1;
}
So is there any way to debug this?
if there is, please tell me
Thanks in advance
I give reps for the helpers.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)