undefined symbol
#6

Quote:
Originally Posted by Florin48
Посмотреть сообщение
post lines 210 to 263 to see it wrong there.
210 to 263

Код:
    Global_HUD_Txd[6] = TextDrawCreate(222.699981, 432.800048, "LD_SPAC:white");
    TextDrawLetterSize(Global_HUD_Txd[6], 0.000000, 0.000000);
    TextDrawTextSize(Global_HUD_Txd[6], 61.000000, 4.749994);
    TextDrawAlignment(Global_HUD_Txd[6], 1);
    TextDrawColor(Global_HUD_Txd[6], 842150655);
    TextDrawSetShadow(Global_HUD_Txd[6], 0);
    TextDrawSetOutline(Global_HUD_Txd[6], 0);
    TextDrawBackgroundColor(Global_HUD_Txd[6], 255);
    TextDrawFont(Global_HUD_Txd[6], 4);
    TextDrawSetProportional(Global_HUD_Txd[6], 0);
    TextDrawSetShadow(Global_HUD_Txd[6], 0);

	return 1;
}

public OnGameModeExit()
{
	return 1;
}

ptask Timer_XP[XP_TIME](playerid)
{
    GivePlayerXP(playerid, XP_VALUE);
    return 1;
}

ptask Timer_Hunger[18000](playerid) // 1sec - 1000, 1min - 60000, 3min - 180000
{
    if(!Spawned[playerid]) return 1;
    if(PlayerInfo[playerid][pThirst] <= 0 || PlayerInfo[playerid][pHunger] <= 0)
    {
        new 
            Float:health,
            Float:damage = float(5 + random(5));
        GetPlayerHealth(playerid, health);
        if(health <= damage)
        {
            // dabar nuimsim jau visas HP
            SendClientMessage(playerid, 0xBABABAFF, "Mir?te d?l tro?kulio arba alkio.");
        }
        SetPlayerHealth(playerid, health - damage);
    }
    if(PlayerInfo[playerid][pHunger] > 0) SetHungerLevel(playerid, PlayerInfo[playerid][pHunger] - 1 + random(2));
    if(PlayerInfo[playerid][pThirst] > 0) SetThirstLevel(playerid, PlayerInfo[playerid][pThirst] - 1 + random(2));
    return 1;
}

stock UpdateXPString(playerid)
{       
    new 
        string[42];
    format(string, sizeof string, "XP:_%d/%d___LYGIS:_%d", PlayerInfo[playerid][pXP], (PlayerInfo[playerid][pLevel] + 1) * XP_DIFFERENCE_PER_LEVEL, PlayerInfo[playerid][pLevel]);
    PlayerTextDrawSetString(playerid, Player_HUD_Txd[playerid][0], string);
    return 1;
}
Reply


Messages In This Thread
undefined symbol - by Lukasz56 - 23.07.2018, 11:47
Re: undefined symbol - by Florin48 - 23.07.2018, 11:51
Re: undefined symbol - by Lukasz56 - 23.07.2018, 12:25
Re: undefined symbol - by taktaz - 23.07.2018, 13:17
Re: undefined symbol - by Florin48 - 23.07.2018, 13:24
Re: undefined symbol - by Lukasz56 - 23.07.2018, 13:32
Re: undefined symbol - by Florin48 - 23.07.2018, 13:54
Re: undefined symbol - by Lukasz56 - 23.07.2018, 14:09
Re: undefined symbol - by GTLS - 23.07.2018, 14:47

Forum Jump:


Users browsing this thread: 1 Guest(s)