07.05.2013, 12:15
the "U("#playerid")",targetid is supposed to use the playerid as deafult value with no input. WITH an input, the targetid gets replaced by it. therefore the targetid is always the right one - the playerid only should be used to send a confirmation message to the command typer, and maybe an information for the reciever, if he is in a vehicle..
did you add some SendClientMessage with a formatted string to check if the player/targetid is properly set?
concerning your question about which player to send the message: use that check
did you add some SendClientMessage with a formatted string to check if the player/targetid is properly set?
concerning your question about which player to send the message: use that check
pawn Код:
if(playerid==targetid)
{
//same player
}
else
{
//different player
}