error 033: array must be indexed (variable "savingstring") - 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: array must be indexed (variable "savingstring") (
/showthread.php?tid=482595)
error 033: array must be indexed (variable "savingstring") -
Brandon_More - 21.12.2013
pawn Код:
mysql_fetch_field_row(savingstring, "intVW");
savingstring=savingstring+100000; // I know it's this.. but how can I fix it :S
hq[i][vhq] = strval(savingstring);
This might be kiddy stuff for the big boys.. But I don't know shit about this.. :S Never experienced this error before.
Re: error 033: array must be indexed (variable "savingstring") -
xVIP3Rx - 21.12.2013
You can't do that on a string.. Change it to an integer then +/- What you want from it.
pawn Код:
mysql_fetch_field_row(savingstring, "intVW");
savingstring = savingstring+100000; // I know it's this.. but how can I fix it :S
new newnumber = strval(savingstring);
newnumber += 100000;
hq[i][vhq] = newnumber;
Re: error 033: array must be indexed (variable "savingstring") -
Brandon_More - 21.12.2013
Fixed it already, but thanks +REP