11.08.2011, 13:31
Hey guys,
Im trying to improve my vehicle spawner, but i got an error using sscanf.
Error line:
The variable "Vehicle" is from the sscanf line, which is:
Also, the "GetVehicleModelID is down here (not sure if you guys need it, but just in case):
And ofcourse, the error line:
Thanks!
Im trying to improve my vehicle spawner, but i got an error using sscanf.
Error line:
pawn Код:
new veh = GetVehicleModelID(Vehicle);
pawn Код:
if(!sscanf(params, "s[50]", Vehicle))
pawn Код:
stock GetVehicleModelID(vehiclename[])
{
for(new i = 0; i < 211; i++)
{
if(strfind(aVehicleNames[i], vehiclename, true) != -1)
return i + 400;
}
return -1;
}
pawn Код:
#:\#\#\VehicleSpawner.pwn(89) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.