I need Help!
#1

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;
}
Reply
#2

At the first ShowPlayerDialog add ' ; ' at the end of line
Reply
#3

error 054: unmatched closing brace ("}")
Reply
#4

If you just add one then remove it sry my mistake
Reply
#5

Wow, Thank for you help bro!
Reply
#6

Unknown Command, What Happen ._.?
Reply
#7

Have you insert name of your FS in the server cfg
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)