Some errors - 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: Some errors (
/showthread.php?tid=662457)
Some errors -
ZigGamerx - 02.01.2019
Код:
G:\Call of Duty - Modern Warfare 5\gamemodes\cod-aw.pwn(1084 -- 1085) : error 001: expected token: "-string end-", but found "-identifier-"
G:\Call of Duty - Modern Warfare 5\gamemodes\cod-aw.pwn(1085) : error 001: expected token: "-string end-", but found "-identifier-"
G:\Call of Duty - Modern Warfare 5\gamemodes\cod-aw.pwn(1085) : warning 215: expression has no effect
G:\Call of Duty - Modern Warfare 5\gamemodes\cod-aw.pwn(1085) : error 001: expected token: ";", but found "-integer value-"
G:\Call of Duty - Modern Warfare 5\gamemodes\cod-aw.pwn(1085) : fatal error 107: too many error messages on one line
Код:
ShowPlayerDialog(playerid, DIALOG_NUKE, DIALOG_STYLE_LIST, "Nuke Station (Area 51)",
"" COLOR_INLINE_USA LOCALE_TEAMNAME_USA "\n" COLOR_INLINE_EUROPE LOCALE_TEAMNAME_EUROPE "\n" COLOR_INLINE_ASIA LOCALE_TEAMNAME_ASIA "\n" COLOR_INLINE_RUSSIA LOCALE_TEAMNAME_RUSSIA "\n" COLOR_INLINE_AUSTRALIA LOCALE_TEAMNAME_AUSTRALIA,
"Launch!", "Cancel");
Re: Some errors -
AhmedMohamed - 02.01.2019
This should work:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_NUKE, DIALOG_STYLE_LIST, "Nuke Station (Area 51)"," COLOR_INLINE_USA LOCALE_TEAMNAME_USA\nCOLOR_INLINE_EUROPE LOCALE_TEAMNAME_EUROPE\nCOLOR_INLINE_ASIA LOCALE_TEAMNAME_ASIA\nCOLOR_INLINE_RUSSIA LOCALE_TEAMNAME_RUSSIA\nCOLOR_INLINE_AUSTRALIA LOCALE_TEAMNAME_AUSTRALIA","Launch!", "Cancel");
Re: Some errors -
Libbyphay - 02.01.2019
Код HTML:
new string[128];
format(string, sizeof(string), "COLOR_INLINE_USA LOCALE_TEAMNAME_USA\n\
COLOR_INLINE_EUROPE LOCALE_TEAMNAME_EUROPE\n\
COLOR_INLINE_ASIA LOCALE_TEAMNAME_ASIA\n\
COLOR_INLINE_RUSSIA LOCALE_TEAMNAME_RUSSIA\n\
COLOR_INLINE_AUSTRALIA LOCALE_TEAMNAME_AUSTRALIA");
ShowPlayerDialog(playerid, DIALOG_NUKE, DIALOG_STYLE_LIST, "Nuke Station (Area 51)", string, "Launch!", "Cancel"
https://sampwiki.blast.hk/wiki/ShowPlayerDialog