one hard question [+rep]
#5

Quote:
Originally Posted by Jochemd
Посмотреть сообщение
GetPlayerJobID? You must be talking shit. Also you're using 'cases' and you haven't even used switch?

You got to do it like this

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
        case 0, 1: // Class the player is currently seeing is ID 0 (Citizen) or ID 1 (Citizen)
        {
            GameTextForPlayer(playerid,"Citizen",50000,3);
        }
        case 2, 3: // Class the player is currently seeing is ID 2 (Cop) or ID 3 (Cop)
        {
            GameTextForPlayer(playerid,"Cop",50000,3);
        }
        case 4: // Class the player is currently seeing is ID 4 (Criminal)
        {
            GameTextForPlayer(playerid,"Citizen",50000,3);
        }
    }
    return 1;
}
man, I don't need it, I had it before, I mean when player have to choose a skin he can take only 2 skin which his job has, like:
I've citizen job and I can choose only 0 and 1 but others skins I can't see, understood?
Reply


Messages In This Thread
one hard question [+rep] - by mineralo - 12.04.2012, 13:51
Re: one hard question [+rep] - by SomebodyAndMe - 12.04.2012, 13:56
Re: one hard question [+rep] - by mineralo - 12.04.2012, 15:57
Re: one hard question [+rep] - by Jochemd - 12.04.2012, 16:02
Re: one hard question [+rep] - by mineralo - 12.04.2012, 16:41
Re: one hard question [+rep] - by mineralo - 12.04.2012, 17:47
Re: one hard question [+rep] - by mineralo - 12.04.2012, 18:03
Re: one hard question [+rep] - by Marco_Valentine - 12.04.2012, 18:16
Re: one hard question [+rep] - by mineralo - 12.04.2012, 19:17
Re: one hard question [+rep] - by mineralo - 13.04.2012, 04:44

Forum Jump:


Users browsing this thread: 1 Guest(s)