30.07.2013, 05:13
My codes:
Error:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 519 || 511 || 520)
{
MissionStatus[playerid] = 1;
new MisRand = random(sizeof(MisLocations));
new LoadText[128], Float:x, Float:y, Float:z;
x = MisLocations[MisRand][LoadX];
y = MisLocations[MisRand][LoadY];
z = MisLocations[MisRand][LoadZ];
unx[playerid] = MisLocations[MisRand][UnloadX];
uny[playerid] = MisLocations[MisRand][UnloadY];
unz[playerid] = MisLocations[MisRand][UnloadZ];
iPay[playerid] = MisLocations[MisRand][Pay];
SetPlayerCheckpoint(playerid, x, y, z, 7);
format(LoadText, 128, "%s",MisLocations[MisRand][LoadName]);
SendClientMessage(playerid, COLOR_GREEN, "Mission:");
SendClientMessage(playerid, COLOR_GREEN, "_____________________");
SendClientMessage(playerid, COLOR_GREEN, "");/
SendClientMessage(playerid, 0xFFFFFFFF, LoadText);
SendClientMessage(playerid, COLOR_GREEN, "_____________________");
SendClientMessage(playerid,-1,"Must use /work to start the mission");
}
return 0;
}
Код:
D:\Trucking\filterscripts\123.pwn(61) : error 017: undefined symbol "MissionStatus" D:\Trucking\filterscripts\123.pwn(61) : warning 215: expression has no effect D:\Trucking\filterscripts\123.pwn(61) : error 001: expected token: ";", but found "]" D:\Trucking\filterscripts\123.pwn(61) : error 029: invalid expression, assumed zero D:\Trucking\filterscripts\123.pwn(61) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.

