random textdraws problem
#1

hello everybody i want to make a random textdraw but i dindґt know how i can do this i have made together with a freind this code
but he dint work how it needs
it change one or 2 textdraws but then it stops can someone help me please

Code:
SetTimer("textdraw",10000,1);
Code:
public textdraw(playerid){
new gla=random(6)+1, s[100];
switch(gla) {
case 1: { s="~r~www.stuntlantis.de~w~ /teleports /jumps /dms /cars /commands1"; } 
case 2: { s="~r~www.stuntlantis.de~w~ /teleports /jumps /dms /cars /commands2"; } 
case 3: { s="~r~www.stuntlantis.de~w~ /teleports /jumps /dms /cars /commands3"; } 
case 4: { s="~r~www.stuntlantis.de~w~ /teleports /jumps /dms /cars /commands4"; } 
case 5: { s="~r~www.stuntlantis.de~w~ /teleports /jumps /dms /cars /commands5"; } 
case 6: { s="~r~www.stuntlantis.de~w~ /teleports /jumps /dms /cars /commands6"; }}
TextDrawSetString(www,s);

www = TextDrawCreate(10.000000,436.000000,s);
TextDrawSetShadow(www,0);
TextDrawSetOutline(www,1);
TextDrawBackgroundColor(www,0x000000FF);
TextDrawColor(www,0xFFFFFFFF);
TextDrawFont(www,3);
return 1;
}
Reply


Messages In This Thread
random textdraws problem - by a-day - 08.12.2009, 16:17
Re: random textdraws problem - by Joe Staff - 08.12.2009, 16:29
Re: random textdraws problem - by a-day - 08.12.2009, 17:21
Re: random textdraws problem - by Jefff - 08.12.2009, 17:31
Re: random textdraws problem - by a-day - 08.12.2009, 17:47
Re: random textdraws problem - by a-day - 08.12.2009, 18:56
Re: random textdraws problem - by Jay. - 20.06.2010, 13:43

Forum Jump:


Users browsing this thread: 1 Guest(s)