Casino Dealer System(TExtdraw related)
#2

what is this thing why are you wasting so much rows with useless code
thats why you have variables, arrays and other things that you dont have to write such sutpid code over and over again.
PHP код:
forward RouletteTimer(playerid);
public 
RouletteTimer(playerid){
    
//Green,Red,Black
    
new string[MAX_STRING],rnd=random(36)+1,color[10];
    if        (
rnd%3==0)color="Black";
    else if    (
rnd%2==0)color="Red";
    else if    (
rnd%1==0)color="Green";
    
format(string,sizeof(string),"* The wheel lands on %d (%s)* (( %s ))",rnd,color,RPName(playerid);
    
NearMessage(playerid,string,COLOR_GREEN);
    return 
1;
}
forward BlackJackTimer(playerid);
public 
BlackJackTimer(playerid)
{
    new 
string[MAX_STRING]; //
    
format(string,sizeof(string),"*The card shows %d* (( %s ))",random(11)+1,RPName(playerid));
    
NearMessage(playerid,string,COLOR_GREEN);
    return 
1;

Reply


Messages In This Thread
Casino Dealer System(TExtdraw related) - by SlayerHodge - 12.06.2018, 16:05
Re: Casino Dealer System(TExtdraw related) - by CodeStyle175 - 12.06.2018, 18:04
Re: Casino Dealer System(TExtdraw related) - by SlayerHodge - 12.06.2018, 20:37
Re: Casino Dealer System(TExtdraw related) - by SlayerHodge - 13.06.2018, 20:02
Re: Casino Dealer System(TExtdraw related) - by SlayerHodge - 17.06.2018, 11:00

Forum Jump:


Users browsing this thread: 1 Guest(s)