Need Help With Car Spawner - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need Help With Car Spawner (
/showthread.php?tid=134572)
Need Help With Car Spawner - Micko9 - 16.03.2010
This is what i got...
Код:
dcmd_spawncar(playerid, params[]) {
new car=strval(params);
car = GetVehicleModelIDFromName(strval(params));
if(car < 400 || car > 611) return SendClientMessage(playerid, red, "ERROR: Invalid Vehicle Model");
return 1;
}
tells me this problem :
Код:
**Location Of Mah Script : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Re: Need Help With Car Spawner -
aircombat - 16.03.2010
Код:
dcmd_spawncar(playerid, params[]) {
new car=strval(params);
car = GetVehicleModelIDFromName(car);
if(car < 400 || car > 611) return SendClientMessage(playerid, red, "ERROR: Invalid Vehicle Model");
return 1;
}
try this