jailtime - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: jailtime (
/showthread.php?tid=495857)
jailtime -
Markus1337 - 19.02.2014
I'm sorry if I don't understand, seems like my brain is confused right now
When players sent to jail cell:
pawn Код:
new time[20];
format(time,sizeof(time),"Jailtime: %d",pInfo[playerid][JailTime]);
GameTextForPlayer(playerid,time,5000,3);
SetTimer("ReleaseJail", 5000 * CrimesCommitted[playerid], false);
I want to get the total from 5000*CrimesCommitted[playerid], crimescommitted is increased by 1 for every crime.
I've been searching but can't find anything.. thanks
Re: jailtime -
klimgorilla - 19.02.2014
pawn Код:
new time[20];
pInfo[playerid][JailTime] = 5000 * CrimesCommitted[playerid];
format(time,sizeof(time),"Jailtime: %d",pInfo[playerid][JailTime]);
GameTextForPlayer(playerid,time,5000,3);
SetTimer("ReleaseJail", pInfo[playerid][JailTime], false);
I think you forgot to set JailTime