Dunno - 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: Dunno (
/showthread.php?tid=607393)
Dunno -
Micko123 - 19.05.2016
I made command /vhelp for vips. I did it like for /ahelp and it shoud be fine but this happened
PHP код:
#define DIALOG_VIP 16 //654 line
CMD:vhelp(playerid, params[])
{
if(PlayerInfo[playerid][pVIP] >= 1)
{
SPD(playerid, DIALOG_VIP, DIALOG_STYLE_MSGBOX, "VIP Komande", //3676 line
"\nVIP LVL 1 =========== /vgoto\
\nVIP LVL 2 =========== (u izradi)", "Ok, ""); //3678 line
}
return 1;
}
Код:
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(654) : warning 201: redefinition of constant/macro (symbol "DIALOG_VIP")
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(3676 -- 3678) : error 037: invalid string (possibly non-terminated string)
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(3678) : warning 215: expression has no effect
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(3678) : error 001: expected token: ";", but found ")"
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(3678) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(3678) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
What should i do?
EDIT:That dialog thing fixed. I allready defined it. But still can't fix other errors
Re: Dunno -
Micko123 - 19.05.2016
FIXED. I forgoth one " on this line
PHP код:
\nVIP LVL 2 =========== (u izradi)", "Ok, "");