I have this code:
Code:
read_argv(3,arg3,31)
read_argv(4,arg4,31)
modelname = arg
x = str_to_num(arg2)
y = str_to_num(arg3)
z = str_to_num(arg4)
if(modelname == 0) {
return PLUGIN_HANDLED
}
server_cmd("amx_makecar %s %i %i %i",modelname, x, y, z)
return PLUGIN_HANDLED
}
It should work fine but it came up with the compiling error of:
makecar.sma<21 -- 22> : error 006:must be assigned to an array.
I have tried assigning it but i am new and don't know how to fix these problems if someone could get this into a compilable plugin that would be great!