[AJUDA] 1 Error ..
#1

E Ae Galera Tipo To Com Um Probleminha Aqui ... Tipo Olhem A Public :
Код:
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;
}
So Que Aparece Um Erro :
Код:
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.
Ajuda Ae Valeu !

A Linha 1015 Comeзa No "if(response)"
E Termina O Gm Ali No Final Da Public !
Reply
#2

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 !
Reply
#3

Quote:
Originally Posted by duany123
Посмотреть сообщение
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 !
coloca isso no comando
Код:
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,1637.9490,-1147.6228,23.5649);
Reply
#4

Affs Ja Coloquei Isso Mais N Foi Vey ... Tipo
O Carro Vai Mais Buga Ele Vai Em Uma Pista So Depois Se Tenta Ir Em Outra Ele N Vai *-*
Manda Seu Msn Ae Break ?
Reply
#5

vc tem que por em todos os comando neh
Reply
#6

Afss Ta Em Todos Os Comandos ¬¬ Ta Dificil ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)