20.07.2013, 17:03
Hello again
. I want to create Injured System, so here is my code
..But when I try to compile it, it finds 4 errors -
D:\Games\Grand Theft Auto (GTA) San Andreas-HOODLUM\GTA San Andreas\filterscripts\Anim.pwn(21) : error 010: invalid function or declaration
D:\Games\Grand Theft Auto (GTA) San Andreas-HOODLUM\GTA San Andreas\filterscripts\Anim.pwn(22) : error 010: invalid function or declaration
D:\Games\Grand Theft Auto (GTA) San Andreas-HOODLUM\GTA San Andreas\filterscripts\Anim.pwn(25) : error 010: invalid function or declaration
D:\Games\Grand Theft Auto (GTA) San Andreas-HOODLUM\GTA San Andreas\filterscripts\Anim.pwn(2
: error 010: invalid function or declaration.
Any idea how to fix it?

Код:
// // SIMPLE INJURED SYSTEM // BY: EDWARD VELKOV // FOR SAMP 0.3X // SERVER: ENERGY ROLEPLAY // CREATED ON: 20.7.2013 // //---------------------------------------------------------------// #include <a_samp> #include <core> #include <float> //--------------------------------------------------------------// #define TogglePlayerControllable #define GetPlayerHealth #define phealth //-------------------------------------------------------------// public OnPlayerUpdate(playerid); GetPlayerHealth(playerid,phealth); if(phealth < 35) //fall animation TogglePlayerControllable(playerid,0); ApplyAnimation(playerid,"CRACK","crckidle2",1,0,0, 0,0,0); return 1; }
D:\Games\Grand Theft Auto (GTA) San Andreas-HOODLUM\GTA San Andreas\filterscripts\Anim.pwn(21) : error 010: invalid function or declaration
D:\Games\Grand Theft Auto (GTA) San Andreas-HOODLUM\GTA San Andreas\filterscripts\Anim.pwn(22) : error 010: invalid function or declaration
D:\Games\Grand Theft Auto (GTA) San Andreas-HOODLUM\GTA San Andreas\filterscripts\Anim.pwn(25) : error 010: invalid function or declaration
D:\Games\Grand Theft Auto (GTA) San Andreas-HOODLUM\GTA San Andreas\filterscripts\Anim.pwn(2

Any idea how to fix it?