#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++)
{
new FCWantedOne = GetPlayerWantedLevel(i);
{
FightClubWantedLevel[i] = FCWantedOne;
}
}
}
// And this is for the exit:
public WantedLevelFightClubExit()
{
for (new i = 0; i < MAX_PLAYERS; i++);
{
new FCWanted = FightClubWantedLevel[i];
{
SetPlayerWantedLevel(i, FCWanted);
}
}
}
C:\Users\Gamer\Desktop\Stuff\FlightClubWantedLevel.pwn(21) : error 036: empty statement C:\Users\Gamer\Desktop\Stuff\FlightClubWantedLevel.pwn(23) : error 017: undefined symbol "i" C:\Users\Gamer\Desktop\Stuff\FlightClubWantedLevel.pwn(25) : error 017: undefined symbol "i" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
forward WantedLevelFightClub(playerid);
forward WantedLevelFightClubExit(playerid);
new FightClubWantedLevel[MAX_PLAYERS];
public WantedLevelFightClub(playerid)
{
new FCWantedOne = GetPlayerWantedLevel(playerid);
FightClubWantedLevel[playerid] = FCWantedOne;
}
public WantedLevelFightClubExit(playerid)
{
new FCWanted = FightClubWantedLevel[playerid];
SetPlayerWantedLevel(playerid, FCWanted);
}
|
Originally Posted by [LRP
Sayaron ]
Change "i" to "playerid", it may work |
#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++);
for (new i = 0; i < MAX_PLAYERS; i++)
Thank you so much! And I'm just clarifying this have someone's wanted level recorded to FightClubWantedLevel when they enter the fight club and when they leave, their wanted level will be set back to what it was when they entered?
|
Originally Posted by ► © The LuxurioN™
So small! 0o
![]() |