Invalid String (+rep) - 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: Invalid String (+rep) (
/showthread.php?tid=625511)
Invalid String (+rep) -
XBoss30 - 02.01.2017
I'm getting these errors while compiling my script:
PHP код:
\filterscripts\Information.pwn(48) : error 037: invalid string (possibly non-terminated string)
\filterscripts\Information.pwn(48) : warning 215: expression has no effect
\filterscripts\Information.pwn(48) : error 001: expected token: ";", but found ")"
\filterscripts\Information.pwn(48) : error 029: invalid expression, assumed zero
\filterscripts\Information.pwn(48) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Line 48:
PHP код:
INFOLINK = TextDrawCreate(502.500000, 0.000000, ""WEBURL_SERVER"");
Re: Invalid String (+rep) -
MarkNelson - 02.01.2017
Show us the "WEBURL_SERVER" define
Re: Invalid String (+rep) - iLearner - 02.01.2017
No need for the "" ""
Re: Invalid String (+rep) -
XBoss30 - 02.01.2017
Here:
PHP код:
#define WEBURL_SERVER "maximum-community.co.za
Re: Invalid String (+rep) -
SickAttack - 02.01.2017
#define WEBURL_SERVER "maximum-community.co.za"
You forgot the other double quote.
Re: Invalid String (+rep) - iLearner - 02.01.2017
Quote:
#define WEBURL_SERVER "maximum-community.co.za"
|
You forgot the " ?
Re: Invalid String (+rep) -
XBoss30 - 02.01.2017
Yea, I realized that now, thanks guys +rep u both
Re: Invalid String (+rep) -
MarkNelson - 02.01.2017
You forget to add the "" in the define xD
Re: Invalid String (+rep) - iLearner - 02.01.2017
Though there's no need for the "" "":
Quote:
TextDrawCreate(502.500000, 0.000000, WEBURL_SERVER);
|
Re: Invalid String (+rep) -
XBoss30 - 02.01.2017
Quote:
Originally Posted by iLearner
Though there's no need for the "" "":
|
I prefer it with the "", looks more optimized i guess?