Define problem
#1

Hi, i defined print to
pawn Код:
#define GConsole:"%0"                           print( "%0" )
but when i writte "GConsole: "Hi";

in console it prints %0 help?
Reply
#2

Use [pawn][./pawn] tags to visualize it better. The code u wrote above is real hard to understand.
Reply
#3

Here
Reply
#4

maybe u need to escape " using \"?
Reply
#5

Maybe can tou writte some excample how you do it?
Reply
#6

EDIT: Nvm.
Reply
#7

D:\RC4.5\gamemodes\Modifikacija.pwn(31 : warning 215: expression has no effect
D:\RC4.5\gamemodes\Modifikacija.pwn(321) : warning 215: expression has no effect
D:\RC4.5\gamemodes\Modifikacija.pwn(31 : warning 203: symbol is never used: "GConsole"
D:\RC4.5\gamemodes\Modifikacija.pwn(357) : warning 215: expression has no effect
D:\RC4.5\gamemodes\Modifikacija.pwn(35 : warning 215: expression has no effect
D:\RC4.5\gamemodes\Modifikacija.pwn(359) : warning 215: expression has no effect
D:\RC4.5\gamemodes\Modifikacija.pwn(360) : warning 215: expression has no effect
D:\RC4.5\gamemodes\Modifikacija.pwn(361) : warning 215: expression has no effect
D:\RC4.5\gamemodes\Modifikacija.pwn(357) : warning 203: symbol is never used: "GConsole"
D:\RC4.5\gamemodes\Modifikacija.pwn(2242) : warning 215: expression has no effect
D:\RC4.5\gamemodes\Modifikacija.pwn(2242) : warning 203: symbol is never used: "GConsole"
D:\RC4.5\gamemodes\Modifikacija.pwn(2974) : warning 215: expression has no effect
D:\RC4.5\gamemodes\Modifikacija.pwn(3030) : warning 215: expression has no effect
D:\RC4.5\gamemodes\Modifikacija.pwn(3065) : warning 215: expression has no effect
D:\RC4.5\gamemodes\Modifikacija.pwn(2974) : warning 203: symbol is never used: "GConsole" || Nah :/
Reply
#8

pawn Код:
#define GConsole:\"%0\"                           print( \"%0\" )
Reply
#9

Well you haven't set %0 as a constant, you have set the value of Constant GConsole to %d.

Try this, New GConsole[128];

Then set it later, GConsole = "Hi";
Reply
#10

It now saying %0\

like i'm using this

pawn Код:
GConsole: "Hello world";
Rob i't not working either
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)