what's wrong with that code?
#4

shouldnt this be on OnPlayerRequestClass ?

Also you need to use an switch then:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
        case 0: PlayerInfo[playerid][pJob] = 1;
        case 1: PlayerInfo[playerid][pJob] = 2;
        case 2: PlayerInfo[playerid][pJob] = 3;
        case 3: PlayerInfo[playerid][pJob] = 4;
        case 4: PlayerInfo[playerid][pJob] = 5;
    }
    return 1;
}
Reply


Messages In This Thread
what's wrong with that code? - by Christian_Bojic - 05.11.2010, 15:16
Re: what's wrong with that code? - by iJumbo - 05.11.2010, 15:30
Re: what's wrong with that code? - by Christian_Bojic - 05.11.2010, 15:34
Re: what's wrong with that code? - by gamer931215 - 05.11.2010, 15:37
Re: what's wrong with that code? - by Christian_Bojic - 05.11.2010, 15:41
Re: what's wrong with that code? - by Miguel - 05.11.2010, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)