SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 06/08/2014, 05:29 PM   #1
DeoXel
Little Clucker
 
Join Date: Aug 2014
Posts: 10
Reputation: 0
Question Error code

Please help me..
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

if(dialogid == DIALOG_WARPY) <<<=== This is line 214.
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_WARPY_PRUKAZY, DIALOG_STYLE_MSGBOX, "{001eff}Průkazy", "{fc7a00}/Autoskola /Leteckaskola /Lodniskola /Zbrojnipas /Pas", "Zavřít", "");
case 1: ShowPlayerDialog(playerid, DIALOG_WARPY_STANDARTNI, DIALOG_STYLE_MSGBOX, "{00fc32}Standartní warpy", "{fc7a00}/lv /ls /sf", "Zavřít", "");
case 2: ShowPlayerDialog(playerid, DIALOG_WARPY_VIP, DIALOG_STYLE_MSGBOX, "{fc0000}Zaměstnání ( * POUZE V.I.P * )", "{fc7a00}/Policielv /Taxi /Swat /Fbi /Dozorce\n/Vojak /Terorista /Ruskamafie /Yakuza /SBS\n /Ballas /Aztecas /Vagos /Grove /Mechanik\n/Tuningar /Pravnik /Zdravotnik /Novinar /Postitutka\n/Dealer /Vrah /Rambo /Pyrotechnik /Unosce\n/Zlodej /Velitelpolicie", "Zavřít", "");
}
return 1;
}
}

if(dialogid == DIALOG_VIP_PACK)
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_VIP_PACK_ZBRANE, DIALOG_STYLE_LIST, "{001eff}Zbraně", "Ruce\nZbraně na blízko\nPistole\nBrokovnice\nSamopaly\nÚtočné pušky\nTěžké zbraně\nRaketomety\nVýbušné\nOstatní", "Vybrat", "Zavřít");
case 1: ShowPlayerDialog(playerid, DIALOG_VIP_PACK_AUTA, DIALOG_STYLE_LIST, "{00fc32}Auta", "Sportovní vozidla\nTerenní vozidla\nLowridery\nAuta na tuning\nDodávky\nPrůmyslová vozidla\nDvou-dvéřová vozidla\nČtyř-dvéřová vozidla\nVeřejné služby\nNovinky\nVládní vozidla\nLetadla\nLodě\nMotocykly\nRC Modely\nKamiony", "Vybrat", "Zavřít");
}
return 1;
}
}

return 0;
}
ERROR:
C:\Users\Jan\Desktop\TEST.pwn(784) : error 030: compound statement not closed at the end of file (started at line 214)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
DeoXel is offline   Reply With Quote
Old 06/08/2014, 05:37 PM   #2
iOxide
Huge Clucker
 
Join Date: Nov 2013
Location: Inside PAWNO
Posts: 386
Reputation: 16
Default Re: Error code

pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch (dialogid)
    {
        case DIALOG_WARPY:
        {
            if (!response) return 1;
           
            switch(listitem)
            {
                case 0: ShowPlayerDialog(playerid, DIALOG_WARPY_PRUKAZY, DIALOG_STYLE_MSGBOX, "{001eff}Průkazy", "{fc7a00}/Autoskola /Leteckaskola /Lodniskola /Zbrojnipas /Pas", "Zavřít", "");
                case 1: ShowPlayerDialog(playerid, DIALOG_WARPY_STANDARTNI, DIALOG_STYLE_MSGBOX, "{00fc32}Standartní warpy", "{fc7a00}/lv /ls /sf", "Zavřít", "");
                case 2: ShowPlayerDialog(playerid, DIALOG_WARPY_VIP, DIALOG_STYLE_MSGBOX, "{fc0000}Zaměstnání ( * POUZE V.I.P * )", "{fc7a00}/Policielv /Taxi /Swat /Fbi /Dozorce\n/Vojak /Terorista /Ruskamafie /Yakuza /SBS\n /Ballas /Aztecas /Vagos /Grove /Mechanik\n/Tuningar /Pravnik /Zdravotnik /Novinar /Postitutka\n/Dealer /Vrah /Rambo /Pyrotechnik /Unosce\n/Zlodej /Velitelpolicie", "Zavřít", "");
            }
        }
        case DIALOG_VIP_PACK:
        {
            if (!response) return 1;

            switch(listitem)
            {
                case 0: ShowPlayerDialog(playerid, DIALOG_VIP_PACK_ZBRANE, DIALOG_STYLE_LIST, "{001eff}Zbraně", "Ruce\nZbraně na blízko\nPistole\nBrokovnice\nSamopaly\nÚtočné pušky\nTěžké zbraně\nRaketomety\nVýbušné\nOstatní", "Vybrat", "Zavřít");
                case 1: ShowPlayerDialog(playerid, DIALOG_VIP_PACK_AUTA, DIALOG_STYLE_LIST, "{00fc32}Auta", "Sportovní vozidla\nTerenní vozidla\nLowridery\nAuta na tuning\nDodávky\nPrůmyslová vozidla\nDvou-dvéřová vozidla\nČtyř-dvéřová vozidla\nVeřejné služby\nNovinky\nVládní vozidla\nLetadla\nLodě\nMotocykly\nRC Modely\nKamiony", "Vybrat", "Zavřít");
            }
        }
    }
    return 1;
}
iOxide is offline   Reply With Quote
Old 06/08/2014, 06:12 PM   #3
DeoXel
Little Clucker
 
Join Date: Aug 2014
Posts: 10
Reputation: 0
Default Re: Error code

Same line, same error
DeoXel is offline   Reply With Quote
Old 06/08/2014, 06:15 PM   #4
dirigent00
Big Clucker
 
Join Date: Jul 2014
Posts: 72
Reputation: 1
Default Re: Error code

Are you sure that this is line 784? Which part of code is line 784?
dirigent00 is offline   Reply With Quote
Old 06/08/2014, 06:21 PM   #5
DeoXel
Little Clucker
 
Join Date: Aug 2014
Posts: 10
Reputation: 0
Default Re: Error code

Problem fixed.. Thanks
DeoXel is offline   Reply With Quote
Old 06/08/2014, 06:22 PM   #6
ViniBorn
Godfather
 
ViniBorn's Avatar
 
Join Date: Aug 2010
Location: Brasília
Posts: 5,313
Reputation: 720
Default Re: Error code

Show me the line 783 and 784, not the line 214
__________________



CONTATO: F A C E B O O K: @vinibornpawn

ViniBorn 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
error in code. krytans Scripting Help 4 04/08/2014 06:49 AM
[Tool/Web/Other] Code Highlighter - Highlight code to find brackets, organize code, ... Sinner Tools and Files 8 09/03/2012 01:28 PM
Pawn error (225) Unreachable Code error , Please help! nateykurgan Scripting Help 4 26/11/2011 10:11 AM
Error code slymatt Help Archive 1 20/07/2011 07:23 PM
Error Code help please rs2fun111 Help Archive 2 23/12/2009 08:23 PM


All times are GMT. The time now is 04:52 AM.


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