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


Messages In This Thread
Problem in a command - by Roma555 - 25.09.2010, 02:42
Re: Problem in a command - by Bcklup - 25.09.2010, 04:44
Re: Problem in a command - by ipsBruno - 25.09.2010, 04:53
Re: Problem in a command - by Roma555 - 25.09.2010, 13:18

Forum Jump:


Users browsing this thread: 1 Guest(s)