error 033 rep for all helpers - 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: error 033 rep for all helpers (
/showthread.php?tid=508366)
error 033 rep for all helpers -
iBots - 21.04.2014
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
Re: error 033 rep for all helpers -
awsomedude - 21.04.2014
You are using pot as string then you are using it as a integer.
Re: error 033 rep for all helpers -
SkittlesAreFalling - 21.04.2014
new pot;
Should be:
new pot[ArraySize];
Like:
new pot[128];
Re: error 033 rep for all helpers -
iBots - 21.04.2014
doesnt work,please guys come on,cant you help me?
Re: error 033 rep for all helpers -
iBots - 21.04.2014
Anyone?
Re: error 033 rep for all helpers -
Mattakil - 21.04.2014
show your code for
Re: error 033 rep for all helpers -
Affan - 22.04.2014
pawn Код:
new amount = strvalEx(tmp);
new pot[128];
format(pot, sizeof(pot), "%s", dini_Get(targetname, "Pot"));
dini_IntSet(targetname, "Pot", pot-amount);
Re: error 033 rep for all helpers -
iBots - 22.04.2014
doesnt work,still the same error
Re: error 033 rep for all helpers -
RenovanZ - 22.04.2014
Show code before
pawn Код:
new amount = strvalEx(tmp);