31.08.2011, 13:41
hi, i creating carshop and created somethin stuck with this:
how to make it: with same CMD change cars now its many CMD like this:
how to do that /pirmyn change first in vehic[1] then if you write /pirmyn again it change car in : vehic[2]
Can anyone help me
how to make it: with same CMD change cars now its many CMD like this:
Code:
if(!strcmp(cmdtext, "/pirmyn", true,17)) { DestroyVehicle(vehic[0]); vehic[1] = CreateVehicle(401,-1954.6177,260.2105,35.5101,33.9648,0,0,-1); return 1; } if(!strcmp(cmdtext, "/pirmyn2", true,17)) { DestroyVehicle(vehic[1]); vehic[2] = CreateVehicle(402,-1954.6177,260.2105,35.5101,33.9648,0,0,-1); return 1; }
Can anyone help me