Need help... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help... (
/showthread.php?tid=375486)
Need help... -
Smokkr - 07.09.2012
Hey guys how to fix this errors?

Line 62
pawn Код:
if(PlayerInfo[playerid][pVIP] > 1)
What I must do to fix this error?Please help.
Re: Need help... -
kbalor - 07.09.2012
On top of your gamemode/filterscript
Код:
new PlayerInfo[MAX_PLAYERS];
Are you using Admin/Vip filterscript? or Did you made it in your own?
EDIT: RedJohn should take care of you
Re: Need help... -
RedJohn - 07.09.2012
Can you show us your enums? I think you are missing this:
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
But show us your enums please!
Re: Need help... -
rumen98 - 07.09.2012
Quote:
Originally Posted by Smokkr
Hey guys how to fix this errors?

Line 62
pawn Код:
if(PlayerInfo[playerid][pVIP] > 1)
What I must do to fix this error?Please help.
|
I do not know but I think it must be so
PHP код:
if(PlayerInfo[playerid][pVIP] > 1)
{
//Your Code
} else {
SendClientMessage(playerid, COLOR_RED, "[ERROR:] The Error!");
}
Re: Need help... -
RedJohn - 07.09.2012
Are you fucking kidding me?
Re: Need help... -
doreto - 07.09.2012
pawn Код:
if(PlayerInfo[playerid][pVIP] > 1)
How you will use something that pawn didnt know it you must define it first so compiler know what is and for what
Re: Need help... -
kbalor - 07.09.2012
Sorry double post.
Re: Need help... -
RedJohn - 07.09.2012
Yes, i told him that. I'm just waiting to see enums.
Re: Need help... -
kbalor - 07.09.2012
Omg please
Something like this
Код:
enum PlayerData
{
Registered,
LoggedIn,
pVip,
Level,
Muted,
SpamCount,
MaxAdv,
#if EnableTwoRcon == true
MaxRcon,
#endif
SpamTime,
Caps,
Kills,
Deaths,
Spawned,
TimesSpawned,
hours,
mins,
secs,
MuteWarnings,
Warnings,
TotalTime,
ConnectTime,
pColour,
pCar,
DoorsLocked,
Frozen,
FreezeTime,
PingTime,
PingCount,
pPing[PING_MAX_EXCEEDS],
BotPing,
Hide,
OnDuty,
Jailed,
JailTime,
blipS,
blip,
SpecType,
SpecID,
FailLogin,
bool:AllowedIn,
pCaged,
pInvis,
pCageTime,
pGps,
NoQuestion,
#if EnableCamHack == true
InCamMod,
LockedCam,
#endif
pSecondScore,
};
Re : Need help... -
ricardo178 - 07.09.2012
Show the whole code/command code of this part. It might be a simple lack/mixed ';'..