for(new i;i<MAX_PLAYERS;i++){
#1

Hello. I am making a world event command, and I am making it so a bridge will fall appart, and LSFMD and News Faction will be notified. This is part of my command:

pawn Код:
for(new i;i<MAX_PLAYERS;i++)
    {
        if(strval(params) == 1)
        {
            /* Broken Bridge */
            RemoveBuildingForPlayer(i, 3991, 1608.1953, -1721.8047, 26.0000, 0.25);
            RemoveBuildingForPlayer(i, 4043, 1608.1953, -1721.8047, 26.0000, 0.25);
However, it only removes the bridge for player id 0.

What's wrong?
Reply


Messages In This Thread
for(new i;i<MAX_PLAYERS;i++){ - by Why - 22.09.2012, 16:58
Re: for(new i;i<MAX_PLAYERS;i++){ - by Vince - 22.09.2012, 17:07
Re: for(new i;i<MAX_PLAYERS;i++){ - by [MG]Dimi - 22.09.2012, 17:08
Re: for(new i;i<MAX_PLAYERS;i++){ - by Why - 22.09.2012, 21:29

Forum Jump:


Users browsing this thread: 2 Guest(s)