17.01.2015, 12:55
I am pretty sure the line off error is this -
As you have used optional specifier in sscanf that means possible inputs could be like these :
Now you see first condition is ok but if user enters other two then that will cause a major problem
If u have vehicle model already then why use GetVehicleModelIdFromName(params)..
So use this line -
Note : you have used this line at two places so replace the line with line i gave in both two places
pawn Код:
format(msg, sizeof(msg), "~g~>> ~r~You have spawned ~g~%s", VehicleNames[GetVehicleModelIdFromName(params) - 400]);
Quote:
/v sultan [params = "sultan"] /v sultan 154 [params = "sultan 154"] /v sultan 154 31 [params = "sultan 154 31"] |
If u have vehicle model already then why use GetVehicleModelIdFromName(params)..
So use this line -
Quote:
format(msg, sizeof(msg), "~g~>> ~r~You have spawned ~g~%s", VehicleNames[VehicleID - 400]); |