Hallo,
bekomme in als diese Errors in Zeile 11:
public CreateWantedLabel(playerid)
{
if(IsPlayerConnected(playerid))
{
new playername[MAX_PLAYER_NAME],
string[128];
GetPlayerName(playerid, playername, sizeof(playername));
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i) && IsACop(i) && OnDuty[i] == 1){
if(Maske[playerid] == 0){
if(WantedLabel[playerid][i] == 0){
format(string, sizeof(string), "%s( %d )\nWanted Level: %d\nGrund: %s\nDM-Rate: %0.2f", playername,playerid, PlayerInfo[playerid][pWantedLevel], PlayerCrime[playerid][pAccusedof],Float:PlayerInfo[playerid][psKills]/Float:PlayerInfo[playerid][pConnectTime]);
WantedLabel[playerid][i] = CreatePlayer3DTextLabel(i, string, COLOR_KNALLROT, 0.0, 0.0, 1.0, 50.0, playerid, INVALID_VEHICLE_ID,1);
}
else{
format(string, sizeof(string), "%s( %d )\nWanted Level: %d\nGrund: %s\nDM-Rate: %0.2f", playername,playerid, PlayerInfo[playerid][pWantedLevel], PlayerCrime[playerid][pAccusedof],Float:PlayerInfo[playerid][psKills]/Float:PlayerInfo[playerid][pConnectTime]);
UpdatePlayer3DTextLabelText(i, PlayerText3D:WantedLabel[playerid][i], COLOR_KNALLROT, string);
}
if(PlayerInfo[playerid][pWantedLevel] == 0){
DeletePlayer3DTextLabel(i, PlayerText3D:WantedLabel[playerid][i]);
WantedLabel[playerid][i] = -1;
}
}
else if(Maske[playerid] == 1){
DeletePlayer3DTextLabel(i, PlayerText3D:WantedLabel[playerid][i]);
WantedLabel[playerid][i] = -1;
}
}
}
}
return 1;
}
error 001: expected token: ")", but found "["
error 029: invalid expression, assumed zero
warning 215: expression has no effect
: error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line
Woran liegt das?