SA-MP Forums Archive
Define problem - 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: Define problem (/showthread.php?tid=303031)



Define problem - No Fear - 11.12.2011

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

in console it prints %0 help?


Re: Define problem - suhrab_mujeeb - 11.12.2011

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


Re: Define problem - No Fear - 11.12.2011

Here


Re: Define problem - THE_KNOWN - 11.12.2011

maybe u need to escape " using \"?


Re: Define problem - No Fear - 11.12.2011

Maybe can tou writte some excample how you do it?


Re: Define problem - suhrab_mujeeb - 11.12.2011

EDIT: Nvm.


Re: Define problem - No Fear - 11.12.2011

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 :/


Re: Define problem - THE_KNOWN - 11.12.2011

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



Re: Define problem - Rob_Maate - 11.12.2011

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";


Re: Define problem - No Fear - 11.12.2011

It now saying %0\

like i'm using this

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