Y_Ini Error for loading a string.
#1

Error Help


Hello, I've recently tried to fix this problem, however, its really confused me therefore I have came here to request some help.

Код:
C:\Users\Death\Desktop\SA-MP custom script\BD-RP\gamemodes\myscript.pwn(4211) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Death\Desktop\SA-MP custom script\BD-RP\gamemodes\myscript.pwn(4211) : warning 215: expression has no effect
C:\Users\Death\Desktop\SA-MP custom script\BD-RP\gamemodes\myscript.pwn(4211) : error 001: expected token: ";", but found "]"
C:\Users\Death\Desktop\SA-MP custom script\BD-RP\gamemodes\myscript.pwn(4211) : error 029: invalid expression, assumed zero
C:\Users\Death\Desktop\SA-MP custom script\BD-RP\gamemodes\myscript.pwn(4211) : fatal error 107: too many error messages on one line
I'll give a bit off code as shown below:

pawn Код:
enum pInfo
{
    pColor,
    pAccent[70]
}

new PlayerInfo[MAX_PLAYERS][pInfo];// Stores the player data

//This is were the error occurs below on 'PlayerInfo[playerid][pAccent]
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Color",PlayerInfo[playerid][pColor]);
    INI_String("Accent",PlayerInfo[playerid][pAccent], sizeof(PlayerInfo[playerid][pAccent]));//Error line. :(
    return 1;
}
If I do it this way, I don't get no errors what so ever, so this is why its confused me

pawn Код:
new pAccent[70];

public LoadUser_data(playerid, name[], value[])
{
        INI_String("Accent",pAccent, sizeof(pAccent));
        return 1;
}
Please can someone point me in the correct direction were I have made my mistake. I'm not perfect, though I wish to be. I'd just like to know, I have searched SA-MP forums, but nothing really helped me.

Thank you for those who reply to this topic.

NOTE: I have copied this from my current script that I have been editing!
Reply


Messages In This Thread
Y_Ini Error for loading a string. - by Sledgehammer - 04.02.2014, 14:48
Re: Y_Ini Error for loading a string. - by PowerPC603 - 04.02.2014, 15:12
Re: Y_Ini Error for loading a string. - by Sledgehammer - 04.02.2014, 15:14
Re: Y_Ini Error for loading a string. - by PowerPC603 - 04.02.2014, 15:16
Re: Y_Ini Error for loading a string. - by Sledgehammer - 04.02.2014, 15:51
Re: Y_Ini Error for loading a string. - by PowerPC603 - 04.02.2014, 15:54
Re: Y_Ini Error for loading a string. - by Sledgehammer - 04.02.2014, 16:06
Re: Y_Ini Error for loading a string. - by Sledgehammer - 04.02.2014, 16:12
Re: Y_Ini Error for loading a string. - by MrTinder - 04.02.2014, 16:14
Re: Y_Ini Error for loading a string. - by Sledgehammer - 04.02.2014, 16:17

Forum Jump:


Users browsing this thread: 2 Guest(s)