Pinki95 Posted February 17, 2013 Report Share Posted February 17, 2013 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) Link to comment Share on other sites More sharing options...
Guest Rock Posted February 17, 2013 Report Share Posted February 17, 2013 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 More sharing options...
Pinki95 Posted February 17, 2013 Author Report Share Posted February 17, 2013 // 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 Link to comment Share on other sites More sharing options...
Guest Rock Posted February 17, 2013 Report Share Posted February 17, 2013 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 More sharing options...
Pinki95 Posted February 17, 2013 Author Report Share Posted February 17, 2013 Nu stii ceva gamemode de trucking cu masini si obiecte adaugate? Link to comment Share on other sites More sharing options...
Guest Rock Posted February 17, 2013 Report Share Posted February 17, 2013 Nu se cer scripturi aici. Link to comment Share on other sites More sharing options...
Question
Pinki95
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)
Link to comment
Share on other sites
5 answers to this question
Recommended Posts