Defining help
#7

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:
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];
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
Reply


Messages In This Thread
Defining help - by Larry123 - 10.11.2012, 17:54
Re: Defining help - by Konstantinos - 10.11.2012, 18:01
Re: Defining help - by Larry123 - 10.11.2012, 18:09
Re: Defining help - by Larry123 - 10.11.2012, 19:05
Re: Defining help - by ViniBorn - 10.11.2012, 19:19
Re: Defining help - by Steven82 - 10.11.2012, 19:29
Re: Defining help - by Larry123 - 10.11.2012, 19:31
Re: Defining help - by Steven82 - 10.11.2012, 19:32
Re: Defining help - by Larry123 - 10.11.2012, 19:38
AW: Re: Defining help - by Nero_3D - 10.11.2012, 21:43

Forum Jump:


Users browsing this thread: 1 Guest(s)