11.02.2019, 19:31
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
This is my code
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"
Код 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; }