Quote:
Originally Posted by Da' J'
Ok so i threw the code to somewhere where was talking about when your health increases. (Cluckin bell etc.) Just under all that. Well i get these errors:
pawn Код:
E:\SA-MP Offical Server\gamemodes\B-RP.pwn(6648) : error 010: invalid function or declaration E:\SA-MP Offical Server\gamemodes\B-RP.pwn(6650) : warning 218: old style prototypes used with optional semicolumns E:\SA-MP Offical Server\gamemodes\B-RP.pwn(6651) : error 010: invalid function or declaration E:\SA-MP Offical Server\gamemodes\B-RP.pwn(45421) : warning 203: symbol is never used: "gCopPlayerSpawns" E:\SA-MP Offical Server\gamemodes\B-RP.pwn(45421) : warning 203: symbol is never used: "gMedPlayerSpawns" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Edit: And under OnPlayerUpdate (have tried earlier) it throws up this:
pawn Код:
E:\SA-MP Offical Server\gamemodes\B-RP.pwn(11468) : error 021: symbol already defined: "GetPlayerHealth" E:\SA-MP Offical Server\gamemodes\B-RP.pwn(11469) : error 010: invalid function or declaration E:\SA-MP Offical Server\gamemodes\B-RP.pwn(11471) : warning 218: old style prototypes used with optional semicolumns E:\SA-MP Offical Server\gamemodes\B-RP.pwn(11472) : error 010: invalid function or declaration E:\SA-MP Offical Server\gamemodes\B-RP.pwn(45421) : warning 203: symbol is never used: "gCopPlayerSpawns" E:\SA-MP Offical Server\gamemodes\B-RP.pwn(45421) : warning 203: symbol is never used: "gMedPlayerSpawns" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
|
did you read this?:
Quote:
Originally Posted by [HiC]TheKiller
f you are copy and pasting out of other scripts, don't do that, it ends up screwing up your code.
|
...
Quote:
Originally Posted by G4M3Ov3r
Put it under a command, if you wanna use em as a cmd
PHP код:
if(strcmp(cmdtext, "/command", true) == 0)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health <= 29)
{
ApplyAnimationEx(playerid, "CRACK", "crckdeth2", 4.0, 0, 1, 1, 1, 1);
return 1;
}
|
he want a auto crack animation when you reach a certain ammount of health,not a command.