2ERROS.. - 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: 2ERROS.. (
/showthread.php?tid=629614)
2ERROS.. -
Thanks - 01.03.2017
I Got 2 erros when i trying to Make This...
Код:
error 027: invalid character constant
error 017: undefined symbol "DIALOG_STYLE_TABLIST_HEADERS
Код:
CMD:shop(playerid,params[])
{
ShowPlayerDialog(playerid,WEAP_DIALOG,DIALOG_STYLE_TABLIST_HEADERS,"{6EF83C}Do you Want Anything From Shop?!","Weapon\tPrice\tAmmo\n\Deagle\t$10000\t100\n\Sawnoff\t$15000\t60\n\Grenade\t$15000\t5\n\Combat Shotgun\t$15000\t40\n\UZI\t$40000\t250\n\Shotgun\t$16000\t50\n\M4\t$25000\t100\nSniper\t$25000\t50","Buy", "Close");
return 1;
}
What's wrong here.
Re: 2ERROS.. -
Hansrutger - 01.03.2017
Search for "\n\S" these types of string in your list string. You shouldn't put a \ after \n unless the second \ is going to be valid (\S is not valid). I think the \ sign you're thinking of is from this example here:
https://sampwiki.blast.hk/wiki/Dialog_Styles if I'm right.
It means that the compiler will read it as one line, similar to what is used when creating longer macro's, if I'm not mistaken of its meaning.
Re: 2ERROS.. -
Thanks - 01.03.2017
Hi, i remove everything Like \n\ so i got a one error
Код:
error 017: undefined symbol "DIALOG_STYLE_TABLIST_HEADERS"
Re: 2ERROS.. -
Toroi - 01.03.2017
What version of the sa-mp server are you using?
Re: 2ERROS.. -
Thanks - 01.03.2017
0.3.7
Re: 2ERROS.. -
Bolex_ - 01.03.2017
#define DIALOG_STYLE_TABLIST_HEADERS 5
Re: 2ERROS.. -
Thanks - 01.03.2017
wew thanks worked.
Re: 2ERROS.. -
Toroi - 01.03.2017
Код:
ShowPlayerDialog(playerid,WEAP_DIALOG,5,"{6EF83C}Do you Want Anything From Shop?!","Weapon\tPrice\tAmmo\n\Deagle\t$10000\t100\n\Sawnoff\t$15000\t60\n\Grenade\t$15000\t5\n\Combat Shotgun\t$15000\t40\n\UZI\t$40000\t250\n\Shotgun\t$16000\t50\n\M4\t$25000\t100\nSniper\t$25000\t50","Buy", "Close");
Try like this, 5 is the defined value of DIALOG_STYLE_TABLIST_HEADERS
[EDIT] Oops, didn't reload the page.
Re: 2ERROS.. -
Thanks - 01.03.2017
np, thank you too Troydere

rep