Count
#4

Quote:
Originally Posted by lackmail
Посмотреть сообщение
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
Thanks.

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Also your InArena is a char array, you must use {} to access it:
pawn Код:
InArena{playerid} = true;
I use that way alot in my script should i change it? also what would happen if i use it with [ instead of {
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: 2 Guest(s)