#1

on this line
PHP код:
SendClientMessage(playerid, -1""S_SRVBOJA"** Kuca ** "G_BJELA"Koristenje:(/kuca [ime])"); 
I get these
Код:
C:\Users\Micko\Desktop\BaySide\gamemodes\BS.pwn(4776) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Micko\Desktop\BaySide\gamemodes\BS.pwn(4776) : warning 215: expression has no effect
C:\Users\Micko\Desktop\BaySide\gamemodes\BS.pwn(4776) : error 001: expected token: ";", but found "-string-"
C:\Users\Micko\Desktop\BaySide\gamemodes\BS.pwn(4776) : warning 215: expression has no effect
C:\Users\Micko\Desktop\BaySide\gamemodes\BS.pwn(4776) : error 001: expected token: ";", but found ")"
C:\Users\Micko\Desktop\BaySide\gamemodes\BS.pwn(4776) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Any ideas?
Reply
#2

should work if S_SRVBOJA and G_BJELA would be strings

show us how you defined S_SRVBOJA and G_BJELA
Reply
#3

No. Use hashtags in front of the defines. That way the pre-compiler will detect those as macro's, right now it does not.
Код:
SendClientMessage(playerid, -1, ""#S_SRVBOJA"** Kuca ** "#G_BJELA"Koristenje:(/kuca [ime])");
Reply
#4

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
No. Use hashtags in front of the defines. That way the pre-compiler will detect those as macro's, right now it does not.
Код:
SendClientMessage(playerid, -1, ""#S_SRVBOJA"** Kuca ** "#G_BJELA"Koristenje:(/kuca [ime])");
If they are defined like this:
pawn Код:
#define COLOR {RRGGBB}
Then yes, a pound sign would be needed.

But it's not when they are defined like this:
pawn Код:
#define COLOR "{RRGGBB}"
Reply
#5

I see. How does that come?
Reply
#6

Because the hashtag converts text into a string #Hello would be "Hello"
Although I should note that this is done by the precompiler
Doing #variable would result in "variable"
Reply
#7

OH YES OF COURSE! I knew that actually now that you say it :P. Thanks for the heads up (first time in a few years I am into samp&&pawn again)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)