04.02.2014, 14:48
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
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;
}
pawn Код:
new pAccent[70];
public LoadUser_data(playerid, name[], value[])
{
INI_String("Accent",pAccent, sizeof(pAccent));
return 1;
}
Thank you for those who reply to this topic.
NOTE: I have copied this from my current script that I have been editing!