[SOLVED]bad weaponids praaablem
#1

I have made a
Код:
new WrongGuns [34] = { id,id,id };
Listed up 34 weapon ids
then i try to use
Код:
GetPlayerWeapon(playerid) == WrongGun)
But its not working ofc, so my question is, how can i get it to work?
Reply
#2

use a loop to loop through and compare wronggun[x] to GetPlayerWeapon
Reply
#3

pawn Код:
for(new w = 0; w < WrongGuns; w ++ ){
   if(GetPlayerWeapon(playerid) == WrongGuns[w]) {
        ....
   }
}
Reply
#4

Thank you, works great.
Had to add [w] to the one above too.

Problem SOLVED.
Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)