Hi leute ich hab probiert ein automatisches Fahrschul system einzubauen also mit 92 checkpoints aber beim compilen bekomme ich errors weis nicht genau warum
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(1213) : error 021: symbol already defined: "AktuellerCP"
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(1293) : error 001: expected token: "}", but found "{"
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(1307) : error 010: invalid function or declaration
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(4235) : error 021: symbol already defined: "FahrschulFahrzeug"
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(4237) : error 010: invalid function or declaration
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(4239) : error 010: invalid function or declaration
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(4241) : error 010: invalid function or declaration
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(4244) : error 010: invalid function or declaration
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(6768) : error 012: invalid function call, not a valid address
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(6768) : warning 215: expression has no effect
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(6768) : error 001: expected token: ";", but found ")"
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(6768) : error 029: invalid expression, assumed zero
C:\Users\Tufan\Desktop\SAMP\GPR\gamemodes\LSRNEU.pwn(6768) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
12 Errors.
new Float:FahrschulCPs[FahrschulCheckpoints][3]={
{1412.8900,-1648.4752,13.1796}, // autocp1
{1431.6948,-1607.6531,13.1836},//2
{1431.7102,-1606.1044,13.1835},//3
{1558.7515,-1595.1112,13.1845},//4
{1680.1405,-1594.5276,13.1878},//5
{1797.5276,-1614.9144,13.1589},//6
{1826.5259,-1583.5309,13.2013},//7
{1852.2935,-1465.7340,13.1998},//8
{1853.0436,-1322.1166,13.1954},//9
{1853.7538,-1233.1215,16.1406},//10
{1818.6246,-1178.8802,23.4303},//},//11
{1677.8992,-1159.1271,23.4579},//12
{1569.6437,-1087.7944,23.2947},//13
{1477.1909,-1031.5544,23.4595},//14
{1342.3506,-924.7654,35.0949},//15
{1237.5261,-930.0591,42.3112},//16
{1117.1959,-944.0316,42.4904},//17
{925.2901,-970.4355,38.0016},//18
{833.1880,-1031.3468,25.1987},//19
{695.9514,-1127.4442,16.6441},//20
{555.9717,-1234.9677,16.8783},//21
{375.7454,-1358.1707,14.2638},//22
{202.4043,-1476.7830,12.6039},//23
{154.2029,-1544.2717,10.3446},//24
{91.9316,-1528.0074,5.3571},//25
{48.0247,-1524.8418,4.9038},//26
{-144.1224,-1423.9990,2.4973},//27
{-142.4810,-1274.2383,2.4968},//28
{-116.3894,-1180.3911,2.4976},//29
{-101.7729,-1016.4847,23.8814},//30
{-216.3085,-913.1281,39.6835},//31
{-379.7390,-833.4022,46.7725},//32
{-528.7808,-900.5591,55.4270},//33
{-643.5036,-991.3013,67.6831},//34
{-755.5773,-1003.2718,77.0380},//35
{-880.4004,-1087.0040,95.3245},//36
{-951.5349,-1050.1322,96.2502},//37
{-1189.3490,-807.3529,64.9536},//38
{-1405.7375,-815.6439,81.4460},//39
{-1656.2295,-773.5282,43.1172},//40
{-1774.2732,-667.0219,22.5388},//41
{-1812.9937,-414.5691,15.2931},//42
{-1798.1458,-231.9649,18.0250},//43
{-1842.8685,-115.6121,5.2939},//44
{-2000.3804,-66.4709,34.9934},//45
{-2136.2764,-68.9277,34.9736},//46
{-2169.6497,-96.1903,34.9735},//47
{-2263.9744,-230.4697,36.5424},//48
{-2238.4351,-418.4001,50.6689},//49
{-2083.4019,-567.9721,30.5707},//50
{-1932.1154,-584.0044,24.2474},//51
{-1868.9790,-585.0779,23.6900},//52
{-1812.3297,-795.2456,34.7087},//53
{-1813.2621,-961.4097,48.2349},//54
{-1784.1719,-1079.8550,54.0934},//55
{-1673.3361,-1303.8503,49.4515},//56
{-1589.6830,-1423.9325,42.0834},//57
{-1526.4379,-1360.7916,47.9291},//58
{-1608.6079,-1194.6987,68.6235},//59
{-1726.9102,-1040.4329,74.4029},//60
{-1730.1257,-835.8544,78.8195},//61
{-1639.4095,-960.3720,100.3634},//62
{-1503.8246,-1245.2848,101.0825},//63
{-1398.2239,-1419.3755,106.1105},//64
{-1213.1150,-1349.6252,122.9672},//65
{-978.3525,-1400.1382,129.8426},//66
{-895.4240,-1273.8160,114.0657},//67
{-881.0730,-1119.0114,98.5092},//68
{-639.0716,-998.5749,67.5196},//69
{-501.2157,-879.5854,53.1114},//70
{-329.3098,-862.6574,46.6942},//71
{-159.6044,-961.9373,29.0681},//72
{-88.9250,-1110.2947,1.7249},//73
{-143.0179,-1242.8008,2.5012},//74
{-43.4883,-1517.7830,1.6232},//74
{95.2689,-1546.9752,5.9637},//75
{209.0249,-1484.8503,12.6723},//76
{304.5651,-1409.6660,13.7421}//77
{465.6324,-1312.4926,15.0362},//78 ///ZEILE 1293
{626.0582,-1250.4871,17.4031},//79
{665.0635,-1321.6193,13.2274},//80
{878.5985,-1327.8077,13.3516},//81
{1008.1259,-1328.4691,13.1845},//82
{1089.7378,-1403.1366,13.2852},//83
{1252.7448,-1403.1149,12.8062},//84
{1329.7749,-1403.9984,13.1606},//85
{1396.1688,-1423.4410,13.1863},//86
{1424.2421,-1442.9252,13.1846},//88
{1438.8768,-1512.7186,13.2403},//89
{1427.7891,-1626.0474,13.1845},//90
{1402.9083,-1648.1875,13.1803},//91
{1374.0547,-1636.2183,13.1834}//92
};//ZEILE 1307
Function FahrschulFahrzeug(carid)////4235
{
for(new i = 0; i < sizeof(FahrschulFahrzeug); i++)
{
if(carid == FahrschulFahrzeug[i])
{
return 1;
}
}
return 0;
}
if(AktuellerCP[playerid] != INVALID_FAHRSCHUL_CP && FahrschulFahrzeug(vehicle)) ///ZEILE 6768
{
if(AktuellerCP[playerid] == EndFahrschulCP)
{
DisablePlayerCheckpoint(playerid);
AktuellerCP[playerid] = INVALID_FAHRSCHUL_CP;
SendClientMessage(playerid, COLOR_GRAD1, "Herzlichen Glückwunsch, sie haben bestanden !");
PlayerInfo[playerid][pCarLic] = 1;
SetVehicleToRespawn(vehicle);
}
else
{
AktuellerCP[playerid]++;
SetPlayerCheckpoint(playerid,FahrschulCPs[AktuellerCP[playerid]][0],FahrschulCPs[AktuellerCP[playerid]][1],FahrschulCPs[AktuellerCP[playerid]][2], 8.0);
}
}
könnt ihr mir helfen pls
MfG,
The GamerX