Help! Automatic messages
#1

Dear all

lastnight i found a good tutorial
for make a easy's auto messages
so im not sure how can i use it

my automatics messages work good
and i like it, but... that show the message in a line

Код:
forward SendRandomMsgToAll();
public SendRandomMsgToAll()
{
    switch(random(4))// "switch - case" is a sort of "if - else if - else" statement (operator?)
    {
        case 0: SendClientMessageToAll(0xFFFF00AA, "Need a Vehicle? use /veh");  //Case means "if ( The function from switch() ) equals '0' (In this case)."
        case 1: SendClientMessageToAll(0xFFFF00AA, "How to Buy a House? Stand up in the logo house and use /buyh");
        case 2: SendClientMessageToAll(0xFFFF00AA, "How to Buy a Car? inside a free car use /vbuy");
        case 3: SendClientMessageToAll(0xFFFF00AA, "Need Help? use /help or write to some admin ;)");
}
you guys can help me to show every message in this format?
showing in the server chat this example:

=========================

Need a Vehicle? use /veh

=========================

i appreciate allways your help

Thanks
Reply
#2

pawn Код:
case 0: SendClientMessageToAll(0xFFFF00AA, "========================="),SendClientMessageToAll(0xFFFF00AA, "Need a Vehicle? use /veh"),SendClientMessageToAll(0xFFFF00AA, "=========================");
Reply
#3

thanks Gertin, ill try just now and work nice! can you help me with this too? please
http://forum.sa-mp.com/showthread.ph...96#post1154596
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)