SA-MP Forums Archive
-.- - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: -.- (/showthread.php?tid=186421)



-.- - WillyP - 29.10.2010

why does this simple code give errors:

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



Re: -.- - willsuckformoney - 29.10.2010

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.


Re: -.- - WillyP - 29.10.2010

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


Re: -.- - willsuckformoney - 29.10.2010

OK no more then.