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

Constant question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 03-05-2015 , 00:31   Constant question
Reply With Quote #1

Hi,

I came from amxx to sourcepawn today, and I dont find how to create a constant on sourcepawn

On amxx its:
new const Variable[ ] =

Sorry for my english
__________________
skz is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 03-05-2015 , 01:18   Re: Constant question
Reply With Quote #2

I'd probably use a define instead, but here's an example with a string.
PHP Code:
new const String:myConst[] = "myValue"
__________________

Last edited by Impact123; 03-05-2015 at 01:20.
Impact123 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 09:51.


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