Jump to content
  • 0

Eroare compilare


Alexandru Alex

Question

        case 301: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  744.6379,-556.1034,18.0129, 981.4542,-1814.0586,13.9752, 5.0 );
            CP[playerid]++;    
        }
        case 302: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 981.4542,-1814.0586,13.9752, 5.0);
            CP[playerid]++;
        }
        case 203: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 167.8773,-1768.6434,4.4820, 5.0);
            CP[playerid]++;
        }
        case 304: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  167.8773,-1768.6434,4.4820, 1981.6117,-1682.4552,17.0533, 5.0);
            CP[playerid]++;    
        }
        case 305: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  1981.6117,-1682.4552,17.0533, 2208.2031,-1100.8151,31.5547, 5.0);
            CP[playerid]++;    
        }

Erorile: 

: error 014: invalid statement; not in switch
: warning 215: expression has no effect
: error 001: expected token: ";", but found ":"
: fatal error 107: too many error messages on one line

Care e faza?

Link to comment
Share on other sites

18 answers to this question

Recommended Posts

  • 0
Acum 7 minute, Alexandru Alex a spus:
        case 301: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  744.6379,-556.1034,18.0129, 981.4542,-1814.0586,13.9752, 5.0 );
            CP[playerid]++;    
        }
        case 302: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 981.4542,-1814.0586,13.9752, 5.0);
            CP[playerid]++;
        }
        case 203: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 167.8773,-1768.6434,4.4820, 5.0);
            CP[playerid]++;
        }
        case 304: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  167.8773,-1768.6434,4.4820, 1981.6117,-1682.4552,17.0533, 5.0);
            CP[playerid]++;    
        }
        case 305: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  1981.6117,-1682.4552,17.0533, 2208.2031,-1100.8151,31.5547, 5.0);
            CP[playerid]++;    
        }

Erorile: 

: error 014: invalid statement; not in switch
: warning 215: expression has no effect
: error 001: expected token: ";", but found ":"
: fatal error 107: too many error messages on one line

Care e faza?

Arata tot codul 

pana ce problema o vad aici 

        case 203: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 167.8773,-1768.6434,4.4820, 5.0);
            CP[playerid]++;
        }

trebuie case 303:  {

Edited by KB.HERO

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

  • 0
4 minutes ago, KB.HERO said:

Arata tot codul 

pana ce problema o vad aici 

        case 203: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 167.8773,-1768.6434,4.4820, 5.0);
            CP[playerid]++;
        }

trebuie case 303:  {

 : error 014: invalid statement; not in switch
 : warning 215: expression has no effect
 : error 001: expected token: ";", but found ":"
 : error 029: invalid expression, assumed zero
 : fatal error 107: too many error messages on one line
		case 301: {
			SetPlayerRaceCheckpointEx(plyerid, 0,  744.6379,-556.1034,18.0129, 981.4542,-1814.0586,13.9752, 5.0 );
			CP[playerid]++;	
		}
		case 302: {
			SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 981.4542,-1814.0586,13.9752, 5.0);
			CP[playerid]++;
		}
		case 303: {
			SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 167.8773,-1768.6434,4.4820, 5.0);
			CP[playerid]++;
		}
		case 304: {
			SetPlayerRaceCheckpointEx(plyerid, 0,  167.8773,-1768.6434,4.4820, 1981.6117,-1682.4552,17.0533, 5.0);
			CP[playerid]++;	
		}
		case 305: {
			SetPlayerRaceCheckpointEx(plyerid, 0,  1981.6117,-1682.4552,17.0533, 2208.2031,-1100.8151,31.5547, 5.0);
			CP[playerid]++;	
		}

 

Link to comment
Share on other sites

  • 0
function OnPlayerEnterRaceCheckpoint(playerid) {
    if(!PlayerToPoint(50, playerid, LastPos[playerid][0], LastPos[playerid][1], LastPos[playerid][2]) && !playerVariables[playerid][pAdmin]) return AdmBot(playerid, "possible checkpoint-teleport #2");

    switch(CP[playerid]) {
        // exam
        case 100: {
            SetPlayerRaceCheckpointEx(playerid, 0,-136.4739, 1190.3674, 19.2818 , -125.5403, 1195.6617, 19.2818, 3.0);
            CP[playerid]++;
        }
        case 101: {
            SetPlayerRaceCheckpointEx(playerid,0, -125.5403, 1195.6617, 19.2818, -118.3623, 1162.6816, 19.2818, 3.0);
            CP[playerid]++;
        }
        case 102: {
            SetPlayerRaceCheckpointEx(playerid,0, -118.3623, 1162.6816, 19.2818, -173.6527, 1151.0865, 19.2818, 3.0);
            CP[playerid]++;
        }
        case 103: {
            SetPlayerRaceCheckpointEx(playerid,0, -173.6527, 1151.0865, 19.2818, -186.8403, 1168.0807, 19.1839, 3.0);
            CP[playerid]++;
        }
        case 104: {
            SetPlayerRaceCheckpointEx(playerid,0, -186.8403, 1168.0807, 19.1839, -184.9106, 1193.8254, 19.1839, 3.0);
            CP[playerid]++;
        }
        case 105: {
            SetPlayerRaceCheckpointEx(playerid,0, -184.9106, 1193.8254, 19.1839, -154.6323, 1196.2001, 19.1839, 3.0);
            CP[playerid]++;
        }
        case 106: {
            SetPlayerRaceCheckpointEx(playerid,0, -154.6323, 1196.2001, 19.1839, -141.2546, 1195.6125, 19.1839, 3.0);
            CP[playerid]++;
        }
        case 107: {
            SetPlayerRaceCheckpointEx(playerid,1, -141.2546, 1195.6125, 19.1839,0.0,0.0,0.0, 3.0);
            CP[playerid]++;
        }
        case 108: {
            if(!IsPlayerInVehicle(playerid, examcar[playerid])) return SCM(playerid, COLOR_LIGHTGREEN3, "You aren't in the examen car.");
            playerVariables[playerid][pCarLic] = 1;
            playerVariables[playerid][pCarLicT] = 100;
            InExamen[playerid] = 0;
            DisablePlayerRaceCheckpointEx(playerid);
            CP[playerid] = 0;
            DisableRemoteVehicleCollisions(playerid, 0);
            DestroyVehicle(examcar[playerid]);
            examcar[playerid] = -1;
            UpdateVar(playerid, "CarLic", 1);
            UpdateVar(playerid, "CarLicT", 100);
            SCM(playerid, COLOR_JOB, "(Info): {FFFFFF}You earned your driving license. This is available for 100 hours.");
        }
        // pilot
        case 159: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1337.7225,-2458.1738,52.1955,1068.9011,-1998.5757,110.3633, 5.0);    
        }
        case 160: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1068.9011,-1998.5757,110.3633,1248.2017,-1089.9178,126.1693, 5.0);
        }
        case 161: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1248.2017,-1089.9178,126.1693,1262.6804,-359.7021,125.8077, 5.0);
        }
        case 162: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1262.6804,-359.7021,125.8077,1354.6277,185.5372,126.3102, 5.0);
        }
        case 163: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1354.6277,185.5372,126.3102,1469.2338,856.8419,73.3954, 5.0);
        }
        case 164: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1469.2338,856.8419,73.3954,1477.5388,1444.2805,11.7513, 5.0);
        }
        case 165: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1477.5388,1444.2805,11.7513,1389.3634,1615.9071,11.7527, 5.0);
        }
        case 166: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1389.3634,1615.9071,11.7527,1381.7755,1238.9287,35.4809, 5.0);
        }
        case 167: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1381.7755,1238.9287,35.4809,1350.0398,829.1030,91.8478, 5.0);
        }
        case 168: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1350.0398,829.1030,91.8478,1251.3011,235.3953,113.0084, 5.0);
        }
        case 169: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1251.3011,235.3953,113.0084,1161.8298,-439.5165,142.3422, 5.0);
        }
        case 170: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1161.8298,-439.5165,142.3422,1033.0001,-918.2105,146.7412, 5.0);
        }
        case 171: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1033.0001,-918.2105,146.7412,817.0712,-1571.2627,105.0100, 5.0);
        }
        case 172: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 817.0712,-1571.2627,105.0100,854.5660,-2107.3997,73.8536, 5.0);
        }
        case 173: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 854.5660,-2107.3997,73.8536,1156.9110,-2464.0076,51.5708, 5.0);
        }
        case 174: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1156.9110,-2464.0076,51.5708,1691.7114,-2592.8950,14.4685, 5.0);
        }
        case 175: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 3,1691.7114,-2592.8950,14.4685,0.0,0.0,0.0, 5.0);
        }
        case 176: {
            if(!IsPlayerInVehicle(playerid, JobVehicle[playerid])) return sendJob(playerid, "Nu esti cu vehiculul de la job.");
            DisablePlayerRaceCheckpointEx(playerid);
            CP[playerid] = 0;
            PlayerTextDrawHide(playerid, JobTD);

            DisableRemoteVehicleCollisions(playerid, false);

            playerVariables[playerid][pPilotSkill] ++;
            UpdateVar(playerid, "PilotSkill", playerVariables[playerid][pPilotSkill]);

            GiveJobSalary(playerid);

            JobWorking[playerid] = 0;
            if(JobVehicle[playerid] != 0) { DestroyVehicle(JobVehicle[playerid]); JobVehicle[playerid] = 0; }
        }
        // bus
        case 179: {
            SetPlayerRaceCheckpointEx(playerid, 0, 1941.3706,-2169.2083,13.4851,1964.6262,-1899.2827,13.4838,4.0);
            CP[playerid]++;
        }
        case 180: { 
            SetPlayerRaceCheckpointEx(playerid, 0, 1964.6262,-1899.2827,13.4838,1921.6910,-1749.1346,13.4828,4.0);
            CP[playerid]++;
        }
        case 181: { 
            SetPlayerRaceCheckpointEx(playerid, 0, 1921.6910,-1749.1346,13.4828,1819.4100,-1814.2385,13.5056,4.0);
            CP[playerid]++;
        }
        case 182: { 
            SetPlayerRaceCheckpointEx(playerid, 0, 1819.4100,-1814.2385,13.5056,1692.2909,-1764.9092,13.4875,4.0);
            CP[playerid]++;
        }
        case 183: { 
            SetPlayerRaceCheckpointEx(playerid, 0, 1692.2909,-1764.9092,13.4875,1395.2542,-1729.2012,13.4901,4.0);
            CP[playerid]++;
        }
        case 184: { 
            SetPlayerRaceCheckpointEx(playerid, 0, 1395.2542,-1729.2012,13.4901,1315.4188,-1631.5197,13.4827,4.0);
            CP[playerid]++;
        }
        case 185: { 
            SetPlayerRaceCheckpointEx(playerid, 0, 1315.4188,-1631.5197,13.4827,1325.5859,-1392.4742,13.4741,4.0);
            CP[playerid]++;
        }
        case 186: {
            SetPlayerRaceCheckpointEx(playerid, 0, 1325.5859,-1392.4742,13.4741,1209.0767,-1324.8274,13.5002,4.0);
            CP[playerid]++;
        }
        case 187: {
            SetPlayerRaceCheckpointEx(playerid, 0, 1209.0767,-1324.8274,13.5002,1082.8730,-1277.8145,13.5019,4.0);
            CP[playerid]++;
        }
        case 188: {
            SetPlayerRaceCheckpointEx(playerid, 0, 1082.8730,-1277.8145,13.5019,966.0933,-1218.3807,16.8770,4.0);
            CP[playerid]++;
        }
        case 189: {
            SetPlayerRaceCheckpointEx(playerid, 0, 966.0933,-1218.3807,16.8770,818.9665,-1137.8669,23.8506,4.0);
            CP[playerid]++;
        }
        case 190: {
            SetPlayerRaceCheckpointEx(playerid, 0, 818.9665,-1137.8669,23.8506,794.1818,-1301.3213,13.4795,4.0);
            CP[playerid]++;
        }
        case 191: {
            SetPlayerRaceCheckpointEx(playerid, 0, 794.1818,-1301.3213,13.4795,678.5087,-1392.8485,13.5081,4.0);
            CP[playerid]++;
        }
        case 192: {
            SetPlayerRaceCheckpointEx(playerid, 0, 678.5087,-1392.8485,13.5081,380.8662,-1492.7212,32.2020,4.0);
            CP[playerid]++;
        }
        case 193: {
            SetPlayerRaceCheckpointEx(playerid, 0, 380.8662,-1492.7212,32.2020,258.5574,-1537.6969,32.3608,4.0);
            CP[playerid]++;
        }
        case 194: {
            SetPlayerRaceCheckpointEx(playerid, 0, 258.5574,-1537.6969,32.3608,484.7990,-1357.7792,17.9893,4.0);
            CP[playerid]++;
        }
        case 195: {
            SetPlayerRaceCheckpointEx(playerid, 0, 484.7990,-1357.7792,17.9893,588.3983,-1232.8560,17.8009,4.0);
            CP[playerid]++;
        }
        case 196: {
            SetPlayerRaceCheckpointEx(playerid, 0, 588.3983,-1232.8560,17.8009,774.5882,-1058.5305,24.5938,4.0);
            CP[playerid]++;
        }
        case 197: {
            SetPlayerRaceCheckpointEx(playerid, 0, 774.5882,-1058.5305,24.5938,1209.5120,-948.5093,42.8005,4.0);
            CP[playerid]++;
        }
        case 198: {
            SetPlayerRaceCheckpointEx(playerid, 0, 1209.5120,-948.5093,42.8005,1566.5400,-997.7548,45.7116,4.0);
            CP[playerid]++;
        }
        case 199: {
            SetPlayerRaceCheckpointEx(playerid, 1, 1958.2472,-1999.3572,13.4949,0.0,0.0,0.0,4.0);
            CP[playerid]++;
        }
        case 200: {
            if(!IsPlayerInVehicle(playerid, JobVehicle[playerid])) return sendJob(playerid, "Nu esti cu vehiculul de la job.");
            DisablePlayerRaceCheckpointEx(playerid);
            CP[playerid] = 0;
            PlayerTextDrawHide(playerid, JobTD);

            playerVariables[playerid][pBusSkill] ++;
            UpdateVar(playerid, "BusSkill", playerVariables[playerid][pBusSkill]);

            GiveJobSalary(playerid);

            JobWorking[playerid] = 0;
            if(JobVehicle[playerid] != 0) { DestroyVehicle(JobVehicle[playerid]); JobVehicle[playerid] = 0; }
            SCM(playerid, -1, "Felicitari ai terminat toate checkpoint-urile.");
        }
    }
        //quest
        case 301: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  744.6379,-556.1034,18.0129, 981.4542,-1814.0586,13.9752, 5.0 );
            CP[playerid]++;    
        }
        case 302: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 981.4542,-1814.0586,13.9752, 5.0);
            CP[playerid]++;
        }
        case 303: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 167.8773,-1768.6434,4.4820, 5.0);
            CP[playerid]++;
        }
        case 304: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  167.8773,-1768.6434,4.4820, 1981.6117,-1682.4552,17.0533, 5.0);
            CP[playerid]++;    
        }
        case 305: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  1981.6117,-1682.4552,17.0533, 2208.2031,-1100.8151,31.5547, 5.0);
            CP[playerid]++;    
        }
    return 1;
}

 

Link to comment
Share on other sites

  • 0
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3707) : error 014: invalid statement; not in switch
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3707) : warning 215: expression has no effect
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3707) : error 001: expected token: ";", but found ":"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3707) : error 029: invalid expression, assumed zero
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3707) : fatal error 107: too many error messages on one line

 

Link to comment
Share on other sites

  • 0
Acum 6 minute, Alexandru Alex a spus:
function OnPlayerEnterRaceCheckpoint(playerid) {
    if(!PlayerToPoint(50, playerid, LastPos[playerid][0], LastPos[playerid][1], LastPos[playerid][2]) && !playerVariables[playerid][pAdmin]) return AdmBot(playerid, "possible checkpoint-teleport #2");

    switch(CP[playerid]) {
        // exam
        case 100: {
            SetPlayerRaceCheckpointEx(playerid, 0,-136.4739, 1190.3674, 19.2818 , -125.5403, 1195.6617, 19.2818, 3.0);
            CP[playerid]++;
        }
        case 101: {
            SetPlayerRaceCheckpointEx(playerid,0, -125.5403, 1195.6617, 19.2818, -118.3623, 1162.6816, 19.2818, 3.0);
            CP[playerid]++;
        }
        case 102: {
            SetPlayerRaceCheckpointEx(playerid,0, -118.3623, 1162.6816, 19.2818, -173.6527, 1151.0865, 19.2818, 3.0);
            CP[playerid]++;
        }
        case 103: {
            SetPlayerRaceCheckpointEx(playerid,0, -173.6527, 1151.0865, 19.2818, -186.8403, 1168.0807, 19.1839, 3.0);
            CP[playerid]++;
        }
        case 104: {
            SetPlayerRaceCheckpointEx(playerid,0, -186.8403, 1168.0807, 19.1839, -184.9106, 1193.8254, 19.1839, 3.0);
            CP[playerid]++;
        }
        case 105: {
            SetPlayerRaceCheckpointEx(playerid,0, -184.9106, 1193.8254, 19.1839, -154.6323, 1196.2001, 19.1839, 3.0);
            CP[playerid]++;
        }
        case 106: {
            SetPlayerRaceCheckpointEx(playerid,0, -154.6323, 1196.2001, 19.1839, -141.2546, 1195.6125, 19.1839, 3.0);
            CP[playerid]++;
        }
        case 107: {
            SetPlayerRaceCheckpointEx(playerid,1, -141.2546, 1195.6125, 19.1839,0.0,0.0,0.0, 3.0);
            CP[playerid]++;
        }
        case 108: {
            if(!IsPlayerInVehicle(playerid, examcar[playerid])) return SCM(playerid, COLOR_LIGHTGREEN3, "You aren't in the examen car.");
            playerVariables[playerid][pCarLic] = 1;
            playerVariables[playerid][pCarLicT] = 100;
            InExamen[playerid] = 0;
            DisablePlayerRaceCheckpointEx(playerid);
            CP[playerid] = 0;
            DisableRemoteVehicleCollisions(playerid, 0);
            DestroyVehicle(examcar[playerid]);
            examcar[playerid] = -1;
            UpdateVar(playerid, "CarLic", 1);
            UpdateVar(playerid, "CarLicT", 100);
            SCM(playerid, COLOR_JOB, "(Info): {FFFFFF}You earned your driving license. This is available for 100 hours.");
        }
        // pilot
        case 159: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1337.7225,-2458.1738,52.1955,1068.9011,-1998.5757,110.3633, 5.0);    
        }
        case 160: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1068.9011,-1998.5757,110.3633,1248.2017,-1089.9178,126.1693, 5.0);
        }
        case 161: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1248.2017,-1089.9178,126.1693,1262.6804,-359.7021,125.8077, 5.0);
        }
        case 162: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1262.6804,-359.7021,125.8077,1354.6277,185.5372,126.3102, 5.0);
        }
        case 163: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1354.6277,185.5372,126.3102,1469.2338,856.8419,73.3954, 5.0);
        }
        case 164: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1469.2338,856.8419,73.3954,1477.5388,1444.2805,11.7513, 5.0);
        }
        case 165: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1477.5388,1444.2805,11.7513,1389.3634,1615.9071,11.7527, 5.0);
        }
        case 166: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1389.3634,1615.9071,11.7527,1381.7755,1238.9287,35.4809, 5.0);
        }
        case 167: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1381.7755,1238.9287,35.4809,1350.0398,829.1030,91.8478, 5.0);
        }
        case 168: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1350.0398,829.1030,91.8478,1251.3011,235.3953,113.0084, 5.0);
        }
        case 169: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1251.3011,235.3953,113.0084,1161.8298,-439.5165,142.3422, 5.0);
        }
        case 170: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1161.8298,-439.5165,142.3422,1033.0001,-918.2105,146.7412, 5.0);
        }
        case 171: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1033.0001,-918.2105,146.7412,817.0712,-1571.2627,105.0100, 5.0);
        }
        case 172: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 817.0712,-1571.2627,105.0100,854.5660,-2107.3997,73.8536, 5.0);
        }
        case 173: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 854.5660,-2107.3997,73.8536,1156.9110,-2464.0076,51.5708, 5.0);
        }
        case 174: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 4, 1156.9110,-2464.0076,51.5708,1691.7114,-2592.8950,14.4685, 5.0);
        }
        case 175: {
            CP[playerid] ++;
            SetPlayerRaceCheckpointEx(playerid, 3,1691.7114,-2592.8950,14.4685,0.0,0.0,0.0, 5.0);
        }
        case 176: {
            if(!IsPlayerInVehicle(playerid, JobVehicle[playerid])) return sendJob(playerid, "Nu esti cu vehiculul de la job.");
            DisablePlayerRaceCheckpointEx(playerid);
            CP[playerid] = 0;
            PlayerTextDrawHide(playerid, JobTD);

            DisableRemoteVehicleCollisions(playerid, false);

            playerVariables[playerid][pPilotSkill] ++;
            UpdateVar(playerid, "PilotSkill", playerVariables[playerid][pPilotSkill]);

            GiveJobSalary(playerid);

            JobWorking[playerid] = 0;
            if(JobVehicle[playerid] != 0) { DestroyVehicle(JobVehicle[playerid]); JobVehicle[playerid] = 0; }
        }
        // bus
        case 179: {
            SetPlayerRaceCheckpointEx(playerid, 0, 1941.3706,-2169.2083,13.4851,1964.6262,-1899.2827,13.4838,4.0);
            CP[playerid]++;
        }
        case 180: { 
            SetPlayerRaceCheckpointEx(playerid, 0, 1964.6262,-1899.2827,13.4838,1921.6910,-1749.1346,13.4828,4.0);
            CP[playerid]++;
        }
        case 181: { 
            SetPlayerRaceCheckpointEx(playerid, 0, 1921.6910,-1749.1346,13.4828,1819.4100,-1814.2385,13.5056,4.0);
            CP[playerid]++;
        }
        case 182: { 
            SetPlayerRaceCheckpointEx(playerid, 0, 1819.4100,-1814.2385,13.5056,1692.2909,-1764.9092,13.4875,4.0);
            CP[playerid]++;
        }
        case 183: { 
            SetPlayerRaceCheckpointEx(playerid, 0, 1692.2909,-1764.9092,13.4875,1395.2542,-1729.2012,13.4901,4.0);
            CP[playerid]++;
        }
        case 184: { 
            SetPlayerRaceCheckpointEx(playerid, 0, 1395.2542,-1729.2012,13.4901,1315.4188,-1631.5197,13.4827,4.0);
            CP[playerid]++;
        }
        case 185: { 
            SetPlayerRaceCheckpointEx(playerid, 0, 1315.4188,-1631.5197,13.4827,1325.5859,-1392.4742,13.4741,4.0);
            CP[playerid]++;
        }
        case 186: {
            SetPlayerRaceCheckpointEx(playerid, 0, 1325.5859,-1392.4742,13.4741,1209.0767,-1324.8274,13.5002,4.0);
            CP[playerid]++;
        }
        case 187: {
            SetPlayerRaceCheckpointEx(playerid, 0, 1209.0767,-1324.8274,13.5002,1082.8730,-1277.8145,13.5019,4.0);
            CP[playerid]++;
        }
        case 188: {
            SetPlayerRaceCheckpointEx(playerid, 0, 1082.8730,-1277.8145,13.5019,966.0933,-1218.3807,16.8770,4.0);
            CP[playerid]++;
        }
        case 189: {
            SetPlayerRaceCheckpointEx(playerid, 0, 966.0933,-1218.3807,16.8770,818.9665,-1137.8669,23.8506,4.0);
            CP[playerid]++;
        }
        case 190: {
            SetPlayerRaceCheckpointEx(playerid, 0, 818.9665,-1137.8669,23.8506,794.1818,-1301.3213,13.4795,4.0);
            CP[playerid]++;
        }
        case 191: {
            SetPlayerRaceCheckpointEx(playerid, 0, 794.1818,-1301.3213,13.4795,678.5087,-1392.8485,13.5081,4.0);
            CP[playerid]++;
        }
        case 192: {
            SetPlayerRaceCheckpointEx(playerid, 0, 678.5087,-1392.8485,13.5081,380.8662,-1492.7212,32.2020,4.0);
            CP[playerid]++;
        }
        case 193: {
            SetPlayerRaceCheckpointEx(playerid, 0, 380.8662,-1492.7212,32.2020,258.5574,-1537.6969,32.3608,4.0);
            CP[playerid]++;
        }
        case 194: {
            SetPlayerRaceCheckpointEx(playerid, 0, 258.5574,-1537.6969,32.3608,484.7990,-1357.7792,17.9893,4.0);
            CP[playerid]++;
        }
        case 195: {
            SetPlayerRaceCheckpointEx(playerid, 0, 484.7990,-1357.7792,17.9893,588.3983,-1232.8560,17.8009,4.0);
            CP[playerid]++;
        }
        case 196: {
            SetPlayerRaceCheckpointEx(playerid, 0, 588.3983,-1232.8560,17.8009,774.5882,-1058.5305,24.5938,4.0);
            CP[playerid]++;
        }
        case 197: {
            SetPlayerRaceCheckpointEx(playerid, 0, 774.5882,-1058.5305,24.5938,1209.5120,-948.5093,42.8005,4.0);
            CP[playerid]++;
        }
        case 198: {
            SetPlayerRaceCheckpointEx(playerid, 0, 1209.5120,-948.5093,42.8005,1566.5400,-997.7548,45.7116,4.0);
            CP[playerid]++;
        }
        case 199: {
            SetPlayerRaceCheckpointEx(playerid, 1, 1958.2472,-1999.3572,13.4949,0.0,0.0,0.0,4.0);
            CP[playerid]++;
        }
        case 200: {
            if(!IsPlayerInVehicle(playerid, JobVehicle[playerid])) return sendJob(playerid, "Nu esti cu vehiculul de la job.");
            DisablePlayerRaceCheckpointEx(playerid);
            CP[playerid] = 0;
            PlayerTextDrawHide(playerid, JobTD);

            playerVariables[playerid][pBusSkill] ++;
            UpdateVar(playerid, "BusSkill", playerVariables[playerid][pBusSkill]);

            GiveJobSalary(playerid);

            JobWorking[playerid] = 0;
            if(JobVehicle[playerid] != 0) { DestroyVehicle(JobVehicle[playerid]); JobVehicle[playerid] = 0; }
            SCM(playerid, -1, "Felicitari ai terminat toate checkpoint-urile.");
        }
    }
        //quest
        case 301: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  744.6379,-556.1034,18.0129, 981.4542,-1814.0586,13.9752, 5.0 );
            CP[playerid]++;    
        }
        case 302: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 981.4542,-1814.0586,13.9752, 5.0);
            CP[playerid]++;
        }
        case 303: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 167.8773,-1768.6434,4.4820, 5.0);
            CP[playerid]++;
        }
        case 304: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  167.8773,-1768.6434,4.4820, 1981.6117,-1682.4552,17.0533, 5.0);
            CP[playerid]++;    
        }
        case 305: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  1981.6117,-1682.4552,17.0533, 2208.2031,-1100.8151,31.5547, 5.0);
            CP[playerid]++;    
        }
    return 1;
}

 

  case 200: {
            if(!IsPlayerInVehicle(playerid, JobVehicle[playerid])) return sendJob(playerid, "Nu esti cu vehiculul de la job.");
            DisablePlayerRaceCheckpointEx(playerid);
            CP[playerid] = 0;
            PlayerTextDrawHide(playerid, JobTD);

            playerVariables[playerid][pBusSkill] ++;
            UpdateVar(playerid, "BusSkill", playerVariables[playerid][pBusSkill]);

            GiveJobSalary(playerid);

            JobWorking[playerid] = 0;
            if(JobVehicle[playerid] != 0) { DestroyVehicle(JobVehicle[playerid]); JobVehicle[playerid] = 0; }
            SCM(playerid, -1, "Felicitari ai terminat toate checkpoint-urile.");
        }
        //quest    
        case 301: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  744.6379,-556.1034,18.0129, 981.4542,-1814.0586,13.9752, 5.0 );
            CP[playerid]++;    
        }
        case 302: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 981.4542,-1814.0586,13.9752, 5.0);
            CP[playerid]++;
        }
        case 303: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 167.8773,-1768.6434,4.4820, 5.0);
            CP[playerid]++;
        }
        case 304: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  167.8773,-1768.6434,4.4820, 1981.6117,-1682.4552,17.0533, 5.0);
            CP[playerid]++;    
        }
        case 305: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  1981.6117,-1682.4552,17.0533, 2208.2031,-1100.8151,31.5547, 5.0);
            CP[playerid]++;    
        }
    } 
    return 1;
}

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

  • 0
2 minutes ago, KB.HERO said:
  case 200: {
            if(!IsPlayerInVehicle(playerid, JobVehicle[playerid])) return sendJob(playerid, "Nu esti cu vehiculul de la job.");
            DisablePlayerRaceCheckpointEx(playerid);
            CP[playerid] = 0;
            PlayerTextDrawHide(playerid, JobTD);

            playerVariables[playerid][pBusSkill] ++;
            UpdateVar(playerid, "BusSkill", playerVariables[playerid][pBusSkill]);

            GiveJobSalary(playerid);

            JobWorking[playerid] = 0;
            if(JobVehicle[playerid] != 0) { DestroyVehicle(JobVehicle[playerid]); JobVehicle[playerid] = 0; }
            SCM(playerid, -1, "Felicitari ai terminat toate checkpoint-urile.");
        }
        //quest    
        case 301: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  744.6379,-556.1034,18.0129, 981.4542,-1814.0586,13.9752, 5.0 );
            CP[playerid]++;    
        }
        case 302: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 981.4542,-1814.0586,13.9752, 5.0);
            CP[playerid]++;
        }
        case 303: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  981.4542,-1814.0586,13.9752, 167.8773,-1768.6434,4.4820, 5.0);
            CP[playerid]++;
        }
        case 304: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  167.8773,-1768.6434,4.4820, 1981.6117,-1682.4552,17.0533, 5.0);
            CP[playerid]++;    
        }
        case 305: {
            SetPlayerRaceCheckpointEx(plyerid, 0,  1981.6117,-1682.4552,17.0533, 2208.2031,-1100.8151,31.5547, 5.0);
            CP[playerid]++;    
        }
    } 
    return 1;
}

C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3707) : error 017: undefined symbol "plyerid"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3711) : error 017: undefined symbol "plyerid"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3715) : error 017: undefined symbol "plyerid"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3719) : error 017: undefined symbol "plyerid"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3723) : error 017: undefined symbol "plyerid"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3939) : error 017: undefined symbol "SendQuest"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(8348) : warning 202: number of arguments does not match definition
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(8348) : warning 202: number of arguments does not match definition
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(8348) : warning 202: number of arguments does not match definition
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(8417) : error 017: undefined symbol "GetPlayerCheckpointPos"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(8422) : error 001: expected token: ";", but found "-identifier-"

Link to comment
Share on other sites

  • 0
Acum 1 minut, Alexandru Alex a spus:

Am incercat imi da mai multe erori

ca ai scapta  }

Uitate mai sus cum ti am dat incerca  

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

  • 0
Acum 1 minut, Alexandru Alex a spus:

C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3707) : error 017: undefined symbol "plyerid"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3711) : error 017: undefined symbol "plyerid"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3715) : error 017: undefined symbol "plyerid"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3719) : error 017: undefined symbol "plyerid"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3723) : error 017: undefined symbol "plyerid"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(3939) : error 017: undefined symbol "SendQuest"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(8348) : warning 202: number of arguments does not match definition
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(8348) : warning 202: number of arguments does not match definition
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(8348) : warning 202: number of arguments does not match definition
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(8417) : error 017: undefined symbol "GetPlayerCheckpointPos"
C:\Users\flowg\Desktop\GM\gamemodes\GM.pwn(8422) : error 001: expected token: ";", but found "-identifier-"

unde ai "plyerid" pune "playerid" defineste sendquest 

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

  • 0
Acum 2 minute, Alexandru Alex a spus:

am facut asta, acum ma ajuta VLM  pe dis

Daca ai inlocuit plyerid cu playerid nu aveai erroare "undefined "plyerid"

Edited by KB.HERO

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

  • 0
Acum 1 minut, Alexandru Alex a spus:

Mai am si alte erori pe langa

Dupa cum vad ai vrut sa bagi quest nu ai copit bine de asta iti da errori

Edited by KB.HERO

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.