Class selection help
#4

Quote:
Originally Posted by Sascha
Посмотреть сообщение
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(GetPlayerScore(playerid) < 200)
    {
        return 0;
    }else{
        return 1;
    }
}
You really don't need an else here.
pawn Код:
public OnPlayerRequestClass( playerid, classid )
{
    if( GetPlayerScore( playerid ) < 200 ) return 0;
    return 1;
}
ALSO: It should be OnPlayerRequestSpawn:
pawn Код:
public OnPlayerRequestSpawn( playerid )
{
    if( GetPlayerScore( playerid ) < 200 ) return 0;
    return 1;
}
Reply


Messages In This Thread
Class selection help - by LiamM - 19.02.2011, 13:56
Re: Class selection help - by Zack9764 - 19.02.2011, 14:07
Re: Class selection help - by Sascha - 19.02.2011, 15:21
Re: Class selection help - by Mean - 19.02.2011, 15:56
Re: Class selection help - by LiamM - 19.02.2011, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)