SA-MP Forums Archive
[HELP] WANT TO GET ALL OF PLAYERS' NAME - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] WANT TO GET ALL OF PLAYERS' NAME (/showthread.php?tid=172758)



[HELP] WANT TO GET ALL OF PLAYERS' NAME - RoCK'N'Rolla - 31.08.2010

Hi there,

I have a clanwar script, so the script will get player's name first, and will give the player a new name like "_INCW_RockNRolla". After the clanwar got finished, It will change my name to "RockNRoll" back. But sometimes namex can be mixed each other. I need something like:

new pName[MAX_PLAYER_NAME][MAX_PLAYERS];

Does it correct? or how can i provide this? Help please.


Re: [HELP] WANT TO GET ALL OF PLAYERS' NAME - Grim_ - 31.08.2010

new pName[MAX_PLAYERS][MAX_PLAYER_NAME];

[This forum requires that you wait 120 seconds between posts. Please try again in 38 seconds.] - Loads a gun. Cocks the gun. Aims it at his head. Pulls the trigger. (And still 12 seconds left :@!)


Re: [HELP] WANT TO GET ALL OF PLAYERS' NAME - RoCK'N'Rolla - 31.08.2010

what? O:


Re: [HELP] WANT TO GET ALL OF PLAYERS' NAME - Grim_ - 31.08.2010

pawn Код:
new pName[MAX_PLAYERS][MAX_PLAYER_NAME];

// somewhere
for(new i = 0; i < MAX_PLAYERS; i++)
{
   if(!IsPlayerConnected(i)) continue;
   GetPlayerName(i, pName[i], MAX_PLAYER_NAME);
}
Untested.


Re: [HELP] WANT TO GET ALL OF PLAYERS' NAME - RoCK'N'Rolla - 31.08.2010

thanks. (I HATE ANTI SPAM POST, TOO!!)


Re: [HELP] WANT TO GET ALL OF PLAYERS' NAME - Grim_ - 31.08.2010

Nice to see!

Maybe we can make a colt !

[This forum requires that you wait 120 seconds between posts. Please try again in 72 seconds.] - Lol..


Re: [HELP] WANT TO GET ALL OF PLAYERS' NAME - RoCK'N'Rolla - 31.08.2010

Yeah, maybe we can