#1

why does this simple code give errors:

pawn Код:
if(GetPlayerWeapon(playerid) == 1..46)
Reply
#2

1..46 can only work while using the 'case' statement. You can do.....

pawn Код:
if(GetPlayerWeapon(playerid) >= 1 && GetPlayerWeapon(playerid) <= 46)
{
        //Your code.
}
EDIT: Different problem, different topic.
Reply
#3

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
1..46 can only work while using the 'case' statement. You can do.....

pawn Код:
if(GetPlayerWeapon(playerid) >= 1 && GetPlayerWeapon(playerid) <= 46)
{
        //Your code.
}
EDIT: Different problem, different topic.
bumping my topics with more of my problems will probablies turn into general queries
Reply
#4

OK no more then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)