[INFO]String - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [INFO]String (
/showthread.php?tid=276360)
[INFO]String -
TheBluec0de - 13.08.2011
not to stay there a way to keep repeating: new string etc in various formats, in other words a way that speeds up the system .. the same for the new name etc.
Re: [INFO]String -
TheBluec0de - 13.08.2011
help me..
Re: [INFO]String -
TheBluec0de - 13.08.2011
UP..
Re: [INFO]String -
WoodPecker - 13.08.2011
Give us more information, and stop bumbing.
Re: [INFO]String -
TheBluec0de - 13.08.2011
yes..
Re: [INFO]String -
[MG]Dimi - 13.08.2011
Give us the code, code, code, code, code...
Re: [INFO]String -
TheBluec0de - 13.08.2011
I would like to know if there a simple way and speed up instead of staying to do our new string, etc.
Re: [INFO]String -
Grim_ - 13.08.2011
Quote:
Originally Posted by TheBluec0de
I would like to know if there a simple way and speed up instead of staying to do our new string, etc.
|
To speed up? Do you mean literally typing 'new string[size];' every time you want to declare a new variable? If that's the case, and if it's suitable for the use of the variable, you could just create one global variable with that name.
Re: [INFO]String -
Grim_ - 13.08.2011
Quote:
Originally Posted by ******
That's a VERY bad idea. You could do:
pawn Код:
#define STR new string[128];
Then you can use "STR" instead of "new string[128];" but that's not very clear in code what you're doing. And frankly the time it took you to make this topic is probably longer than you will EVER spend typing that tiny bit of code.
|
Were you referring to my post on creating a global variable? If so, could you explain how so? Like I said, if it would be suitable for the variable. For example, if you only needed it to format messages you send to the players and you never need to access the data at any other point, I don't see a problem with doing such.
Re: [INFO]String -
Shawwarma - 13.08.2011
as ****** says
PHP код:
new string[size];
as a global string