Need Help
#1

Hello all! Can anyone look my script and fix this errors:

Код:
//top
new timer1;

//middle
public OnPlayerEnterCheckpoint(playerid)
{
 	new playervehicleid = GetPlayerVehicleID(playerid);

 	if(gObjectiveReached) return;
	if(playervehicleid == OBJECTIVE_VEHICLE_FIREMAN && gTeam[playerid] == TEAM_FIREMAN)
		{  // Green OBJECTIVE REACHED.
	  gObjectiveReached = 1;
	  SendClientMessageToAll (COLOR_ORANGE, "Server: Drugs are on Hospital checkpoint and they need 10 seconds to export!");
   	timer1 = SetTimer("Export", 10000, false);
	}
}
Код:
public OnVehicleDeath(vehicleid, killerid)
{
	new string[256]; new killername[MAX_PLAYER_NAME];
	GetPlayerName (killerid, killername, sizeof(killername));
  new playervehicleid = GetPlayerVehicleID(vehicleid);
  if(playervehicleid == OBJECTIVE_VEHICLE_FIREMAN)
  {//Objective Vehicle Explode
  format(string, sizeof(string), "Server: FireTruck was destroyed by %s (%d).", killername, killerid);
  GameTextForAll ("~y~FireTruck~w~ With Drugs Exploded!", 2000, 5);
  KillTimer("timer1");
	}
}
I have following errors:

Quote:

I:\Mini Missions X\gamemodes\FireMansAtAction.pwn(246) : error 035: argument type mismatch (argument 1)
I:\Mini Missions X\gamemodes\FireMansAtAction.pwn(19 : warning 204: symbol is assigned a value that is never used: "timer1"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Can you help me to fix it?
Thanks!
Reply


Messages In This Thread
Need Help - by Ironboy500 - 29.11.2009, 12:48
Re: Need Help - by diesulke - 29.11.2009, 13:06
Re: Need Help - by Ironboy500 - 29.11.2009, 13:09
Re: Need Help - by Ironboy500 - 29.11.2009, 13:20
Re: Need Help - by Nero_3D - 29.11.2009, 13:21
Re: Need Help - by Ironboy500 - 29.11.2009, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)