21.06.2012, 19:24
Ok, now I got it so:
But when I now try to compile it, my pawno didnt work,
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#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."
};
SetTimer("SendMSG", 60000, true);
// 60000ms = 60 seconds = 1 minute
forward SendMSG();
public SendMSG 1:("* New here?, go visit us forum for all info about the server.",)
{
SetTimer("SendMSG", 60000, true);
}
public SendMSG 2:("* Dont registered in us server?, /register and you will be automatically logged in.",) // What it looks at the moment
{
SetTimer("SendMSG", 60000, true);
public SendMSG 3:("* Dont worry about your stats, if you are registered it will be automatically saved.")
{
new randMSG = random(sizeof(RandomMSG)); //calculates the size of RandomMSG (which is 3)
SendClientMessageToAll(0xFFFFFF, RandomMSG[randMSG]); // Replace the "color" with your defined color.
}
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG));
SendClientMessageToAll(0xFFFFFF, RandomMSG[randMSG]); // Replace the "COLOR" with your defined color.
}
#endif