10.11.2012, 19:31
I`m going to use it like this:
PlayerInfo[playerid][ContactName][0] = "My0Contact";
PlayerInfo[playerid][ContactName][1] = "My1Contact";
PlayerInfo[playerid][ContactNumber[0] = 3555;
PlayerInfo[playerid][ContactNumber[1] = 43267;
But the problem is in definition.
They are defined like this:
But in definition i get this errors:
C:\Users\...\Desktop\samp03e_svr_R2_win32\gamemode s\...(386) : error 001: expected token: "}", but found "["
C:\Users\...\Desktop\samp03e_svr_R2_win32\gamemode s\...(387) : error 010: invalid function or declaration
// EDIT
Testing again
PlayerInfo[playerid][ContactName][0] = "My0Contact";
PlayerInfo[playerid][ContactName][1] = "My1Contact";
PlayerInfo[playerid][ContactNumber[0] = 3555;
PlayerInfo[playerid][ContactNumber[1] = 43267;
But the problem is in definition.
They are defined like this:
Code:
enum pInfo { ContactNumber[15], // 15 int variables made ContactName[30][15], // 15 string variables, (30 is lenght of string) but.. i get error(This is line 386) }; //Line 387 new PlayerInfo[50][pInfo];
C:\Users\...\Desktop\samp03e_svr_R2_win32\gamemode s\...(386) : error 001: expected token: "}", but found "["
C:\Users\...\Desktop\samp03e_svr_R2_win32\gamemode s\...(387) : error 010: invalid function or declaration
// EDIT
Testing again