03.12.2011, 06:12
(
Last edited by PlayHard; 03/12/2011 at 08:23 AM.
)
Oh, thanks a lot man. I am going to use the vehicle spawner .
EDIT: For those who have the 2 errors ( IsNumeric and GetVehicleModelIDFromName ) here are the fixes, put them above CMD:v.
EDIT: For those who have the 2 errors ( IsNumeric and GetVehicleModelIDFromName ) here are the fixes, put them above CMD:v.
pawn Code:
stock GetVehicleModelIDFromName(const vname[])
{
for(new i=0; i < sizeof(VehicleNames); i++)
{
if (strfind(VehicleNames[i], vname, true) != -1) return i + 400;
}
return -1;
}
stock IsNumeric(const string[])
{
for (new i = 0, j = strlen(string); i < j; i++)
{
if (string[i] > '9' || string[i] < '0') return 0;
}
return 1;
}