expected token: "-string end-", but found "-identifier-" - 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: expected token: "-string end-", but found "-identifier-" (
/showthread.php?tid=649350)
expected token: "-string end-", but found "-identifier-" -
Mkssid - 07.02.2018
PHP код:
#define VIPHEADSHOW true
#define VIPHEADTAG "Very Important Player"
#define COLOR_VIPHEADTAG (0xFF0000AA) // Red Color
PHP код:
#if VIPHEADTAG == true// LINE 800
new Text3D:label = Create3DTextLabel(""VIPHEADTAG"(1)", COLOR_VIPHEADTAG,30.0,40.0,50.0,40.0,-1,0);
Attach3DTextLabelToPlayer(label, playerid, 0,0,0.5);
#endif
Код:
(800) : error 001: expected token: "-string end-", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: expected token: "-string end-", but found "-identifier-" -
Misiur - 07.02.2018
Usually it's done a bit differently:
pawn Код:
//instead
#define VIPHEADSHOW true
//just
#define VIPHEADSHOW
//instead
#if VIPHEADTAG == true //I assume you wanted to put VIPHEADSHOW here instead
//use
#if defined VIPHEADSHOW
Re: expected token: "-string end-", but found "-identifier-" -
Mkssid - 07.02.2018
Can't I make it just true and false statement?
Re: expected token: "-string end-", but found "-identifier-" -
PepsiCola23 - 07.02.2018
sorry for bothering you,but VIP stands for very important person,not player.
Re: expected token: "-string end-", but found "-identifier-" -
KayJ - 07.02.2018
Quote:
Originally Posted by PepsiCola23
sorry for bothering you,but VIP stands for very important person,not player.
|
https://*********/XDTW9Dd7ORM
Re: expected token: "-string end-", but found "-identifier-" -
Hunud - 07.02.2018
Just don't fight about what's the correct meaning of the VIP lol.