if..getting correct id...getplayername
#8

Quote:
Originally Posted by GaGlets®
Посмотреть сообщение
In `for` spaces(" ") are important, i guess.
No.

pawn Код:
for(new i; i < MAX_PLAYERS; ++i)
{
    if(IsPlayerInVehicle(i, vehicleid))
    {
        new
            string[64]
        ;
        GetPlayerName(i, string, MAX_PLAYER_NAME);
        format(string, sizeof(string), "Winner %s (ID: %d)", string, i);
        SendClientMessageToAll(COLOR_RED, string);
        break;
    }
}
Try it like this. (Don't forget to replace the vehicleid with the vehicleid the player has to in to win)
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)