SA-MP Forums Archive
Help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help (/showthread.php?tid=69000)



Help - friped93 - 15.03.2009

Hello, I got an script error and i cant fix it please help

Error:
Quote:

C:\Documents and Settings\Filip\Skrivbord\Samp-Files\Samp servers\gamemodes\C.pwn(104) : error 033: array must be indexed (variable "old")

Code:
Quote:

new string[128],string2[128],old[128];
format(string, sizeof(string),"CreateObject(3862,%d,%d,%d,0,0,%d) ,",x,y,z,a);
format(old, 128, dini_Get(car,"cords"));
string2 = old + string;
dini_Set(car,"cords",string2);




Re: Help - Weirdosport - 15.03.2009

You can''t add strings as if they were numbers >.> You need to use strcat or format.

pawn Код:
format(string2, sizeof(string2), "%s %s", old, string);
Might help you