Jump to content
  • 0

Error 040


Pinki95

Question

Sall ma poate ajuta cum s arepar erorile urmatoare:

C:\DOCUME~1\Admin\Desktop\PPC_TR~1.PWN(800) : error 040: duplicate "case" label (value 8)

C:\DOCUME~1\Admin\Desktop\PPC_TR~1.PWN(807) : error 040: duplicate "case" label (value 10)

C:\DOCUME~1\Admin\Desktop\PPC_TR~1.PWN(814) : error 040: duplicate "case" label (value 11)

C:\DOCUME~1\Admin\Desktop\PPC_TR~1.PWN(821) : error 040: duplicate "case" label (value 14)

C:\DOCUME~1\Admin\Desktop\PPC_TR~1.PWN(828) : error 040: duplicate "case" label (value 17)

560x95_F01616_1625F2_030303_000000.png
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Aratami linia unde folosesti case.

(case: bla bla )

Pentru ca ori ai scris de 2 ori aceeasi variabila la 2 case-uri diferite, ori ai 2 variabile diferite cu aceeasi valoare.

Link to comment
Share on other sites

// Display a short message to inform the player about the class he's about to choose

switch (classid)

{

case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17: // Classes that will be truckdrivers

{

// Display the name of the class

            GameTextForPlayer(playerid, TXT_ClassTrucker, 3000, 4);

// Store the class for the player (truckdriver)

APlayerData[playerid][PlayerClass] = ClassTruckDriver;

}

case 8, 9: // Classes that will be bus-drivers

{

// Display the name of the class

            GameTextForPlayer(playerid, TXT_ClassBusDriver, 3000, 4);

// Store the class for the player (busdriver)

APlayerData[playerid][PlayerClass] = ClassBusDriver;

}

case 10: // Classes that will be Pilot

{

// Display the name of the class

            GameTextForPlayer(playerid, TXT_ClassPilot, 3000, 4);

// Store the class for the player (pilot)

APlayerData[playerid][PlayerClass] = ClassPilot;

}

case 11, 12, 13: // Classes that will be police

{

// Display the name of the class

            GameTextForPlayer(playerid, TXT_ClassPolice, 3000, 4);

// Store the class for the player (police)

APlayerData[playerid][PlayerClass] = ClassPolice;

}

case 14, 15, 16: // Classes that will be mafia

{

// Display the name of the class

GameTextForPlayer(playerid, TXT_ClassMafia, 3000, 4);

// Store the class for the player (mafia)

APlayerData[playerid][PlayerClass] = ClassMafia;

}

case 17, 18: // Classes that will be courier

{

// Display the name of the class

GameTextForPlayer(playerid, TXT_ClassCourier, 3000, 4);

// Store the class for the player (courier)

APlayerData[playerid][PlayerClass] = ClassCourier;

}

case 19: // Classes that will be assistance

{

// Display the name of the class

GameTextForPlayer(playerid, TXT_ClassAssistance, 3000, 4);

// Store the class for the player (assistance)

APlayerData[playerid][PlayerClass] = ClassAssistance;

}

case 20, 21, 22: // Classes that will be roadworker

{

// Display the name of the class

GameTextForPlayer(playerid, TXT_ClassRoadWorker, 3000, 4);

// Store the class for the player (roadworker)

APlayerData[playerid][PlayerClass] = ClassRoadWorker;

}

}

return 1;

}

Daca vreau sa modific duplicaturile imi sterge obiectele de pe harta si imi da masini dinale naspa nu imi mai da tiruri si dinalea si inca ceva  in fisierul  .pwn  nu exista createobject sau addstaticvehicle

560x95_F01616_1625F2_030303_000000.png
Link to comment
Share on other sites

Codul care il ai tu aici nu are nicio legatura cu masinile si obiectele din joc.

Aici sunt doar skinurile.

Modificale sa nu mai ai eroare si uitate prin script sa gasesti cea lalta problema.

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.