Help me
#1

Hey Guys.
I have one problem :/

me problem is some errors
C:\Users\Greek\Desktop\Greek samp drifting\gamemodes\Gamemode.pwn(10791) : error 033: array must be indexed (variable "CaID")
C:\Users\Greek\Desktop\Greek samp drifting\gamemodes\Gamemode.pwn(10793) : error 033: array must be indexed (variable "ClanID")

code:

Код:
new file[256],IDfile[256];
format(file,sizeof(file),AccData,GetName(playerid));
new ClanID[256];
ClanID = strval(dini_Get(file,"CLAN ID"));

format(file,sizeof(IDfile),AccData,tName);
new CaID[256];
//format(CaID,256,"CLAN ID",dini_Get(IDfile,"CLAN ID"));
CaID = strval(dini_Get(IDfile,"CLAN ID"));
how to fix it this problem?
sorry for bad english.
thx for help.
Reply
#2

ClanID[] =
CaID[] =
Reply
#3

now i have this problems -_-

C:\Users\Greek\Desktop\Greek samp drifting\gamemodes\Gamemode.pwn(10785) : error 008: must be a constant expression; assumed zero
C:\Users\Greek\Desktop\Greek samp drifting\gamemodes\Gamemode.pwn(10789) : error 008: must be a constant expression; assumed zero


Код:
line 10785: new ClanID[] = strval(dini_Get(file,"CLAN ID"));
line 10789: new CaID[] = strval(dini_Get(IDfile,"CLAN ID"));
Reply
#4

aha
i find this problem

new ClanID;
ClanID = strval(dini_Get(file,"CLAN ID"));

new CaID;
CaID = strval(dini_Get(IDfile,"CLAN ID"));

thx for helping
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)