case 1://GangWar Világban {SetPlayerFacingAngle(playerid,60);SetPlayerInterior(playerid,3);SetPlayerPos(playerid,-2654.4,1424.2,912.4);SetPlayerFacingAngle(playerid, 90.0);SetPlayerCameraPos(playerid,-2654.4-1.5,1424.2,912.4+0.7); SetPlayerCameraLookAt(playerid,-2654.4,1424.2,912.4+0.7);new string[128];SetPlayerTeamFromClass(playerid, classid);switch (classid){case 0,1,2:{ format(string, sizeof(string), \"~y~> ~g~Grove Street\"); GameTextForPlayer(playerid,string,3500,6);}case 3,4,5:{ format(string, sizeof(string), \"~y~> ~b~Ballas Street\"); GameTextForPlayer(playerid,string,3500,6); }case 6,7,8:{ format(string, sizeof(string) ,\"~y~> ~g~Aztecas Street!\"); GameTextForPlayer(playerid,string,3500,6); } case 9,10,11: { format(string, sizeof(string), \"~b~> ~y~Vagos Street!\"); GameTextForPlayer(playerid,string,3500,6); } case 12,13,14: { format(string, sizeof(string), \"~b~> ~p~Da Nang Boys Gang!\"); GameTextForPlayer(playerid,string,3500,6); }case 15,16,17:{ format(string, sizeof(string), \"~b~> ~b~ San Fierro Rifa!\"); GameTextForPlayer(playerid,string,3500,6); } case 18,19,20: { format(string, sizeof(string), \"~b~> ~b~ Triads!\"); GameTextForPlayer(playerid,string,3500,6); } case 21,22,23: { format(string, sizeof(string), \"~b~ ~b~ Bikers!\"); GameTextForPlayer(playerid,string,3500,6); } case 24,25,26: { format(string, sizeof(string), \"~b~> ~r~ The Russian Mafia!\"); GameTextForPlayer(playerid,string,3500,6);}case 27,28,29,30:{ format(string, sizeof(string), \"~b~> ~g~ The Italian Mafia!\"); GameTextForPlayer(playerid,string,3500,6); } case 31,32,33,34,35,36:{ format(string, sizeof(string), \"~b~> ~p~ Girls Street \"); GameTextForPlayer(playerid,string,3500,6); } case 37,38,39,40: { format(string, sizeof(string), \"~b~> ~g~ CIA Agent!\"); GameTextForPlayer(playerid,string,3500,6); } } case 2:{} default: { }}
C:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(828) : error 014: invalid statement; not in switchC:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(828) : warning 215: expression has no effectC:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(828) : error 001: expected token: \";\", but found \":\"C:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(828) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(828) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
#include <a_samp>public OnPlayerRequestClass(playerid, classid){ newstring[32];// Amúgy itt nemkell a format, rögtön felmutathatod neki az üzenetet switch(classid) { case 1: //GangWar Világban { SetPlayerFacingAngle(playerid,60); SetPlayerInterior(playerid,3); SetPlayerPos(playerid,-2654.4,1424.2,912.4); SetPlayerFacingAngle(playerid, 90.0); SetPlayerCameraPos(playerid,-2654.4-1.5,1424.2,912.4+0.7); SetPlayerCameraLookAt(playerid,-2654.4,1424.2,912.4+0.7); SetPlayerTeamFromClass(playerid, classid);}case 0,2:{ format(string, sizeof(string), \"~y~> ~g~Grove Street\"); GameTextForPlayer(playerid,string,3500,6);}case 3,4,5:{ format(string, sizeof(string), \"~y~> ~b~Ballas Street\"); GameTextForPlayer(playerid,string,3500,6);}case 6,7,8:{ format(string, sizeof(string) ,\"~y~> ~g~Aztecas Street!\"); GameTextForPlayer(playerid,string,3500,6);}case 9,10,11:{ format(string, sizeof(string), \"~b~> ~y~Vagos Street!\"); GameTextForPlayer(playerid,string,3500,6);}case 12,13,14:{ format(string, sizeof(string), \"~b~> ~p~Da Nang Boys Gang!\"); GameTextForPlayer(playerid,string,3500,6);}case 15,16,17:{ format(string, sizeof(string), \"~b~> ~b~ San Fierro Rifa!\"); GameTextForPlayer(playerid,string,3500,6);}case 18,19,20:{ format(string, sizeof(string), \"~b~> ~b~ Triads!\"); GameTextForPlayer(playerid,string,3500,6);}case 21,22,23:{ format(string, sizeof(string), \"~b~ ~b~ Bikers!\"); GameTextForPlayer(playerid,string,3500,6);}case 24,25,26:{ format(string, sizeof(string), \"~b~> ~r~ The Russian Mafia!\"); GameTextForPlayer(playerid,string,3500,6);}case 27,28,29,30:{ format(string, sizeof(string), \"~b~> ~g~ The Italian Mafia!\"); GameTextForPlayer(playerid,string,3500,6);}case 31,32,33,34,35,36:{ format(string, sizeof(string), \"~b~> ~p~ Girls Street \"); GameTextForPlayer(playerid,string,3500,6);}case 37,38,39,40:{ format(string, sizeof(string), \"~b~> ~g~ CIA Agent!\"); GameTextForPlayer(playerid, string,3500,6);}/* default: // Ez azt jelenti, ha egyiksem a case közül { }*/}return 1;}
C:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(688) : error 040: duplicate \"case\" label (value 0)C:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(690) : error 017: undefined symbol \"string\"C:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(690) : error 017: undefined symbol \"string\"C:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(690) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(690) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors.
case 0,2://<<<ez { format(string, sizeof(string), \"~y~> ~g~Grove Street\");//<<<meg ez
kurta, amit küldtél msn-en...: C:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(688) : error 040: duplicate \"case\" label (value 0)C:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(690) : error 017: undefined symbol \"string\"C:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(690) : error 017: undefined symbol \"string\"C:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(690) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\VWFreeroam.pwn(690) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors. kipróbáltam egy filterscriptben, de ott ugyan ez.ez a két sor hibás: case 0,2://<<<ez { format(string, sizeof(string), \"~y~> ~g~Grove Street\");//<<<meg ez
public OnPlayerRequestClass(playerid, classid){ switch(GetPlayerVirtualWorld(playerid)){ case 0: { } case 1: { SetupPlayerForClassSelection(playerid);SetPlayerTeamFromClass(playerid,classid);switch(classid) {case 0..2: {GameTextForPlayer(playerid,\"~g~GROVE STREET\",500,5);}case 3..5: {GameTextForPlayer(playerid,\"~p~BALLAS\",500,5);}case 6..8: {GameTextForPlayer(playerid,\"~y~LOS SANTOS VAGOS\",500,5);}case 9..11: {GameTextForPlayer(playerid,\"~b~VARRIO LOS AZTECAS\",500,5);}case 12..14: {GameTextForPlayer(playerid,\"~b~LOS SANTOS RENDÕRSÉG\",500,5);}case 15..17: {GameTextForPlayer(playerid,\"~b~LOS SANTOSI MAFFIA\",500,5);}case 18..20: {GameTextForPlayer(playerid,\"~b~MOTOROSOK\",500,5);} }}return 1;}
C:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\gangwar.pwn(890) : error 002: only a single statement (or expression) can follow each \"case\"C:\\Documents and Settings\\Pali\\Asztal\\0.3c ServeR\\gamemodes\\gangwar.pwn(890) : warning 215: expression has no effectPawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
public OnPlayerRequestClass(playerid, classid){switch(GetPlayerVirtualWorld(playerid)){ case 0:{ } case 1: { SetupPlayerForClassSelection(playerid); SetPlayerTeamFromClass(playerid,classid); switch(classid){ case 0..2: { GameTextForPlayer(playerid,\"~g~GROVE STREET\",500,5); } case 3..5: { GameTextForPlayer(playerid,\"~p~BALLAS\",500,5); } case 6..8: { GameTextForPlayer(playerid,\"~y~LOS SANTOS VAGOS\",500,5); } case 9..11: { GameTextForPlayer(playerid,\"~b~VARRIO LOS AZTECAS\",500,5); } case 12..14: { GameTextForPlayer(playerid,\"~b~LOS SANTOS RENDÕRSÉG\",500,5); } case 15..17: { GameTextForPlayer(playerid,\"~b~LOS SANTOSI MAFFIA\",500,5); } case 18..20: { GameTextForPlayer(playerid,\"~b~MOTOROSOK\",500,5); } }}}return 1;}