[Needed help] With random text
#1

Hey I just make some random text but I got 8 errors, I have try alot of thinks but it didnt helped.
So, I hope you can help me.

Code:

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"60000true);
// 60000ms = 60 seconds = 1 minute
forward SendMSG();
public 
SendMSG("* New here?, go visit us forum for all info about the server.",)
public 
SendMSG("* Dont registered in us server?, /register and you will be automatically logged in.",) // What it looks at the moment
public SendMSG("* 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(0xFFFFFFRandomMSG[randMSG]); // Replace the "color" with your defined color.
}
public 
SendMSG()
{
    new 
randMSG random(sizeof(RandomMSG));
    
SendClientMessageToAll(0xFFFFFFRandomMSG[randMSG]); // Replace the "COLOR" with your defined color.
}
#endif 
Errors:

PHP код:
C:\Users\Edward\Desktop\samp server mick en roy\pawno\randomtext.pwn(14) : error 021symbol already defined"SetTimer"
C:\Users\Edward\Desktop\samp server mick en roy\pawno\randomtext.pwn(19) : error 010invalid function or declaration
C
:\Users\Edward\Desktop\samp server mick en roy\pawno\randomtext.pwn(21) : error 001expected token")"but found "public"
C:\Users\Edward\Desktop\samp server mick en roy\pawno\randomtext.pwn(21) : error 029invalid expressionassumed zero
C
:\Users\Edward\Desktop\samp server mick en roy\pawno\randomtext.pwn(23) : error 001expected token")"but found "public"
C:\Users\Edward\Desktop\samp server mick en roy\pawno\randomtext.pwn(23) : error 021symbol already defined"SendMSG"
C:\Users\Edward\Desktop\samp server mick en roy\pawno\randomtext.pwn(23) : error 010invalid function or declaration
C
:\Users\Edward\Desktop\samp server mick en roy\pawno\randomtext.pwn(23) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
8 Errors

Thankss
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: 1 Guest(s)