Moin,
Ich brauche schnelle Hilfe bitte unzwar bekomme ich 2 Warnings
Folgende:
C:\DOKUME~1\Besitzer\Desktop\Jamal1\pawno\GAMEMO~1\script.pwn(3912) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\DOKUME~1\Besitzer\Desktop\Jamal1\pawno\GAMEMO~1\script.pwn(31943) : warning 219: local variable "pname" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 9896 bytes
Code size: 1616120 bytes
Data size: 3216744 bytes
Stack/heap size: 16384 bytes; estimated max. usage=8452 cells (33808 bytes)
Total requirements: 4859144 bytes
2 Warnings.
Hier die Zeilen:
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);
SendClientMessage(i, COLOR_LIGHTGREEN, string);
PlayerInfo[i][pTot] = 0;
pIstTot[i] = 0;// <3 den cmd
SetPlayerInterior(i,GetPlayerInterior(playerid));
SetPlayerPos(i,PlayerInfo[i][pTx],PlayerInfo[i][pTy],PlayerInfo[i][pTz]);
SetCameraBehindPlayer(i);
TogglePlayerControllable(i,1);
PlayerInfo[i][pTx] = 0.0;
PlayerInfo[i][pTy] = 0.0;
PlayerInfo[i][pTz] = 0.0;
new Float:tempheal;
GetPlayerHealth(i,tempheal);
SetPlayerHealth(i,15.0);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du bist kein Arzt!");
}
}
return 1;
}
new pname[MAX_PLAYER_NAME], sc[39 + MAX_PLAYER_NAME];
if(Desktop_Timer_Started[playerid] == 1) { KillTimer(Desktop_Timer[playerid]); }
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(sc, sizeof(sc), "** %s hat das Spiel verlassen (Time Out)", pname);
case 1: format(sc, sizeof(sc), "** %s hat das Spiel verlassen (Normal).", pname);
case 2: format(sc, sizeof(sc), "** %s wurde aus dem Spiel entfernt(Kicked/Banned).", pname);
}
SendClientMessageToAll(COLOR_GRAD1, sc);
DestroyObject(Sperre[playerid][0]);
DestroyObject(Sperre[playerid][1]);
DestroyObject(Sperre[playerid][2]);
DestroyObject(Sperre[playerid][3]);
DestroyObject(Sperre[playerid][4]);
Sperrebit[playerid]=0;
if(reason == 1)
{
Bitte helfen