Raised This Month: $29 Target: $400
 7% 

[CSGO] Help with new syntax


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iFusion
Junior Member
Join Date: Oct 2018
Old 04-09-2021 , 16:00   [CSGO] Help with new syntax
Reply With Quote #1

Hey there!
I would like to know how to write the following codes in the new syntax.
PHP Code:
#pragma newdecls required 
Code 1:
PHP Code:
new const String:Items[3][] = {
    
"item1""item2""item3"
}; 
Code 2:
PHP Code:
Posision(Float:XFloat:YFloat:ZFloat:PitchFloat:YawFloat:Roll)
{
...

Thanks!
iFusion is offline
FAQU
Member
Join Date: Sep 2020
Location: Romania
Old 04-10-2021 , 00:00   Re: [CSGO] Help with new syntax
Reply With Quote #2

Code 1:

PHP Code:
char Items[3][] = 
{
    
"item1""item2""item3"
}; 
Code 2:
PHP Code:
void Position(float xfloat yfloat zfloat pitchfloat yawfloat roll)
{
    
// Note: void = no return value;

I recommend you to also take a look at the transitional syntax wiki: https://wiki.alliedmods.net/SourcePa...itional_Syntax
__________________
FAQU is offline
iFusion
Junior Member
Join Date: Oct 2018
Old 04-10-2021 , 05:47   Re: [CSGO] Help with new syntax
Reply With Quote #3

Quote:
Originally Posted by FAQU View Post
Code 1:

PHP Code:
char Items[3][] = 
{
    
"item1""item2""item3"
}; 
Code 2:
PHP Code:
void Position(float xfloat yfloat zfloat pitchfloat yawfloat roll)
{
    
// Note: void = no return value;

I recommend you to also take a look at the transitional syntax wiki: https://wiki.alliedmods.net/SourcePa...itional_Syntax
Thank you!
iFusion 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 20:02.


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