Hier der Code
if(strcmp(cmd, "/givesfpass", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, 0xFFFFFFFF, "Du hast nicht die Rechte!");
new pID,sendername[MAX_PLAYER_NAME],giveplayer[MAX_PLAYER_NAME];
if(sscanf(params,"u",pID))return SendClientMessage(playerid,-1," /givesfpass [playerid / Name]");
if(IsPlayerConnected(pID))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(pID, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "Sie haben %s den Führerschein gegeben.",pID);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "Admin %s hat ihnen den Führerschein gegeben.",sendername);
SendClientMessage(giveplayerid, -1, string);
PlayerInfo[pID][pSFPass] = 1;
return 1;
}
return 1;
}
Der Fehler:
ZitatAlles anzeigenC:\Users\smail\Desktop\LG\German-Elite-Reallife\gamemodes\hd.pwn(29848) : warning 204: symbol is assigned a value that is never used: "para1"
C:\Users\smail\Desktop\LG\German-Elite-Reallife\gamemodes\hd.pwn(35142) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\smail\Desktop\LG\German-Elite-Reallife\gamemodes\hd.pwn(35142) : warning 219: local variable "giveplayer" shadows a variable at a preceding level
C:\Users\smail\Desktop\LG\German-Elite-Reallife\gamemodes\hd.pwn(35143) : error 017: undefined symbol "params"
C:\Users\smail\Desktop\LG\German-Elite-Reallife\gamemodes\hd.pwn(50114) : warning 219: local variable "GetName" shadows a variable at a preceding level
C:\Users\smail\Desktop\LG\German-Elite-Reallife\gamemodes\hd.pwn(51901) : warning 203: symbol is never used: "LightsStatus"
C:\Users\smail\Desktop\LG\German-Elite-Reallife\gamemodes\hd.pwn(51901) : warning 203: symbol is never used: "M_OnPlayerUpdate"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.