SA-MP Forums Archive
Help please need help fast! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help please need help fast! (/showthread.php?tid=196705)



Help please need help fast! - NewbBeginner - 06.12.2010

HELLO.

I have define
pawn Код:
#define Lol      "You are so stupid."
Now, I want to change this define 'lol' ingame to other, via command.
Please help.


Re: Help please need help fast! - fangoth1 - 06.12.2010

what do you mean


Re: Help please need help fast! - SkizzoTrick - 06.12.2010

Like
/setmotd "new message"??


Re: Help please need help fast! - fangoth1 - 06.12.2010

like this?
pawn Код:
if (strcmp("/setmotd", cmdtext, true, 6) == 0)
             {
             SendClientMessageToAll(YOUR_COLOR_HERE,"MESSAGE");
             return 1;
             }



Re: Help please need help fast! - SkizzoTrick - 06.12.2010

Quote:
Originally Posted by fangoth1
Посмотреть сообщение
like this?
pawn Код:
if (strcmp("/enter", cmdtext, true, 6) == 0)
        {
                          SendClientMessageToAll(YOUR_COLOR_HERE,"MESSAGE");
                          return 1;
                          }
No man..im completly sure that his talking about something else


Re: Help please need help fast! - NewbBeginner - 06.12.2010

NOO ! like example. I have color defined:
pawn Код:
#define COLOR_RED     55555
Now, I use command, like /changeredcolor NUMBERS
Now define would be COLOR_RED NUMBERS.


Re: Help please need help fast! - fangoth1 - 06.12.2010

like so numbers are red in pawno instead of this color
pawn Код:
1



Re: Help please need help fast! - NewbBeginner - 06.12.2010

NOO JESUS CRISTUS.

pawn Код:
#define COLOR_RED     55555
Now, I use command /changered 44444
Now this define would be
pawn Код:
#define COLOR_RED     44444



Re: Help please need help fast! - SkizzoTrick - 06.12.2010

Man,i don't think that this is possible
Anyway,if you need something like a motd,then you can create a file named Motd,when you type /changemotd you will change that text
But i don't think that you can change the defines IG

EDIT:Im not completly sure,but i think i saw #redefine somewhere but i can't remember


Re: Help please need help fast! - NewbBeginner - 06.12.2010

Then how it's possible to define something and change it ingame ?