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
Calculation in string declaration
darklight94
Little Clucker
Posts: 10
Threads: 2
Joined: Feb 2011
Reputation:
0
#1
29.04.2012, 12:14
Hi, is it possible to do something like that:
Код:
new cnt = 5 new string[cnt*11];
Find
Reply
Lorenc_
High-roller
Posts: 3,793
Threads: 196
Joined: Jan 2010
Reputation:
0
#2
29.04.2012, 12:17
.No.
Find
Reply
darklight94
Little Clucker
Posts: 10
Threads: 2
Joined: Feb 2011
Reputation:
0
#3
29.04.2012, 12:18
Is there any other method to do this ?
Find
Reply
Niko_boy
High-roller
Posts: 1,336
Threads: 30
Joined: Aug 2010
Reputation:
0
#4
29.04.2012, 12:19
No this will give you certain errors
rather you can try this
Код:
#define cnt (12) new string[cnt*11]; printf("%d",sizeof(string));
will print 132
Quote:
Originally Posted by
darklight94
Is there any other method to do this ?
^
Find
Reply
Ash.
High-roller
Posts: 2,082
Threads: 118
Joined: Jan 2010
Reputation:
0
#5
29.04.2012, 12:19
Edit: Sorry. Misread the original post.
Find
Reply
darklight94
Little Clucker
Posts: 10
Threads: 2
Joined: Feb 2011
Reputation:
0
#6
29.04.2012, 12:53
So, it is possible to get the number of rows of a MySQL table define the value and multiply it with 11 in a string declaration?
Find
Reply
IceCube!
High-roller
Posts: 1,765
Threads: 1
Joined: Aug 2011
Reputation:
0
#7
29.04.2012, 12:55
In short No.
Find
Reply
Niko_boy
High-roller
Posts: 1,336
Threads: 30
Joined: Aug 2010
Reputation:
0
#8
29.04.2012, 12:57
No its not possible.
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