[FilterScript] First
#5

6 Errors on compiling, gj mate, gj

Fixed Version (still not worth releasing):

PHP код:
#define MAX_MESSAGE_SIZE 150
new Text:RandomMsgTDRandomMsgID;
new 
RandomMsgs[][MAX_MESSAGE_SIZE] = 

    
"Message number 1",  
    
"Message number 2",  
    
"Message number 3" 
}; 
public 
OnFilterScriptInit() 

    
RandomMsgTD TextDrawCreate(8.000000431.000000"~p~~h~News ~w~_."); 
    
TextDrawBackgroundColor(RandomMsgTD255); 
    
TextDrawFont(RandomMsgTD2); 
    
TextDrawLetterSize(RandomMsgTD0.2000001.200000); 
    
TextDrawColor(RandomMsgTD, -1); 
    
TextDrawSetOutline(RandomMsgTD1); 
    
TextDrawSetProportional(RandomMsgTD1); 
    
TextDrawSetSelectable(RandomMsgTD0); 
     
    
RandomMessage(); 
    
SetTimer("RandomMessage"45000true); 
    return 
1

public 
OnPlayerConnect(playerid)
{
    
TextDrawShowForPlayer(playeridRandomMsgTD); 
}
public 
OnPlayerDisconnect(playeridreason){
{
    
TextDrawHideForPlayer(playeridRandomMsgTD); 
}
forward RandomMessage(); 
public  
RandomMessage() 

    new 
rID getNewRandomMessageID();
    new 
string[MAX_MESSAGE_SIZE 15 /*because of the stuff infront of the actual message*/];
    
format(stringsizeof(string), "~r~News ~w~%s"RandomMsgs[rID]); 
    
TextDrawSetString(RandomMsgTDstring); 
    return 
1;
}  
getNewRandomMessageID()
{
    new 
newRandomID random(sizeof(RandomMsgs)); 
    return 
newRandomID == RandomMsgID getNewRandomMessageID() : newRandomID;

Also give your topic a proper name ^^
Reply


Messages In This Thread
First - by Rassh - 21.01.2017, 14:29
Re: First - by Logic_ - 21.01.2017, 14:39
Re: First - by CaRaM3LL - 21.01.2017, 14:50
Re: First - by Codeah - 21.01.2017, 14:53
Re: First - by BiosMarcel - 21.01.2017, 14:56
Re: First - by Logic_ - 21.01.2017, 15:25
Re: First - by Quinncell - 21.01.2017, 16:12
Re: First - by RyderX - 21.01.2017, 16:56
Re: First - by RyderX - 21.01.2017, 17:04
Re: First - by BiosMarcel - 21.01.2017, 17:19

Forum Jump:


Users browsing this thread: 1 Guest(s)