Quote:
Originally Posted by GangstaSunny.
PHP код:
C:\Users\Aoky\Desktop\Murderer.pwn(38) : error 017: undefined symbol "MAX_ACTORS"
//Fix
#define MAX_ACTORS 100 //change the 100 to your own wished value
PHP код:
C:\Users\Aoky\Desktop\Murderer.pwn(162) : error 032: array index out of bounds (variable "Textdraw")
C:\Users\Aoky\Desktop\Murderer.pwn(163) : error 032: array index out of bounds (variable "Textdraw")
C:\Users\Aoky\Desktop\Murderer.pwn(164) : error 032: array index out of bounds (variable "Textdraw")
C:\Users\Aoky\Desktop\Murderer.pwn(165) : error 032: array index out of bounds (variable "Textdraw")
C:\Users\Aoky\Desktop\Murderer.pwn(166) : error 032: array index out of bounds (variable "Textdraw")
C:\Users\Aoky\Desktop\Murderer.pwn(167) : error 032: array index out of bounds (variable "Textdraw")
C:\Users\Aoky\Desktop\Murderer.pwn(168) : error 032: array index out of bounds (variable "Textdraw")
C:\Users\Aoky\Desktop\Murderer.pwn(169) : error 032: array index out of bounds (variable "Textdraw")
C:\Users\Aoky\Desktop\Murderer.pwn(170) : error 032: array index out of bounds (variable "Textdraw")
C:\Users\Aoky\Desktop\Murderer.pwn(177) : error 032: array index out of bounds (variable "Textdraw")
//Fix
//pawn will count from 0. i am not a math genie so i cant explain anything put you always have to put your value + 1 more.
new Text:Textdraw[6]; //you actualy have 5. +1 = 6 (damn i can math!)
PHP код:
C:\Users\Aoky\Desktop\Murderer.pwn(315) : error 017: undefined symbol "Spawnplayer"
//Fix
SpawnPlayer(playerid); //pawn is working case sensitive. which means you have to put the correct uppercase and lowercase characters
PHP код:
C:\Users\Aoky\Desktop\Murderer.pwn(317) : warning 235: public function lacks forward declaration (symbol "OnPlayerGiveDamageActor")
C:\Users\Aoky\Desktop\Murderer.pwn(331) : warning 235: public function lacks forward declaration (symbol "OnPlayerWeaponShot")
//Fix
//they should already be included, thats why Vince told you to use the correct pawno.exe.
//put the declarations directly above the publics or on top of your script.
forward OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);
forward OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart);
PHP код:
C:\Users\Aoky\Desktop\Murderer.pwn(342) : error 025: function heading differs from prototype
//Fix
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart){return 1;} //you just forgot the brackets.
For the last error there is no self-scripting fix. You need to update your files.
|
Thank you so much, but now I get these errors:
Quote:
(321) : error 010: invalid function or declaration
(334) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
|