/vehicle spawn by partial name - 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)
+--- Thread: /vehicle spawn by partial name (
/showthread.php?tid=432137)
REMOVED -
Campionull - 21.04.2013
REMOVED
Re: /vehicle spawn by partial name -
greentarch - 21.04.2013
Not tested. But should works.
Replace :
pawn Код:
if(strcmp(VehicleNames[i], tmp, true)==0)
With
pawn Код:
if ( strfind( VehicleNames[ i ], tmp, true ) != -1 )
strcmp compares the whole string.
Re: /vehicle spawn by partial name -
Jefff - 21.04.2013
http://forum.sa-mp.com/showthread.ph...ehicleByNameID