error 033: array must be indexed (variable "savingstring")
#1

pawn Код:
new savingstring[20];
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.
Reply
#2

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;
Reply
#3

Fixed it already, but thanks +REP
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)