SA-MP Forums Archive
error -_- - 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: error -_- (/showthread.php?tid=342421)



error -_- - thefatshizms - 13.05.2012

hi got an error compiling


C:\Users\iphone\Desktop\0.3e\filterscripts\interio r.pwn(224) : error 030: compound statement not closed at the end of file (started at line 21
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

pawn Код:
ShowPlayerDialog(playerid, DIALOG_SHOP, DIALOG_STYLE_LIST, "{FF0000}Shops", "{00FF00}24/7 1\n{00FF00}24/7 2\n{00F00}24/7 3\n{00FF00}24/7 4\n{00FF00}24/7 5\n{00FF00}24/7 6", "teleport", "cancel");
                        {

    return 1;
}
#endif



Re: error -_- - .FuneraL. - 13.05.2012

pawn Код:
if(!strcmp(cmdtext, "/shops", true))
{    
    ShowPlayerDialog(playerid, DIALOG_SHOP, DIALOG_STYLE_LIST, "{FF0000}Shops", "{00FF00}24/7 1\n{00FF00}24/7 2\n{00F00}24/7 3\n{00FF00}24/7 4\n{00FF00}24/7 5\n{00FF00}24/7 6", "teleport", "cancel");
    return 1;
}
#endif



Re: error -_- - Mr.Fames - 13.05.2012

You need to close the compound for ex
pawn Код:
{
          }
can u post the full code to pastebin pls


Re: error -_- - thefatshizms - 13.05.2012

http://pastebin.com/HYwGBiQa


Re: error -_- - Mr.Fames - 13.05.2012

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
your code is messed up alot lol


Re: error -_- - thefatshizms - 13.05.2012

Quote:
Originally Posted by Mr.Fames
Посмотреть сообщение
your code is messed up alot lol
xD still learning


offtopic: I WANT TO BE PRO!


Re: error -_- - thefatshizms - 13.05.2012

bump


Re: error -_- - thefatshizms - 13.05.2012

what am i doing wrong? i guesed on how to make dialogs inside dialogs ami doing that wrong plz answer me


Re: error -_- - thefatshizms - 13.05.2012

BUMP! any1 can help?


Re: error -_- - MarkoN - 13.05.2012

You want to make , when a player presses "teleport" it teleports him/her ?

you need to use
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
EDIT :

Didnt see the pastebin link ... thats really messy