http://sampforum.hu/index.php?topic=31134.0
Streamer_Update(playerid);
BlackJack\" post=\"519637\" timestamp=\"1414706982\"]Nem jön össze [/quote]Akkor inkább hagyjad a szkriptelést ha már leírás és példa szerint sem tudod megcsinálni, de komolyan. :facepalm: public OnPlayerRequestClass( playerid, classid ) return Streamer_Update( playerid ); Ennyi az egész kód. Nem az a probléma, hogy nem jön össze.. csak lusta vagy megírni, inkább más megírja neked. :mistrust:
public OnPlayerRequestClass( playerid, classid ) return Streamer_Update( playerid );
C:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(3124) : warning 213: tag mismatchC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(15506) : warning 217: loose indentationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19629) : error 055: start of function body without function headerC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19635) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19637) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19640) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19640) : error 021: symbol already defined: \"FIXCHARS_GameTextForPlayer\"C:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19642) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19645) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19648) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19648) : error 021: symbol already defined: \"FIXCHARS_GameTextForPlayer\"C:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19650) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19653) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19656) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19656) : error 021: symbol already defined: \"FIXCHARS_GameTextForPlayer\"C:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19658) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19661) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19664) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19664) : error 021: symbol already defined: \"FIXCHARS_GameTextForPlayer\"C:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19666) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19669) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19672) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19672) : error 021: symbol already defined: \"FIXCHARS_GameTextForPlayer\"C:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19674) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19677) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19680) : error 010: invalid function or declarationC:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19680) : error 021: symbol already defined: \"FIXCHARS_GameTextForPlayer\"C:\\Users\\Krisztian-(Delia)\\Desktop\\Retro Trucker\'s\\gamemodes\\RTS.pwn(19682) : error 010: invalid function or declarationCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors.
public OnPlayerRequestClass(playerid, classid)return Streamer_Update(playerid);{ SetPlayerPos(playerid, 311.3297,1821.1222,404.1098); SetPlayerCameraPos(playerid, 318.0656,1821.1660,404.0547); SetPlayerFacingAngle(playerid, 266.2768); SetPlayerCameraLookAt(playerid, 318.0656,1821.1660,404.0547);// Display a short message to inform the player about the class he\'s about to chooseswitch (classid){case 0, 1, 2, 3, 4, 5, 6, 7: // 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; ApplyAnimation(playerid, \"RAPPING\", \"Laugh_01\", 4.0, 0, 0, 0, 0, 0);}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; ApplyAnimation(playerid, \"SMOKING\", \"F_smklean_loop\", 4.0, 1, 0, 0, 0, 0);}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; SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);}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; SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);}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; SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);}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; SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);}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; ApplyAnimation(playerid,\"PED\",\"fucku\",4.0,0,0,0,0,0);}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; ApplyAnimation(playerid, \"ped\", \"cower\", 3.0, 1, 0, 0, 0, 0);}}return 1;}
public OnPlayerRequestClass(playerid, classid){ SetPlayerPos(playerid, 311.3297,1821.1222,404.1098); SetPlayerCameraPos(playerid, 318.0656,1821.1660,404.0547); SetPlayerFacingAngle(playerid, 266.2768); SetPlayerCameraLookAt(playerid, 318.0656,1821.1660,404.0547); // 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: // 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; ApplyAnimation(playerid, \"RAPPING\", \"Laugh_01\", 4.0, 0, 0, 0, 0, 0); } 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; ApplyAnimation(playerid, \"SMOKING\", \"F_smklean_loop\", 4.0, 1, 0, 0, 0, 0); } 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; SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1); } 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; SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2); } 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; SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3); } 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; SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4); } 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; ApplyAnimation(playerid,\"PED\",\"fucku\",4.0,0,0,0,0,0); } 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; ApplyAnimation(playerid, \"ped\", \"cower\", 3.0, 1, 0, 0, 0, 0); } } Streamer_Update(playerid); return 1;}