Help me - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me (
/showthread.php?tid=571121)
Help me -
giorgosdim12 - 16.04.2015
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.
Re: Help me -
Azula - 16.04.2015
ClanID[] =
CaID[] =
Re: Help me -
giorgosdim12 - 16.04.2015
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"));
Re: Help me -
giorgosdim12 - 16.04.2015
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