1 problem
#3

1. It does not need to be a two dimensional array, remove the second set of square braces.
2. To loop over the array, use:
PHP код:
for(new isizeof(ForbiddenWeapons); i++)
{
    if(
GetPlayerWeapon(playerid) == ForbiddenWeapons[i])
    {
        
// stuff
    
}

Remember: you want to check the value of the index, not the index itself.
Reply


Messages In This Thread
1 problem - by GeneralAref - 19.12.2015, 15:09
Re: 1 problem - by Shoulen - 19.12.2015, 15:21
Re: 1 problem - by Vince - 19.12.2015, 15:29
Re: 1 problem - by GeneralAref - 19.12.2015, 16:35
Re: 1 problem - by Mencent - 19.12.2015, 16:37
Re: 1 problem - by GeneralAref - 19.12.2015, 16:44
Re: 1 problem - by Mencent - 19.12.2015, 17:09
Re: 1 problem - by vassilis - 19.12.2015, 20:04
Re: 1 problem - by GeneralAref - 20.12.2015, 07:12
Re: 1 problem - by Mencent - 20.12.2015, 07:17

Forum Jump:


Users browsing this thread: 1 Guest(s)