SA-MP Forums Archive
I need Help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I need Help! (/showthread.php?tid=663809)



I need Help! - Ulises212 - 11.02.2019

Well, I speak Spanish but I need help here, in the Spanish forum they no longer answer any questions, and I want someone to help me here, I did a Filterscript of the mafia vs triad, but at the time of compiling I get this error, does anyone know how to help me?

This is the error

Код:
C:\Users\PC\Desktop\samp037_svr_R2-1-1_win32\filterscripts\MafiaVsTriada.pwn(41) : error 001: expected token: ";", but found "return"
This is my code

Код HTML:
CMD:mvt(playerid,params[])
{
ShowPlayerDialog(playerid, 59, DIALOG_STYLE_LIST, "Mafia VS Triada", "{0099FF}Equipo Mafia\n{99CC99}Triada", "Seleccionar", "Cancelar")
(41)return 1; // This is the line
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
 {
switch(dialogid)
{
case 1:
            {
            switch(listitem)
            {
                case 59:// Triada
                {
                   SendClientMessage(playerid, -1, "{99FFFF}Perteneces al equipo Triada, asesina a la mafia!");
                   SetPlayerVirtualWorld(playerid, 87);
				   SetPlayerPos(playerid, -510.4600,-173.2403,76.3447);
                   SetPlayerSkin(playerid, 117);
                   GivePlayerWeapon(playerid,24,9999);
                   SetPlayerColor(playerid, COLOR_TRIADA);
				  }
                  case 1: // Mafia
                  {
                    SendClientMessage(playerid, -1, "{99FFFF}Perteneces al equipo Mafia, asesina a la triada!");
                    SetPlayerVirtualWorld(playerid, 87);
                    SetPlayerPos(playerid, -508.8303,-67.1614,61.7929);
                    SetPlayerSkin(playerid, 111);
                    SetPlayerColor (playerid, COLOR_MAFIA);
                    GivePlayerWeapon(playerid,24,9999);
				           }
            }
            }
    }
    }
    return 1;
}



Re: I need Help! - TokicMajstor - 11.02.2019

At the first ShowPlayerDialog add ' ; ' at the end of line


Re: I need Help! - Ulises212 - 11.02.2019

error 054: unmatched closing brace ("}")


Re: I need Help! - TokicMajstor - 11.02.2019

If you just add one then remove it sry my mistake


Re: I need Help! - Ulises212 - 11.02.2019

Wow, Thank for you help bro!


Re: I need Help! - Ulises212 - 11.02.2019

Unknown Command, What Happen ._.?


Re: I need Help! - TokicMajstor - 11.02.2019

Have you insert name of your FS in the server cfg