error 017 - Symbol 'Player' is not defined
#1

Hello, it seems when I try to add -this- peice of code:

pawn Код:
format(Player[playerid][Ip],16,"%s",GetIP(playerid));
It shows this error code:

pawn Код:
error 017: undefined symbol "Player"
I have this enumeration:

pawn Код:
enum PlayerStatsEnum
{
    Username[24],
    Password[129],
    Ip[16],
    Money,
    BankSavings,
    Level,
    AdminLvl,
    Faction,
    FactionLevel,
    Birthday,
    Birthyear,
    Birthmonth,
    SpawnPoint,
    TutorialComplete,
    Accent[12],
    Experience,
    Kills,
    Deaths,
    ClothingSlot1,
    ClothingSlot2,
    ClothingSlot3,
    CarLicense,
    TruckLicense,
    MBLicense,
    Cell,
    CellNum,
    CarKey1,
    CarKey2,
    CarKey3,
    CarKey4,
    CarKey5,
    CarKey6,
    JailT,
    AjailT,
    FineTimes,
    ArrestTimes
}
And this variable for defining the 'Player':

pawn Код:
new Player[MAX_PLAYERS][PlayerStatsEnum];
Any ideas?
Reply
#2

Have you "new Player[MAX_PLAYERS][PlayerStatsEnum];" under the includes/defines and above the publics ?
Reply
#3

I deleted the script accidently so I will do that in future, thanks anyways
Reply
#4

You asked the question 2 - 3 Hours ago...
Reply
#5

Indeed, but whilst wiping my desktop the server was on it.

It's fixed now that I've re-scripted it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)