Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
/vehicle spawn by partial name
Campionull
Little Clucker
Posts: 9
Threads: 5
Joined: Jul 2010
Reputation:
0
#1
21.04.2013, 11:29
(
Последний раз редактировалось Campionull; 26.11.2015 в 13:23.
)
REMOVED
Find
Reply
greentarch
Big Clucker
Posts: 168
Threads: 9
Joined: Feb 2013
Reputation:
0
#2
21.04.2013, 11:34
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.
Find
Reply
Jefff
Banned
Posts: 2,593
Threads: 34
Joined: Dec 2007
#3
21.04.2013, 13:08
http://forum.sa-mp.com/showthread.ph...ehicleByNameID
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help