error 033 rep for all helpers
#1

i have made something for offline players to give them -pot,i mean you write the amount and it gives him -amount,i made:
pawn Код:
new amount = strvalEx(tmp);
                        format(pot, sizeof(pot), "%s", dini_Get(targetname, "Pot"));
                dini_IntSet(targetname, "Pot", pot-amount);
and i get :
pawn Код:
error 033: array must be indexed (variable "pot")
and dont worry i defined pot,what to do?
giving rep for all helpers
Reply
#2

You are using pot as string then you are using it as a integer.
Reply
#3

new pot;

Should be:
new pot[ArraySize];

Like:
new pot[128];
Reply
#4

doesnt work,please guys come on,cant you help me?
Reply
#5

Anyone?
Reply
#6

show your code for
pawn Код:
new pot;
Reply
#7

pawn Код:
new amount = strvalEx(tmp);
         new pot[128];                
                        format(pot, sizeof(pot), "%s", dini_Get(targetname, "Pot"));
                dini_IntSet(targetname, "Pot", pot-amount);
Reply
#8

doesnt work,still the same error
Reply
#9

Show code before
pawn Код:
new amount = strvalEx(tmp);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)