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
making array null?
deffo
Big Clucker
Posts: 69
Threads: 13
Joined: Aug 2011
Reputation:
0
#1
25.12.2012, 22:50
Hello is there any predefined function in pawno which makes the string array null ? Or I have to use for loop manually ?
Find
Reply
Kyle
High-roller
Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
#2
25.12.2012, 23:07
I think this is it:
new string[156];
then: string[0] = E0S;
Find
Reply
Vince
Spam Machine
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
#3
25.12.2012, 23:08
pawn Код:
string
[
0
]
=
EOS;
That will
mark
the string as empty when checked through strlen or isnull. It will NOT, however, clear the entire string. If that's what you want to do then you need a loop.
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: 3 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help