[Needed help] With random text
#8

That's a lot of unnecessary coding. This should work:
pawn Код:
#include <a_samp>

new RandomMSG[][] =
{
    "* SERVER:New here?, go visit us forum for all info about the server.",
    "* SERVER:Dont registered in us server?, /register and you will be automatically logged in.",
    "* SERVER:Dont worry about your stats, if you are registered it will be automatically saved."
};

forward SendMSG();

public OnGameModeInit()
{
    SetTimer("SendMSG", 60000, true);
    return 1;
}

public SendMSG()
{
    new randMSG = random(sizeof(RandomMSG));
    SendClientMessageToAll(0xFFFFFF, RandomMSG[randMSG]);
    return 1;
}
Reply


Messages In This Thread
[Needed help] With random text - by mickos - 21.06.2012, 19:11
Re: [Needed help] With random text - by Macluawn - 21.06.2012, 19:18
Re: [Needed help] With random text - by mickos - 21.06.2012, 19:24
Re: [Needed help] With random text - by Saw® - 21.06.2012, 19:30
Re: [Needed help] With random text - by mickos - 21.06.2012, 19:37
Re: [Needed help] With random text - by Mr.1337 - 21.06.2012, 19:40
Re: [Needed help] With random text - by mickos - 21.06.2012, 19:44
Re: [Needed help] With random text - by [jS]Thomas - 21.06.2012, 20:56

Forum Jump:


Users browsing this thread: 2 Guest(s)