Problem in a command
#1

Not correctly the command works, what here isn't correct?

Код:
if(listitem == 3)
{
new
wanted[255],
giveplayerid,

unClickNamePlayer[40], 
ClickNamePlayer[40];
 
 	
GetPlayerName(playerid,unClickNamePlayer,sizeof(unClickNamePlayer));
GetPlayerName(ClickPlayer[playerid],ClickNamePlayer,sizeof(ClickNamePlayer));
	
if(IsSpawned[giveplayerid] == 0) return SendClientMessage(playerid,COLOR_ORANGE,"Этот игрок мертв!");
format(wanted,sizeof(wanted),"The list of infringements of the player - %s (ID: %d):",unClickNamePlayer,playerid, ClickNamePlayer, ClickPlayer); //
SendClientMessage(playerid,COLOR_PM,wanted);
	
if(GetPlayerWantedLevel(giveplayerid) >= 1)
{
if(crime_murder[giveplayerid] == 1) SendClientMessage(playerid,COLOR_WHITE,"Убийство");
if(crime_rob[giveplayerid] == 1) SendClientMessage(playerid,COLOR_WHITE,"Ограбление игрока");
if(crime_bankrob[giveplayerid] == 1) SendClientMessage(playerid,COLOR_WHITE,"Ограбление банка");
if(crime_theft[giveplayerid] == 1) SendClientMessage(playerid,COLOR_WHITE,"Угон полицейского авто");
format(wanted,sizeof(wanted),"* Search level: %d.",GetPlayerWantedLevel(giveplayerid),     unClickNamePlayer, playerid, ClickNamePlayer, ClickPlayer);
SendClientMessage(playerid,COLOR_YELLOW,wanted);
}
else
{
if(GetPlayerWantedLevel(giveplayerid) >= 0)
{
SendClientMessage(playerid,COLOR_WHITE,"There are no infringements.");
}
}
}
return 1;
}
Reply
#2

Would you mind Post the Errors/Warnings, or what it does?
Reply
#3

Error not is define giveplayerid in dialog
Reply
#4

Doesn't show ID number
Doesn't show how many search
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)