Errors
#1

How to fix this errors?

Код:
BankDeliverTime = -1;
Код:
C:\Users\Ramin\Desktop\Spel\PL-RP\gamemodes\PLRP.pwn(10772) : error 029: invalid expression, assumed zero
C:\Users\Ramin\Desktop\Spel\PL-RP\gamemodes\PLRP.pwn(10772) : warning 215: expression has no effect
C:\Users\Ramin\Desktop\Spel\PL-RP\gamemodes\PLRP.pwn(10807) : error 029: invalid expression, assumed zero
C:\Users\Ramin\Desktop\Spel\PL-RP\gamemodes\PLRP.pwn(10807) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#2

try it with "==" instead of "="
also, can you show us where you have actually defined the BankDeliverTime variable and how.
Reply
#3

Quote:
Originally Posted by Sandiel
Посмотреть сообщение
try it with "==" instead of "="
also, can you show us where you have actually defined the BankDeliverTime variable and how.
That didnt help

Код:
C:\Users\Ramin\Desktop\Spel\PL-RP\gamemodes\PLRP.pwn(10772) : error 029: invalid expression, assumed zero
C:\Users\Ramin\Desktop\Spel\PL-RP\gamemodes\PLRP.pwn(10772) : warning 215: expression has no effect
C:\Users\Ramin\Desktop\Spel\PL-RP\gamemodes\PLRP.pwn(10807) : error 029: invalid expression, assumed zero
C:\Users\Ramin\Desktop\Spel\PL-RP\gamemodes\PLRP.pwn(10807) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Код:
	    if(BankJobPlayer == playerid)
     	{
	        format(string, sizeof(string), "City Alert: Bank Robber %s was eliminated, the bank robbery has failed!", PlayerName(playerid));
	        SendClientMessageToAll(COLOR_LIGHTBLUE, string);
	        SetPlayerFree(playerid,999,"eliminated");
	        PlayerInfo[playerid][pWantedLevel] = 0;
			SetPlayerVirtualWorld(playerid, 0);
			PlayerInfo[playerid][pVW] = 0;
			SetPlayerWantedLevel(playerid, 0);
			PlayerInfo[playerid][pJailed] = 2;
			PlayerInfo[playerid][pJailTime] = 3600;
			RemovePlayerAttachedObject(playerid, 0);
			TimeAfterBankJob = 0;
			BankJobPlayer = 999;
			BankJobTime = -1;
			BankDeliverTime == -1;
			new tmphour;
			new tmpminute;
			new tmpsecond;
			gettime(tmphour, tmpminute, tmpsecond);
			FixHour(tmphour);
			tmphour = shifthour;
			SetWorldTime(tmphour);
   		}
Reply
#4

Try this:

Код:
	    if(BankJobPlayer == playerid)
     	{
	        format(string, sizeof(string), "City Alert: Bank Robber %s was eliminated, the bank robbery has failed!", PlayerName(playerid));
	        SendClientMessageToAll(COLOR_LIGHTBLUE, string);
	        SetPlayerFree(playerid,999,"eliminated");
	        PlayerInfo[playerid][pWantedLevel] = 0;
			SetPlayerVirtualWorld(playerid, 0);
			PlayerInfo[playerid][pVW] = 0;
			SetPlayerWantedLevel(playerid, 0);
			PlayerInfo[playerid][pJailed] = 2;
			PlayerInfo[playerid][pJailTime] = 900;
			RemovePlayerAttachedObject(playerid, 0);
			TimeAfterBankJob = 3;
			BankJobPlayer = 999;
			BankJobTime = -1;
			BankDeliverTime = -1;
			new tmphour;
			new tmpminute;
			new tmpsecond;
			gettime(tmphour, tmpminute, tmpsecond);
			FixHour(tmphour);
			tmphour = shifthour;
//			SetWorldTime(tmphour);
   		}
	}
Reply
#5

I don't get it, what is the BankDeliverTime variable supposed to hold?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)