[SOLVED] /veh command with vehiclename or vehid in dcmd (from strcmp to dcmd)
#6

when I c&p:

C:\gta\gamemodes\beta.pwn(870) : error 008: must be a constant expression; assumed zero
C:\gta\gamemodes\beta.pwn(884) : error 035: argument type mismatch (argument 1)
C:\gta\gamemodes\beta.pwn(887) : error 033: array must be indexed (variable "vehid")

on lines:
new vehid[56] = GetVehicleModelIDFromName(params);
new v = CreateVehicle(vehid, x, y, z, a+90, -1, -1, 0);
format(string, sizeof(string), "Car with id %s has been spawned", aVehicleNames[vehid - 400]);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)