02.10.2013, 14:07
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:
Errors:
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;
}
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.