Timer rank spam
#9

Quote:
Originally Posted by king_hual
Посмотреть сообщение
Use a switch/case statement.
pawn Код:
switch(PlayerInfo[playerid][Xp])
{
     case 20:
               {
                    SendClientMessage(playerid, COLOR_GREEN, "You have been promoted to Private I!");
               }
     case 40:
               {
                    SendClientMessage(playerid, COLOR_GREEN, "You have been promoted to Private II!");
               }
                   //etc.
}
And I recommend not using any timers for that, just call the function whenever the score increases.
Could you explain more?
Reply


Messages In This Thread
Timer rank spam - by stormchaser206 - 26.01.2013, 18:17
Re: Timer rank spam - by Infamous - 26.01.2013, 18:23
Re: Timer rank spam - by DaRk_RaiN - 26.01.2013, 18:23
Re: Timer rank spam - by stormchaser206 - 26.01.2013, 18:24
Re: Timer rank spam - by stormchaser206 - 26.01.2013, 18:28
Re: Timer rank spam - by Infamous - 26.01.2013, 18:28
Re: Timer rank spam - by stormchaser206 - 26.01.2013, 18:31
Re: Timer rank spam - by KingHual - 26.01.2013, 18:42
Re: Timer rank spam - by stormchaser206 - 26.01.2013, 18:45
Re: Timer rank spam - by KingHual - 26.01.2013, 18:50

Forum Jump:


Users browsing this thread: 3 Guest(s)