//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:\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. |
|
Originally Posted by Ironboy500
Код:
//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);
}
}
|
//middle
public OnPlayerEnterCheckpoint(playerid)
{
new playervehicleid = GetPlayerVehicleID(playerid);
new timer1;
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);
}
}
|
I:\Mini Missions X\gamemodes\FireMansAtAction.pwn(197) : warning 204: symbol is assigned a value that is never used: "timer1" I:\Mini Missions X\gamemodes\FireMansAtAction.pwn(245) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
|
Originally Posted by Ironboy500
Still same 2 errors:
Quote:
|