one hard question [+rep]
#4

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;
}
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: 2 Guest(s)