witam niby śmieszny problem ale jakoś odpowiedzi nie mogę nigdzie znaleźć
otóż mam skrypt który przyjmuje 3 argumenty pisze go jak bym to robił w gm8 jednak gdy go wywołuje kompilator mówi ze funkcja jest napisana na jeden argument a nie 3
w c++ bym zdefiniował to w nazwie skryptu jak: typ nazwa_funkcji(typ argumet, typ argument, itp itd)
ale jak to zrobić w studio?
level_load:
with all
if (object_index!=obj_main)
instance_destroy()
global.loadscr=0
if !is_string(argument0)
{
script_execute("lev_"+string(argument0)+"_"+string(argument1)+"_"+string(argument2)+"();")
}
else if argument0="vagon"
{
global.starttype=-1
lev_vagon()
}
scr_mainobj()
instance_create(0,0,obj_d3d_light)
global.loadscr=0
wywołanie:
level_load(global.levelx,global.levely,global.levelz)