Can someone help me convert this to ZCMD?
#3

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;
Reply


Messages In This Thread
Can someone help me convert this to ZCMD? - by 101 - 06.12.2012, 18:01
Re: Can someone help me convert this to ZCMD? - by LarzI - 06.12.2012, 19:15
Re: Can someone help me convert this to ZCMD? - by Konstantinos - 06.12.2012, 19:21
Re: Can someone help me convert this to ZCMD? - by LarzI - 06.12.2012, 19:27
Re: Can someone help me convert this to ZCMD? - by 101 - 06.12.2012, 22:01

Forum Jump:


Users browsing this thread: 1 Guest(s)