Posts: 368
Threads: 68
Joined: Jan 2013
Reputation:
0
10.11.2015, 21:14
(
Последний раз редактировалось GranaT3; 10.11.2015 в 21:15.
Причина: title
)
Hello. Could we put two specifiers for 1 Parameter ?. For example: "is[5], intstring". To use a parameter as an integer and string.
Posts: 507
Threads: 29
Joined: Jul 2014
Reputation:
0
No langages allow you to mix an integer and a string.
I don't see what do you want to make.
Posts: 229
Threads: 5
Joined: Sep 2015
Reputation:
0
In that case, just use a string and convert that string in to a value when needed, and use the string as it is when necessary.
Posts: 1,276
Threads: 6
Joined: Aug 2014
Quote:
Originally Posted by ThePhenix
Elaborate...
|
Nothing to.
He wants to set:
PHP код:
new whatever[50]; //String, right?
//he wants to do this
whatever = 20; //int
What will not work.
Posts: 229
Threads: 5
Joined: Sep 2015
Reputation:
0
Just use a string and get its integer value with strval.
Posts: 1,276
Threads: 6
Joined: Aug 2014
Quote:
Originally Posted by Dutheil
Pawn isn't made for this use.
|
I know. Did you read my post?