Fasted way?
#1

Hey all,i need a "speed" tip.

I need to use the case function to switch wanted level fast and showing messages.

I've this:

pawn Код:
if(GetPlayerWantedLevel(playerid) > 1)
    {
    new string [100];
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "%s has now wanted level 1.", pName);
    SendClientMessageToAll(COLOR_ORANGE, string);
    new str[100];
    format(str,sizeof str,"0,4%s has now wanted level 1.", pName);
    IRC_GroupSay(gGroupID, IRC_CHANNEL, str);
    }
How i can do in a fast way with case?

Ex: case 1 "player blabla wanted level 1)
case 2 "player bla bla wanted level 2

Etc..

Thanks.
Reply


Messages In This Thread
Fasted way? - by Face9000 - 25.12.2010, 14:17
AW: Fasted way? - by EthanR - 25.12.2010, 14:19
Re: Fasted way? - by Face9000 - 25.12.2010, 14:21
AW: Fasted way? - by EthanR - 25.12.2010, 14:27
Re: Fasted way? - by Jochemd - 25.12.2010, 14:31
Re: Fasted way? - by Face9000 - 25.12.2010, 14:37
Re: Fasted way? - by Mike_Peterson - 25.12.2010, 14:44
Re: Fasted way? - by Face9000 - 25.12.2010, 16:41
Re: Fasted way? - by Ricop522 - 26.12.2010, 14:34
Re: Fasted way? - by Joe Staff - 26.12.2010, 15:59

Forum Jump:


Users browsing this thread: 1 Guest(s)