public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new string[256]; if(dialogid == 123) // Menu { if(response) { if(listitem == 0) // TPD 1 { new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "O Player %s Foi Para TPD 1( /tpd )", pname); SendClientMessageToAll(0xAFAFAFAA, string); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2423.2783,-609.5183,132.5589); SetPlayerFacingAngle(playerid,182.2285); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerDrunkLevel (playerid, 0); GameTextForPlayer(playerid,"~W~Bem Vindo A ~R~TPD 1",3000,5); ClearAnimations(playerid); new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-2423.2783,-609.5183,132.5589); } if(listitem == 1) // TPD 2 { new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "O Player %s Foi Para TPD 2( /tpd )", pname); SendClientMessageToAll(0xAFAFAFAA, string); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-312.2921,1540.4182,75.2216); SetPlayerFacingAngle(playerid,182.2285); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerDrunkLevel (playerid, 0); GameTextForPlayer(playerid,"~W~Bem Vindo A ~R~TPD 2",3000,5); ClearAnimations(playerid); new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,-312.2921,1540.4182,75.2216); } if(listitem == 2) // TPD 3 { new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "O Player %s Foi Para TPD 3( /tpd )", pname); SendClientMessageToAll(0xAFAFAFAA, string); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1257.6019,-2027.8704,59.1490); SetPlayerFacingAngle(playerid,182.2285); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerDrunkLevel (playerid, 0); GameTextForPlayer(playerid,"~W~Bem Vindo A ~R~TPD 3",3000,5); ClearAnimations(playerid); new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,1257.6019,-2027.8704,59.1490); } if(listitem == 3) // TPD 4 { new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "O Player %s Foi Para TPD 4( /tpd )", pname); SendClientMessageToAll(0xAFAFAFAA, string); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2328.7517,1399.8760,42.4814); SetPlayerFacingAngle(playerid,182.2285); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerDrunkLevel (playerid, 0); GameTextForPlayer(playerid,"~W~Bem Vindo A ~R~TPD 4",3000,5); ClearAnimations(playerid); new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,2328.7517,1399.8760,42.4814); } if(listitem == 4) // TPD 5 { new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "O Player %s Foi Para TPD 5( /tpd )", pname); SendClientMessageToAll(0xAFAFAFAA, string); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2259.6487,1963.1309,31.4394); SetPlayerFacingAngle(playerid,182.2285); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerDrunkLevel (playerid, 0); GameTextForPlayer(playerid,"~W~Bem Vindo A ~R~TPD 5",3000,5); ClearAnimations(playerid); new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,2259.6487,1963.1309,31.4394); } if(listitem == 5) // TPD 6 { new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "O Player %s Foi Para TPD 6( /tpd )", pname); SendClientMessageToAll(0xAFAFAFAA, string); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2298.8525,-2361.8760,13.4202); SetPlayerFacingAngle(playerid,182.2285); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerDrunkLevel (playerid, 0); GameTextForPlayer(playerid,"~W~Bem Vindo A ~R~TPD 6",3000,5); ClearAnimations(playerid); new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,2298.8525,-2361.8760,13.4202); } if(listitem == 6) // Drift7 { new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "O Player %s Foi Para TPD 7( /tpd )", pname); SendClientMessageToAll(0xAFAFAFAA, string); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-438.8695,1686.0092,198.2057); SetPlayerFacingAngle(playerid,182.2285); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerDrunkLevel (playerid, 0); GameTextForPlayer(playerid,"~W~Bem Vindo A ~R~TPD 7",3000,5); ClearAnimations(playerid); } return 1; }
D:\Duany\Jogos\Samp R8\gamemodes\TPD.pwn(1156) : error 030: compound statement not closed at the end of file (started at line 1015) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
RESOLVIDO ! Mais Tem Mais Um Problema ..
Tipo Quando O Player Teleporta O Carro Nгo Vai Junto ! Por Que ? Como Colocar Pro Carro Ir Junto ? Obrigado ! |
if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,1637.9490,-1147.6228,23.5649);