Wenn ich InGame /wanted einegebe kommt Unknowed Command.
Warum?
ocmd:wanted(playerid,params[])
{
new count=0,iItem;
new string[MAX_PLAYER_NAME*MAX_PLAYERS];
for(new i; i != GetMaxPlayers(); i++)
{
if (IsPlayerConnected(i))
{
if(SpielerInfo[i][pWanted] > 0)
{
new dName[MAX_PLAYER_NAME];
GetPlayerName(i, dName, sizeof dName);
format(string,sizeof(string),"%s %d\n%s %d",SpielerName(i),GetPlayerWantedLevel(i));
item[playerid][iItem] = i;
iItem ++;
ShowPlayerDialog(i,DialogSubjects,DIALOG_STYLE_LIST,"Verbrecher Akte",string,"Ok","Abbrechen"); //OK Clearen beim anderen Dialog danach
count++;
return 1;
}
}
}
if (count == 0)
{
SendClientMessage(playerid, hellblau, "Niemand hat Wanteds!");
return 1;
}
return 1;
}
- Tom