hi
habe dieses problem als ich bei meinem scrip den wanted befehl nicht nur für die cops sondern auch für die armee freigegeb wollte
D:\Datenablage\Users\Ronny\Games\modded games\Reallife\gamemodes\reallife.pwn(2150) : warning 202: number of arguments does not match definition
D:\Datenablage\Users\Ronny\Games\modded games\Reallife\gamemodes\reallife.pwn(2604) : warning 219: local variable "waffe" shadows a variable at a preceding level
D:\Datenablage\Users\Ronny\Games\modded games\Reallife\gamemodes\reallife.pwn(6924) : error 001: expected token: ")", but found "-identifier-"
D:\Datenablage\Users\Ronny\Games\modded games\Reallife\gamemodes\reallife.pwn(6924) : warning 215: expression has no effect
D:\Datenablage\Users\Ronny\Games\modded games\Reallife\gamemodes\reallife.pwn(6924) : error 001: expected token: ";", but found "]"
D:\Datenablage\Users\Ronny\Games\modded games\Reallife\gamemodes\reallife.pwn(6924) : error 029: invalid expression, assumed zero
D:\Datenablage\Users\Ronny\Games\modded games\Reallife\gamemodes\reallife.pwn(6924) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
dcmd_uwanteds(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid]pTeam]==tCop)||(PlayerInfo[playerid]==tArmee)
{
SendClientMessage(playerid,cRed,"Du bist kein Mitglied des Lost Heaven Police Departement");
return 1;
}
new sendstr[30];
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[i][pWanted]!=0)
{
DeletePlayer3DTextLabel(playerid,WantedLabel[playerid][i]);
format(sendstr,sizeof sendstr,"%d Wanteds",PlayerInfo[i][pWanted]);
WantedLabel[playerid][i]=CreatePlayer3DTextLabel(playerid,sendstr,cYellow,0.0,0.0,0.0,30.0,i,INVALID_VEHICLE_ID,1);
}
}
return 1;
}
dcmd_wanted(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][pTeam] != tCop)
{
SendClientMessage(playerid,cRed,"Du bist kein Mitglied des Lost Heaven Police Departement");
return 1;
}
new sendstr[128],name[MAX_PLAYER_NAME];
SendClientMessage(playerid,cWhite,"-----[Gesuchte]-----");
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[i][pWanted]>0)
{
GetPlayerName(i,name,sizeof name);
format(sendstr,sizeof sendstr,"%s (%d)",name,PlayerInfo[i][pWanted]);
SendClientMessage(playerid,cGrey,sendstr);
}
}
return 1;
}
wenn ich die armee weg nehme geht alles ganz normal
hoffe jemand kann mir helfen