expected token: "-string end-", but found "-identifier-"
#1

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(labelplayerid0,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.
Reply
#2

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
Reply
#3

Can't I make it just true and false statement?
Reply
#4

sorry for bothering you,but VIP stands for very important person,not player.
Reply
#5

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
sorry for bothering you,but VIP stands for very important person,not player.
https://*********/XDTW9Dd7ORM
Reply
#6

Just don't fight about what's the correct meaning of the VIP lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)