18.01.2011, 14:47
The first problem I saw is this:
You cannot compare it that way, pawn will read it like this:
As 31/30 are not 0, pawn reads them as true, so this line will always be true.
You will have to do it this, change all matching ifs:
Dont know if there are other mistakes, but this is the most fatal one, as the used weapon is not detected correctly.
But however, nice work. Tons of "pro scripters" dont manage it to create something like this, and whine in the request thread, but you as a beginner just made it on your own. Keep it up!
pawn Код:
if(GetPlayerWeapon(shooter) == 29 || 31 || 30)
pawn Код:
if(GetPlayerWeapon(shooter) == 29)
OR
if(31)
OR
if(30)
You will have to do it this, change all matching ifs:
pawn Код:
if(GetPlayerWeapon(shooter) == 29 || GetPlayerWeapon(shooter) == 31 || GetPlayerWeapon(shooter) == 30)
But however, nice work. Tons of "pro scripters" dont manage it to create something like this, and whine in the request thread, but you as a beginner just made it on your own. Keep it up!