Raised This Month: $275 Target: $400
 68% 

How to create a String on new sourcemod?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wanheda
Junior Member
Join Date: Oct 2017
Location: Portugal ♥
Old 07-14-2018 , 07:42   How to create a String on new sourcemod?
Reply With Quote #1

Hi, I got too much time away from CS:GO scripting, and I use SPEdit, but when I create a String:XYZ[X]; it's not correct, as many other things like public Action:XYZ is now Action XYZ (better) but I can't figure strings

PS: I want a decl String



__________________
ʙᴇɪɴɢ ʜᴀᴘᴘʏ ᴅᴏᴇsɴ'ᴛ ᴍᴇᴀɴ ᴛʜᴀᴛ ᴇᴠᴇʀʏᴛʜɪɴɢ ɪs ᴘᴇʀꜰᴇᴄᴛ
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ𝐒𝐭𝐞𝐚𝐦
Wanheda is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: USA
Old 07-14-2018 , 07:52   Re: How to create a String on new sourcemod?
Reply With Quote #2

PHP Code:
char pReason[100]; 
In other cases:
PHP Code:
int size 100;
char[] pReason = new char[size]; 
__________________
Steam Profile - Commissions Open! - Discord: Shaders Allen#5049
Drixevel is offline
Wanheda
Junior Member
Join Date: Oct 2017
Location: Portugal ♥
Old 07-14-2018 , 08:14   Re: How to create a String on new sourcemod?
Reply With Quote #3

Quote:
Originally Posted by Drixevel View Post
~
Ye, thanks. I figured it out like 5 mins ago, also SM is getting pretty close to C++ I see, thanks!
__________________
ʙᴇɪɴɢ ʜᴀᴘᴘʏ ᴅᴏᴇsɴ'ᴛ ᴍᴇᴀɴ ᴛʜᴀᴛ ᴇᴠᴇʀʏᴛʜɪɴɢ ɪs ᴘᴇʀꜰᴇᴄᴛ
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ𝐒𝐭𝐞𝐚𝐦
Wanheda is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 07-14-2018 , 10:52   Re: How to create a String on new sourcemod?
Reply With Quote #4

Older syntax still works with newer compilers if you don't tell the compiler to require it. There is no decl-equivalent in the new syntax.
Fyren is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:36.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode