error 033: array must be indexed (variable
#4

Well I am not too sure about your code as I always have slight problems when reading from an unknown language but in case you are trying to add the number someone enters in the dialog box to "PlayerInfo[playerid][Banka]", simply do:

Код:
new stringk[128];
dini_IntSet(file,"Banka",strlen(inputtext)); // Why do you actually use strlen? Do you really want to use the length of inputtext?
format(stringk, sizeof stringk, "%d", strlen(inputtext));
PlayerInfo[playerid][Banka] +=strvalEx(stringk);
I'm pretty sure tho' that this code is not what you actually want.

Here's a different solution:

Код:
if(strvalEx(inputtext)>0){   // little check so no one enters negative numbers
   PlayerInfo[playerid][Banka]+=strvalEx(inputtext);
}
Reply


Messages In This Thread
error 033: array must be indexed (variable - by DarkPower - 15.05.2010, 13:54
Re: error 033: array must be indexed (variable - by juice.j - 15.05.2010, 13:56
Re: error 033: array must be indexed (variable - by DarkPower - 15.05.2010, 14:00
Re: error 033: array must be indexed (variable - by juice.j - 15.05.2010, 14:06
Re: error 033: array must be indexed (variable - by DarkPower - 15.05.2010, 14:08
Re: error 033: array must be indexed (variable - by juice.j - 15.05.2010, 14:17
Re: error 033: array must be indexed (variable - by DarkPower - 15.05.2010, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)