Problem With Script
#6

Quote:
Originally Posted by [LRP
Sayaron ]
Change "i" to "playerid", it may work
That wouldn't change a thing.

pawn Код:
#include <a_samp>

forward WantedLevelFightClub();
forward WantedLevelFightClubExit();
// This is for the entrance to the Fight Club:
new FightClubWantedLevel[MAX_PLAYERS];

public WantedLevelFightClub()
{
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        FightClubWantedLevel[i] = GetPlayerWantedLevel(i);
    }
}

// And this is for the exit:
public WantedLevelFightClubExit()
{
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        SetPlayerWantedLevel(i, FightClubWantedLevel[i]);
    }
}
There's a working, shorter version of your code. And the problem was in your second loop.

for (new i = 0; i < MAX_PLAYERS; i++); - That little guy at the end
Reply


Messages In This Thread
Problem With Script - by jeff223 - 30.08.2009, 22:39
Re: Problem With Script - by jeff223 - 30.08.2009, 23:53
Re: Problem With Script - by LuxurioN™ - 30.08.2009, 23:59
Re: Problem With Script - by Sayaron - 31.08.2009, 00:01
Re: Problem With Script - by LuxurioN™ - 31.08.2009, 00:03
Re: Problem With Script - by Backwardsman97 - 31.08.2009, 00:04
Re: Problem With Script - by LuxurioN™ - 31.08.2009, 00:09
Re: Problem With Script - by jeff223 - 31.08.2009, 00:19
Re: Problem With Script - by Backwardsman97 - 31.08.2009, 00:32
Re: Problem With Script - by noobasaurus - 31.08.2009, 00:53

Forum Jump:


Users browsing this thread: 3 Guest(s)