31.08.2009, 00:04
Quote:
Originally Posted by [LRP
Sayaron ]
Change "i" to "playerid", it may work |
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]);
}
}
for (new i = 0; i < MAX_PLAYERS; i++); - That little guy at the end