Not showing Jail
#3

Quote:
Originally Posted by mineralo
Посмотреть сообщение
you can't just define it
Код:
#define TXT_JailTimer "~w~Time Remaining: ~r~%i~w~"
use normal
pawn Код:
format(JailMsg, 20, "~w~Time Remaining: ~r~%i~w~", APlayerData[playerid][PlayerJailed]);
I don't see any problem with using the define.

If it's not showing the textdraw at all, then you may not have originally used TextDrawShowForPlayer. Also, change the timer code to

pawn Код:
public UnjailPlayer(playerid)
{
    new JailMsg[20];
    if (APlayerData[playerid][PlayerJailed] == 0)
    {
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
        SpawnPlayer(playerid);
        KillTimer(APlayerData[playerid][PlayerJailedTimer]);
    }
    else
    {
        if (APlayerData[playerid][PlayerJailed] < 60)
        {
            format(JailMsg, 20, TXT_JailTimer, APlayerData[playerid][PlayerJailed]);
            TextDrawSetString(APlayerData[playerid][MissionText], JailMsg);
        }
                APlayerData[playerid][PlayerJailed] --;
    }
        return 1;
}
See if that helps.
Reply


Messages In This Thread
Not showing Jail - by DerickClark - 10.05.2013, 02:32
Re: Not showing Jail - by mineralo - 10.05.2013, 06:52
Re: Not showing Jail - by [HiC]TheKiller - 10.05.2013, 07:17
Re: Not showing Jail - by DerickClark - 10.05.2013, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)