19.02.2013, 18:15
Hello I have script like this:
I want to know how to get playername by id because now it says that undefined symbol playerid. When I do it with this:
Then it shows the string that many times as players in server. I need only to show only one player action
Код:
forward Something() public Something() { new name[25]; new string[128]; switch(random(5)) { case 0: name = "xxx"; case 1: name = "xxx"; case 2: name = "xxx"; case 3: name = "xxx"; case 4: name = "xxx"; } format(string,sizeof(string),"* %s just did %s",GetPlayerNameEx(playerid),name); ProxDetector(10.0, playerid, string, COLOR_GREEN, COLOR_GREEN, COLOR_GREEN, COLOR_GREEN, COLOR_GREEN); return 1; }
Код:
for(new i;MAX_PLAYERS>i;i++) {