Whats Wrong With This
#1

I am trying to make it minus 1 so if its 50 , it becomes 49 and all the way down to zero.
Quote:

PlayerInfo[playerid][pJailTime] -= 1);

Errors With This
Quote:

C:\Users\Administrator\Desktop\samp03asvr_win32\ga memodes\b3rpg.pwn(2740) : error 001: expected token: ";", but found ")"
C:\Users\Administrator\Desktop\samp03asvr_win32\ga memodes\b3rpg.pwn(2740) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\samp03asvr_win32\ga memodes\b3rpg.pwn(2740) : warning 215: expression has no effect

Reply
#2

Код:
PlayerInfo[playerid][pJailTime]--;
Example: (in a timer i assume)

Код:
PlayerInfo[playerid][pJailTime]--;
if(PlayerInfo[playerid][pJailTime] < 1)
{
	// Out of jail

}
else
{
	new timeleft[24];
	format(timeleft, sizeof(timeleft), "Secounds left: %i", PlayerInfo[playerid][pJailTime]);
	GameTextForPlayer(playerid, timeleft, 3000, 4);
}
// correct me if the code is wrong
Reply
#3

Yea I have the timer made up. Thx for the Seconds left. I needed one. And Code Works Like A Charm.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)