SA-MP Forums Archive
this one single line crashes my complete compiler(showplayerdialog) - 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: this one single line crashes my complete compiler(showplayerdialog) (/showthread.php?tid=399744)



this one single line crashes my complete compiler(showplayerdialog) - niels44 - 15.12.2012

hey everyone,

this one single line crashes my entire compiler... and i cant find wuts wrong with it...

pawn Код:
ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "StreetRodZ Rules", "{FF0000}StreetRodZ Rules:\nYou may NOT begg for admin! doing so could result in a Ban!\nAdvertising will lead into a STRAIGHT ban!\nDo NOT ask for VIP! only way to get it is at {FF0000}[url]www.streetrodzracers.tk\nSwearing/Insulting[/url] an Admin/Player will result in a ban/kick/mute!\nDont Spam the chat or you get kicked\n\nNot keeping to any of this rules will result in a ban!\n\nhave fun!\n\n{00FF00}Greets\n{0000FF}Niels\n{FF0000}Ruben", "Accept", "Decline");
anyone has idea?

greets niels


Re: this one single line crashes my complete compiler(showplayerdialog) - Djean - 15.12.2012

Look right here:

"{FF0000}[url]www.streetrodzracers.tk"

Try removing the "[url]" and tell me if it still crashes.


Re: this one single line crashes my complete compiler(showplayerdialog) - niels44 - 15.12.2012

that [url] is from this forum, in the script it aint there, and i did some more searching on it, and i found out that when removing this it DOES compiles, meaning there is something wrong with this part:
pawn Код:
{0000FF}Niels\n{FF0000}Ruben
that is the last part of the dialog... and it seems that is causing it, though i wouldnt even know wuts wrong with it...


Re: this one single line crashes my complete compiler(showplayerdialog) - DaRk_RaiN - 15.12.2012

The problem there is that the dialog is too long try it this way
pawn Код:
ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX,
    "StreetRodZ Rules",
    "{FF0000}StreetRodZ Rules:\nYou may NOT begg for admin! doing so could result in a Ban!\nAdvertising will lead into a STRAIGHT ban!\nDo NOT ask for VIP! only way to get it is at {FF0000}[url]www.streetrodzracers.tk\nSwearing/Insulting[/url] an Admin/Player will result in a ban/kick/mute!\nDont Spam the chat or you get kicked\n\nNot keeping to any of this rules will result in a ban!\n\nhave fun!\n\n{00FF00}Greets\n{0000FF}Niels\n{FF0000}Ruben", "Accept", "Decline");



Re: this one single line crashes my complete compiler(showplayerdialog) - niels44 - 15.12.2012

already tried that... and it didnt worked, also when i removed it, it didnt said it is too long and it didnt crash, so i removed those last lines, though its strange...