How do you check if a player has ANY weapons?
#8

Quote:
Originally Posted by HBG
Посмотреть сообщение
pawn Код:
bool:DoesPlayerHaveWeapons(playerid)
{
    new weap, am;
    for(new i = 0; i < 13; i ++)
    {
        GetPlayerWeaponData(playerid, i, weap, am);
        if(weap && am >= 1) return true;
    }
    return false;
}
a better version.
How is that better? You will get a warning (in a case), such as: C:\Users\... : warning 208: function with tag result used before definition, forcing reparse.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)