Jail Timing System.
#7

Thanks! But I want that Player should be jailed for that seconds which I selected like: /ajail <playerid> <seconds>

so I select seconds for players not just for 500 seconds.

OK I applied what you said now see I am getting few errors here:

pawn Код:
forward UpdateJailTime(playerid);
public UpdateJailTime(playerid)
{
    if(pInfo[playerid][JailTime] != 0) //Line 894
    {
         pInfo[playerid][JailTime]--; //Will reduce jail time by 1 // Line 896
         new string[256];
         format(string,sizeof(string),"~w~Time:~n~~y~%d",pInfo[playerid][JailTime]); //Line 898
         TextDrawSetString(textdraw,string); //Line 899
    }
    else
    {
         KillTimer(JailTimer[playerid]);
         TextDrawHideForPlayer(playerid,textdraw); //Line 904
    }
    return 1;
}
Errors:
pawn Код:
E:\Scritping\gamemodes\Gamemode.pwn(894) : error 017: undefined symbol "JailTime"
E:\Scritping\gamemodes\Gamemode.pwn(896) : error 017: undefined symbol "JailTime"
E:\Scritping\gamemodes\Gamemode.pwn(898) : error 017: undefined symbol "JailTime"
E:\Scritping\gamemodes\Gamemode.pwn(899) : error 017: undefined symbol "textdraw"
E:\Scritping\gamemodes\Gamemode.pwn(904) : error 017: undefined symbol "textdraw"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Reply


Messages In This Thread
Jail Timing System. - by MAFIAWARS - 02.10.2013, 07:18
Re: Jail Timing System. - by Konstantinos - 02.10.2013, 09:31
Re: Jail Timing System. - by MAFIAWARS - 02.10.2013, 10:02
Re: Jail Timing System. - by MAFIAWARS - 02.10.2013, 12:43
Re: Jail Timing System. - by -=Dar[K]Lord=- - 02.10.2013, 12:51
Re: Jail Timing System. - by xganyx - 02.10.2013, 13:30
Re: Jail Timing System. - by MAFIAWARS - 02.10.2013, 14:07
Re: Jail Timing System. - by -=Dar[K]Lord=- - 02.10.2013, 14:11
Re: Jail Timing System. - by MAFIAWARS - 02.10.2013, 14:33
Re: Jail Timing System. - by MAFIAWARS - 02.10.2013, 18:04

Forum Jump:


Users browsing this thread: 1 Guest(s)