Raised This Month: $51 Target: $400
 12% 

new-style decl...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 07-17-2019 , 17:40   new-style decl...
Reply With Quote #1

PHP Code:
#include < sourcemod >
#include < sdktools >

#pragma semicolon 1
#pragma newdecls required

native isSurviverint iClient ); // error
... 
Kellan123 is offline
Dr.Doctor
AlliedModders Donor
Join Date: Feb 2017
Location: Hong Kong
Old 07-17-2019 , 17:46   Re: new-style decl...
Reply With Quote #2

PHP Code:
native bool isSurviverint iClient ); 
__________________
Dr.Doctor is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-17-2019 , 17:51   Re: new-style decl...
Reply With Quote #3

What the Doctor said.

Return type is required in new-style declarations. If your function doesn't return anything, use the void return type.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-17-2019 at 19:19. Reason: your, not you
Powerlord is offline
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 07-17-2019 , 18:06   Re: new-style decl...
Reply With Quote #4

Thanks @Dr.Doctor
Kellan123 is offline
Reply



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 14:10.


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