10.04.2013, 16:38
Why get the name and than find the id if he already passes the id ?
pawn Код:
case 32767: {
if(!response)return false;
inputtext[strfind(inputtext, ")", 1)] = EOS;
new
string[128],
giveplayerid = strval(inputtext[1])
;
format(string, sizeof(string), "%s (%d) wybrał właśnie Ciebie!", PlayerName(playerid), playerid);
SendClientMessage(giveplayerid , -1, string);
format(string, sizeof(string), "Wybrałeś %s (%d)!", inputtext, giveplayerid);
SendClientMessage(playerid, -1, string);
}