Timer rank spam
#8

Quote:
Originally Posted by stormchaser206
Посмотреть сообщение
Dark_Rain, how can i set it so that i can do it with more than one rank? Because the same code wouldnt work because it would be detected.
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.
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: 2 Guest(s)