if..getting correct id...getplayername
#7

In `for` spaces(" ") are important, i guess.
Quote:

Winner should be only one

If you want only one winner just add `break` at the end.
That should work:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
        {
        if(IsPlayerInAnyVehicle(i)) // also with i
            {
             new uzvaretajs[24], string[64];
            format(string,sizeof(string),"%d",i);
            SendClientMessageToAll(COLOR_RED,string);
            GetPlayerName(i, uzvaretajs, sizeof(uzvaretajs));
            format(string,sizeof(string),"%s",uzvaretajs);
            SendClientMessageToAll(COLOR_RED,string);
           //  break;
            }
        }
Reply


Messages In This Thread
if..getting correct id...getplayername - by SaW_[VrTx] - 19.05.2011, 18:57
Re: if..getting correct id...getplayername - by Macluawn - 19.05.2011, 20:28
Re: if..getting correct id...getplayername - by SaW_[VrTx] - 19.05.2011, 20:33
Re: if..getting correct id...getplayername - by Macluawn - 19.05.2011, 23:08
Re: if..getting correct id...getplayername - by Vince - 20.05.2011, 07:04
Re: if..getting correct id...getplayername - by SaW_[VrTx] - 20.05.2011, 10:51
Re: if..getting correct id...getplayername - by GaGlets(R) - 20.05.2011, 13:16
Re: if..getting correct id...getplayername - by RyDeR` - 20.05.2011, 14:51
Re: if..getting correct id...getplayername - by SaW_[VrTx] - 20.05.2011, 18:49
Re: if..getting correct id...getplayername - by SaW_[VrTx] - 21.05.2011, 13:19

Forum Jump:


Users browsing this thread: 1 Guest(s)