29.11.2009, 12:48
Hello all! Can anyone look my script and fix this errors:
I have following errors:
Can you help me to fix it?
Thanks!
Код:
//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"); } }
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. |
Thanks!