Hallo Breadfish
ich habe in großes problem ich habe mir ein medic system erstellen wenn man nur noch 10 hp hat am boden liegt und crackanimation kommt und dann muss ein sani kommen und /wiederbeleben machen aber bekomme errror finde denn fehler nicht und möchte auch das das sys funktioniert
hier die fehler und der code
C:\Users\BKA\Desktop\David\pawno\include\M_Bot.inc(393) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\pawno\include\M_Bot.inc(413) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(38) : error 010: invalid function or declaration
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(219) : error 020: invalid symbol name ""
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(226) : error 001: expected token: ";", but found "new"
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(6930) : error 001: expected token: "-identifier-", but found "("
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(6931) : error 010: invalid function or declaration
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(6933) : error 010: invalid function or declaration
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(6935) : error 010: invalid function or declaration
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(6938) : error 021: symbol already defined: "GetPlayerHealth"
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(6939) : error 010: invalid function or declaration
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(6941) : error 010: invalid function or declaration
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(9466) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(9894) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(10782) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(25222) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(31333) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(33756) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(33797) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(33834) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(35320) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(41049) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(41472) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(42708) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(45889) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(46360) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(47308) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(51638) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(54917) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(57370) : warning 203: symbol is never used: ""
C:\Users\BKA\Desktop\David\gamemodes\Release.pwn(57370) : warning 203: symbol is never used: "health"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
if (strcmp(cmd, "/wiederbeleben", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][pTot] == 1)
{
new pname[256];
GetPlayerName(i, pname, 256);
format(string, 256, "Du hast %s, wiederbelebt!",pname);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
GetPlayerName(playerid, pname, 256);
format(string, 256, "Arzt %s hat dich wiederbelebt!",pname);
PlayerInfo[playerid][pPayCheck] += 100;
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Du bekommst 100$ für den nächsten Zahltag gutgeschrieben");
SendClientMessage(i, COLOR_LIGHTGREEN, string);
PlayerInfo[i][pTot] = 0;
pIstTot[i] = 0;
SetCameraBehindPlayer(i);
DestroyPickup(TotenKopf[i][0]);
TogglePlayerControllable(i,1);
new Float:tempheal;
GetPlayerHealth(i,tempheal);
SetPlayerHealth(playerid,35.0);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du bist kein Sanitäter!");
}
}
return 1;
}
===========================================================================================================================================
// hier fehlt die timer bennenung das weis ich
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && (Medics > 0) )
{
if(gPlayerSpawned[i] == 1)
{
new Float:health;
GetPlayerHealth(i, health);
if(health < 15)
{
if(IsPlayerInAnyVehicle(i))
{
RemovePlayerFromVehicle(i);
ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer(i, "~r~Du bist schwer verletzt du brauchst einen Sanitaeter !", 5000, 3);
}
ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer(i, "~r~Du bist schwer verletzt du brauchst einen Sanitaeter !", 5000, 3);
}
}
}
wer mir helfen könnte denn code richtig anzupassen das wer klasse