Prob with GameTextForPlayer
#3

Quote:
Originally Posted by Mean
Посмотреть сообщение
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0)
    {
        GameTextForPlayer(playerid,"Text",999999,3);
    }
    else if(classid == 1)
    {
        GameTextForPlayer(playerid,"Text2",999999,3);
    }
}
//etc.
Actually, it's better switch:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
        case 0:GameTextForPlayer(playerid,"Class 1",5000,3);
        case 1:GameTextForPlayer(playerid,"Class 2",5000,3);
        case 2:GameTextForPlayer(playerid,"Class 3",5000,3);
        //And so on...
    }
}
Reply


Messages In This Thread
Prob with GameTextForPlayer - by NuggaN_ - 12.12.2010, 15:57
Re: Prob with GameTextForPlayer - by Mean - 12.12.2010, 17:55
Re: Prob with GameTextForPlayer - by The_Moddler - 12.12.2010, 18:00
Re: Prob with GameTextForPlayer - by Joe_ - 12.12.2010, 18:04
Re: Prob with GameTextForPlayer - by The_Moddler - 12.12.2010, 18:20
Re: Prob with GameTextForPlayer - by Mean - 12.12.2010, 18:54
Re: Prob with GameTextForPlayer - by Mean - 13.12.2010, 16:52
Re: Prob with GameTextForPlayer - by jordy.kiesebrink - 10.02.2011, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)