playerid in timer
#1

Hello I have script like this:

Код:
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;
}
I want to know how to get playername by id because now it says that undefined symbol playerid. When I do it with this:
Код:
for(new i;MAX_PLAYERS>i;i++)
{
Then it shows the string that many times as players in server. I need only to show only one player action
Reply


Messages In This Thread
playerid in timer - by Yako - 19.02.2013, 18:15
Re: playerid in timer - by MP2 - 19.02.2013, 18:16
Re: playerid in timer - by DaRk_RaiN - 19.02.2013, 18:23
Re: playerid in timer - by Yako - 20.02.2013, 05:05

Forum Jump:


Users browsing this thread: 3 Guest(s)