if(GetPlayerWeapon(shooter) == 29 || 31 || 30)
if(GetPlayerWeapon(shooter) == 29)
OR
if(31)
OR
if(30)
if(GetPlayerWeapon(shooter) == 29 || GetPlayerWeapon(shooter) == 31 || GetPlayerWeapon(shooter) == 30)
C:\Documents and Settings\Matz\Desktop\realhit.pwn(40) : error 025: function heading differs from prototype
C:\Documents and Settings\Matz\Desktop\realhit.pwn(43) : warning 219: local variable "armour" shadows a variable at a preceding level
C:\Documents and Settings\Matz\Desktop\realhit.pwn(45) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Documents and Settings\Matz\Desktop\realhit.pwn(57) : warning 219: local variable "armour" shadows a variable at a preceding level
C:\Documents and Settings\Matz\Desktop\realhit.pwn(59) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Documents and Settings\Matz\Desktop\realhit.pwn(69) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Matz\Desktop\realhit.pwn(70) : warning 219: local variable "armour" shadows a variable at a preceding level
C:\Documents and Settings\Matz\Desktop\realhit.pwn(72) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Documents and Settings\Matz\Desktop\realhit.pwn(82) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Matz\Desktop\realhit.pwn(83) : warning 219: local variable "armour" shadows a variable at a preceding level
C:\Documents and Settings\Matz\Desktop\realhit.pwn(85) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Documents and Settings\Matz\Desktop\realhit.pwn(95) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Matz\Desktop\realhit.pwn(96) : error 001: expected token: ")", but found "new"
C:\Documents and Settings\Matz\Desktop\realhit.pwn(96) : error 003: declaration of a local variable must appear in a compound block
C:\Documents and Settings\Matz\Desktop\realhit.pwn(96) : warning 221: label name "Float" shadows tag name
C:\Documents and Settings\Matz\Desktop\realhit.pwn(96) : error 017: undefined symbol "armour"
C:\Documents and Settings\Matz\Desktop\realhit.pwn(96) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.
error 025: function heading differs from prototype
public OnPlayerShootPlayer(shooter,target,Float:damage)
The first problem I saw is this:
pawn Код:
pawn Код:
You will have to do it this, change all matching ifs: pawn Код:
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! |