SOLVED
#4

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{  switch(random(3))
    {
      case 0: GameTextForPlayer(playerid,"~W~lol You got owned!",4000,1);
      case 1: GameTextForPlayer(playerid,"~R~hahah you died!!!",4000,0);
      case 2: GameTextForPlayer(playerid,"~w~ WASTED!",4000,2);
    }
    return 1;
}
If it doesn't works:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{  
    new rand = random(3);
    switch(rand)
    {
      case 0: GameTextForPlayer(playerid,"~W~lol You got owned!",4000,1);
      case 1: GameTextForPlayer(playerid,"~R~hahah you died!!!",4000,0);
      case 2: GameTextForPlayer(playerid,"~w~ WASTED!",4000,2);
    }
    return 1;
}
If it still doesn't worK:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{  
    new rand = random(3);
     if(rand == 0) GameTextForPlayer(playerid,"~W~lol You got owned!",4000,1);
     if(rand == 1) GameTextForPlayer(playerid,"~R~hahah you died!!!",4000,0);
     if(rand == 2) GameTextForPlayer(playerid,"~w~ WASTED!",4000,2);
    return 1;
}
Reply


Messages In This Thread
SOLVED - by Jay. - 21.06.2010, 18:32
Re: problem with my script - by Hiddos - 21.06.2010, 18:35
Re: problem with my script - by Jay. - 21.06.2010, 18:36
Re: problem with my script - by Hiddos - 21.06.2010, 18:41
Re: problem with my script - by Jay. - 21.06.2010, 18:43
SOLVED - by Jay. - 21.06.2010, 18:48
Re: problem with my script - by Hiddos - 21.06.2010, 18:52
Re: problem with my script - by Jay. - 22.06.2010, 20:12

Forum Jump:


Users browsing this thread: 1 Guest(s)