#1

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);

Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)