Undefined symbols
#1

I got these 2 errors:
pawn Код:
C:\Users\Justas\Desktop\TestServer\gamemodes\freeroam2.pwn(69) : error 017: undefined symbol "name"
C:\Users\Justas\Desktop\TestServer\gamemodes\freeroam2.pwn(69) : error 017: undefined symbol "value"
And This is line 69:
pawn Код:
INI_Int("Registered:",PlayerInfo[playerid][PLAYER_REGGED]);
Please help
Reply
#2

bump,anyone?
Reply
#3

obviously you haven't or have done some mistakes while defining them, check the lines surrounding that area aswell.
Reply
#4

You defined name and value?
Reply
#5

these are my only defines associated with that problem:
pawn Код:
enum pInfo{
   playername[MAX_PLAYER_NAME],
   PLAYER_REGGED,
   PLAYER_LOGGED,
   PLAYER_PASS,
   PLAYER_ADMIN
}

new PlayerInfo[MAX_PLAYERS][pInfo];
Reply
#6

i got this OnPlayerConnect
pawn Код:
public OnPlayerConnect(playerid)
{
   
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    if(!fexist(user_ini_file(playerid)))
    {
        new INI:ini=INI_Open(user_ini_file(playerid));
        INI_WriteString(ini,"Name",name);
        INI_WriteString(ini,"Registered:","-1");
        INI_WriteString(ini,"Password:","");
        INI_WriteString(ini,"Admin:","-1");
        INI_WriteString(ini,"Logged in:","-1");
        INI_Close(ini);
    }
}
And this on the command that gives me the error:
pawn Код:
new pass[128];
    INI_Load(user_ini_file(playerid));
    INI_Int("Registered:",PlayerInfo[playerid][PLAYER_REGGED]);
    if(PlayerInfo[playerid][PLAYER_REGGED]==1) return SendClientMessage(playerid,0x00FF00FF,"You are already registered");
    if(sscanf(params,"s",pass))SendClientMessage(playerid,0x00FF00FF,"/register pass");
    else
    {
            new INI:ini=INI_Open(user_ini_file(playerid));
            INI_WriteString(ini,"Password:",pass);
            INI_RemoveEntry(ini,"Registered:");
            INI_WriteInt(ini,"Registered:",1);
            INI_Close(ini);
            PlayerInfo[playerid][PLAYER_REGGED]=1;
            PlayerInfo[playerid][PLAYER_LOGGED]=1;
            format(PlayerInfo[playerid][PLAYER_PASS],50,"%s",pass);

    }
    return 1;
Reply
#7

yes, a bit of your tutorial and a bit of some other....then they mix up in my head and i get that^

could you tell me the easiest way to fix MY script?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)