10.04.2013, 17:00
(
Последний раз редактировалось Riddick94; 10.04.2013 в 17:39.
)
Quote:
Why get the name and than find the id if he already passes the id ?
pawn Код:
|
Код:
Wybrałeś "Your_name" (your_id)!
pawn Код:
case 32767:
{
if(!response)return false;
else
{
inputtext[strfind(inputtext, ")", true) != -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)!", PlayerName(giveplayerid), giveplayerid);
SendClientMessage(playerid, -1, string);
}
}
pawn Код:
format(string, sizeof(string), "%s%d\t%s\n", string, i, PlayerName(i));
Fixed a message with "Wybrałeś ( (0)!" but still.. problem occurs with players list. When I am ID: 0 and I'm trying to choose player from list (1st player) it says "Wybrałeś Your_Nick (your_id)!" and "your_name (your_id) wybrał właśnie Ciebie!"