Get Error on An admin system
#1

I get this error

Код:
C:\Users\Jonny\SAMP\filterscripts\EasyReg.pwn(247) : error 017: undefined symbol "GetPlayerLevel"
C:\Users\Jonny\SAMP\filterscripts\EasyReg.pwn(1052) : error 017: undefined symbol "SetPlayerLevel"
level is the admin level in the script i edited heres the script

EasyReg.zip
Reply
#2

Put this on the top of your script
pawn Код:
stock SetPlayerLevel(playerid, Level)
{
    PlayerInfo[playerid][Level] = Level;
    return 1;
}

stock GetPlayerLevel(playerid)
{
    new Level = PlayerInfo[playerid][Level];
    return Level;
}
Reply
#3

now i get
Код:
C:\Users\Jonny\SAMP\filterscripts\EasyReg.pwn(145) : warning 219: local variable "Level" shadows a variable at a preceding level
C:\Users\Jonny\SAMP\filterscripts\EasyReg.pwn(145) : warning 203: symbol is never used: "Level"
C:\Users\Jonny\SAMP\filterscripts\EasyReg.pwn(145 -- 153) : warning 219: local variable "Level" shadows a variable at a preceding level
C:\Users\Jonny\SAMP\filterscripts\EasyReg.pwn(153) : warning 204: symbol is assigned a value that is never used: "Level"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Reply
#4

My fault. Sorry. Try this:
pawn Код:
stock SetPlayerLevel(playerid, lLevel)
{
    PlayerInfo[playerid][Level] = lLevel;
    return 1;
}

stock GetPlayerLevel(playerid)
{
    return PlayerInfo[playerid][Level];
}
Reply
#5

thanks now my admin system works
Reply
#6

No Problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)