06.12.2012, 19:21
Let me explain me what your mistake was. You have a custom function "GetVehicleModelFromName" that it has input a string and convert the name of the vehicle to the id and it returns also that id. It is expecting to find a string, although you used id as an integer and BOOM, the error appear. The solution is what LarzI said! However, don't forget to change the parameters on the sscanf too.
pawn Код:
new
id[ 32 ]
;
if(sscanf(params, "s[32]", id)) return // continue;