/hotwire help
#1

Код:
 C:\Users\tarmo\Desktop\serverise\gamemodes\erc.pwn(13085) : error 029: invalid expression, assumed zero
C:\Users\tarmo\Desktop\serverise\gamemodes\erc.pwn(13085) : warning 215: expression has no effect
C:\Users\tarmo\Desktop\serverise\gamemodes\erc.pwn(13085) : error 001: expected token: ";", but found "]"
C:\Users\tarmo\Desktop\serverise\gamemodes\erc.pwn(13085) : error 029: invalid expression, assumed zero
C:\Users\tarmo\Desktop\serverise\gamemodes\erc.pwn(13085) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
line 13085
Код:
 					LastHW[playerid] = timestamp;
all script
Код:
if(strcmp(cmdtext, "/hotwire", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    if(PlayerInfo[playerid][pJob] == 5)
	    {
	      if(IsPlayerInVehicle(playerid, playerid))
				{
					new timestamp = GetTickCount();
					LastHW[playerid] = timestamp;

					if(timestamp - LastHW[playerid] < 5000)
					{
						SendClientMessage(playerid, COLOR_RED, "You are trying to hotwire it.");
					}
	  			else if(random(100)<30)
					{
						SetTimerEx("HotwireSucces", 5000, 0, "i", playerid);
						SendClientMessage(playerid, COLOR_GREEN, "Car start.");
						TogglePlayerControllable(playerid,1);
  				}
					else
					{
						SetTimerEx("HotwireFail", 5000, 0, "i", playerid);
						SendClientMessage(playerid, COLOR_RED, "Car didnt start,you failed");
						RemovePlayerFromVehicle(playerid);
			  	}
			  }
 			}
		}
		return 1;
	}
Reply


Messages In This Thread
/hotwire help - by flackher - 24.01.2010, 17:36

Forum Jump:


Users browsing this thread: 1 Guest(s)