help me
#1

if(IsTrailerAttachedToVehicle(vID))
{
MissionStatus[playerid] = 1;
new MisRand = random(sizeof(MisLocations));
new LoadText[128], Float, 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, "_____________________");
}



errors are

C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(239) : error 020: invalid symbol name ""
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(241) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(241) : warning 215: expression has no effect
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(241) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(241) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(241) : fatal error 107: too many error messages on one line

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


5 Errors.
plz fix them for me
Reply
#2

Try this:

pawn Код:
if(IsTrailerAttachedToVehicle(vID))
{
MissionStatus[playerid] = 1;
new MisRand = random(sizeof(MisLocations));
new LoadText[128], Float, 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, "_____________________");
}
Also where is line 241 ?
Reply
#3

You sure you have all includes? and scriptfiles?
Reply
#4

yes i am sure i am making this script my self so ya i am sure i have the includes
Reply
#5

C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(233) : error 020: invalid symbol name ""
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(235) : error 017: undefined symbol "x"
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(235) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(235) : warning 215: expression has no effect
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(235) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(235) : fatal error 107: too many error messages on one line


i got this five errors and i put this in for my mission
enum Trailer1 //Model 435
{
MissionName[200],
Text[200],
bool:UseTrailerCheck,
MissionPay,
Float:loadx,
Float:loady,
Float:loadz,
Float:unloadx,
Float:unloady,
Float:unloadz,
}
enum Trailer2 //Model 450
{
MissionName[200],
Text[200],
bool:UseTrailerCheck,
MissionPay,
Float:loadx,
Float:loady,
Float:loadz,
Float:unloadx,
Float:unloady,
Float:unloadz
}
enum Trailer3 //Model 591
{
MissionName[200],
Text[200],
bool:UseTrailerCheck,
MissionPay,
Float:loadx,
Float:loady,
Float:loadz,
Float:unloadx,
Float:unloady,
Float:unloadz
}
enum Trailer4 //Petrol tank trailer, model 584
{
MissionName[200],
Text[200],
bool:UseTrailerCheck,
MissionPay,
Float:loadx,
Float:loady,
Float:loadz,
Float:unloadx,
Float:unloady,
Float:unloadz
}
enum VansMissions //Petrol tank trailer, model 584
{
MissionName[200],
Text[200],
bool:UseTrailerCheck,
MissionPay,
Float:loadx,
Float:loady,
Float:loadz,
Float:unloadx,
Float:unloady,
Float:unloadz
}

new Trailer1Missions[][Trailer1] =
{
// {"Mission Text", UseTrailerCheck, MissionPay, loadx, loady, loadz, unloadx, unloady, unloadz,message to send to all when the player has delivered}

/* KEY:
** "Mission Text" = The text the player will see when he/she is doing the mission!
** UseTrailerCheck = Weather or not the mission requires you use a vehile that has a trailer. Ex: Roadtrain with an Artict1 trailer!
** MissionPay = The amount the player will recive for doing there mission!
** loadx, loady, and loadz = The loading coordinates of the loading checkpoint!
** unloadx, unloadx, unloadx = The un-loading coordinates of the unloading checkpoint!
enum missioninfo
*/
{"Tuff nut donuts have to be taken to LSPD in Los Santos.","has delivered some donuts to LSPD!",false, 4500, -2765.0977,766.0363,52.7813, 1536.8346,-1671.5787,13.3828},
{"Some vegetables have to be taken from Randolph Industrial to LS Farms","has delivered vegetables from Randolph Industrial to LS Farms",false,3750,1721.2209,732.8987,10.8203,40.66 78,-290.4606,1.9875},
{"Some food has to be taken from LS Farms to Angel Pine village","has delivered food from LS Farms to Angel Pine Village",false,8500,40.6678,-290.4606,1.9875,-2218.4490,-2326.2944,30.6250},
{"Some food has to be taken from Red County to Cluckin' Bell in San Fierro","has delivered food from Red County to Cluckin' Bell in San Fierro",false,6750,-536.2813,-540.1410,25.5234,-2682.9829,235.3971,4.3359}

};
new Trailer2Missions[][Trailer2] =
{
{"Industrial Waste has to be taken to Hunter Quarry.","has delievered Industrial Waste to Hunter Quarry",false,6750,-104.9665,-326.2715,1.1569,367.5729,2540.7354,17.1799},
{"Toxic Waste from area 61 has to be taken to the top of LV","has taken Toxic Waste to the top of LV from Area 61",false,10000,134.7823,1947.2845,19.3650, 1035.6412,2907.6074,46.7945},
{"Bulding Materials have to be taken from Hunter Quarry to LV Building Site","has taken bulding materials from Hunter Quarry to LV Building Site",false,8500,569.6119,886.4218,-43.3864,2705.0874,848.6469,9.7786}
};
new Trailer3Missions[][Trailer3]=
{
{"Some airplanes parts have to be taken to Abandoned Airport","has delivered airplanes parts to Abandoned Airport",false,8000,-104.9665,-326.2715,1.1569,367.5729,2540.7354,17.1799}
};
new Trailer4Missions[][Trailer4]=
{
{"Some fuel has to be taken to LV-near truckstop","has delivered fuel to LV-near truckstop",false,9000,-104.9665,-326.2715,1.1569,629.8965,1692.9579,7.5604},
{"Some fuel has to be taken from Bone Countyto San Fierro Fuel Station","has delivered fuel from Bone County to SF Fuel Station",false,9000,-1712.8076,392.0547,7.1797,578.2017,1436.4266,11.14 06},
{"A Bone county fuel station has staid without fuel, take some from Los santos","has delivered fuel from Los Santos to Bone Count Fuel Station",false,9000,-1025.1323,-676.8685,32.0078,625.6339,1670.1246,6.9922},
{"Some milk has to be taken from RockShore in Las Venturas to Dillimore Village","has delivered milk from RockShore in Las Venturas to Dillimore Village",false,7500,2825.9961,972.3922,10.7500,704 .2693,-456.1251,16.3359}
};
Reply
#6

after i put that in i got the 5 errors so i now that is the problem but i need it to work someone help me ok so i fixed that but now i have 4 warning
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(272) : warning 203: symbol is never used: "Trailer1Missions"
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(272) : warning 203: symbol is never used: "Trailer2Missions"
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(272) : warning 203: symbol is never used: "Trailer3Missions"
C:\DOCUME~1\Owner\Desktop\SAMP03~1\GAMEMO~1\trucki ng.pwn(272) : warning 203: symbol is never used: "Trailer4Missions"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
but my script ends at 271 plz help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)