SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 11/02/2019, 08:31 PM   #1
Ulises212
Little Clucker
 
Join Date: Jan 2019
Posts: 5
Reputation: 0
Default I need Help!

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

Code:
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 Code:
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;
}
Ulises212 is offline   Reply With Quote
Old 11/02/2019, 08:37 PM   #2
TokicMajstor
Big Clucker
 
TokicMajstor's Avatar
 
Join Date: Oct 2018
Location: Bosnia And Herzegovina
Posts: 115
Reputation: 1
Default Re: I need Help!

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


If Iam better than you = you're noob
If you're better than me = you're cheater
If everyone is better than me = I have lags
#Logic
TokicMajstor is offline   Reply With Quote
Old 11/02/2019, 08:40 PM   #3
Ulises212
Little Clucker
 
Join Date: Jan 2019
Posts: 5
Reputation: 0
Default Re: I need Help!

error 054: unmatched closing brace ("}")
Ulises212 is offline   Reply With Quote
Old 11/02/2019, 08:42 PM   #4
TokicMajstor
Big Clucker
 
TokicMajstor's Avatar
 
Join Date: Oct 2018
Location: Bosnia And Herzegovina
Posts: 115
Reputation: 1
Default Re: I need Help!

If you just add one then remove it sry my mistake
__________________


If Iam better than you = you're noob
If you're better than me = you're cheater
If everyone is better than me = I have lags
#Logic
TokicMajstor is offline   Reply With Quote
Old 11/02/2019, 08:45 PM   #5
Ulises212
Little Clucker
 
Join Date: Jan 2019
Posts: 5
Reputation: 0
Default Re: I need Help!

Wow, Thank for you help bro!
Ulises212 is offline   Reply With Quote
Old 11/02/2019, 08:57 PM   #6
Ulises212
Little Clucker
 
Join Date: Jan 2019
Posts: 5
Reputation: 0
Default Re: I need Help!

Unknown Command, What Happen ._.?
Ulises212 is offline   Reply With Quote
Old 11/02/2019, 10:01 PM   #7
TokicMajstor
Big Clucker
 
TokicMajstor's Avatar
 
Join Date: Oct 2018
Location: Bosnia And Herzegovina
Posts: 115
Reputation: 1
Default Re: I need Help!

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


If Iam better than you = you're noob
If you're better than me = you're cheater
If everyone is better than me = I have lags
#Logic
TokicMajstor is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 10:38 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.