Count
#2

you have to plus one participant then format the message also you have to put return 1; so it should look like:

PHP код:
new Participants;
CMD:arena(playeridparams[])
{
    new 
string[90];
    
InArena[playerid] = true;
    
Participants++;
    
format(string,sizeof(string),"[ARENA]: %s(%d) has joined The Arena  [%i Participants]",GetName(playerid), playeridParticipants);
    
SendClientMessageToAll(-1,string);
    return 
1;

edit: i dont think you should make arena Participants[MAX_PLAYERS] it should be a normal variable just new Participants because

Participants[MAX_PLAYERS] < one variable for each player so when they join each player variable will count the player itself not other players
Reply


Messages In This Thread
Count - by ISmokezU - 02.09.2016, 18:49
Re: Count - by lackmail - 02.09.2016, 18:58
Re: Count - by Misiur - 02.09.2016, 19:00
Re: Count - by ISmokezU - 02.09.2016, 19:30
Re: Count - by Vince - 02.09.2016, 19:43

Forum Jump:


Users browsing this thread: 1 Guest(s)