Raised This Month: $ Target: $400
 0% 

roundsound error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-21-2020 , 10:39   Re: roundsound error
Reply With Quote #5

Quote:
Originally Posted by thEsp View Post
Fun (off-topic) fact: Pawn is a type-less scripting language and for this matter, a string is a character array, not a true string (as in C++) per see. So, integers and chars are virtually the same.
Code:
register_plugin(0, 0, 0); // error! register_plugin("...", "...", "..."); // success! register_plugin({0}, {0}, {0}); // success!
Characters are encoded as integers(more specifically the value from the ascii table for that character). {0} translates to the string made from only one character: the character with an ascii value of 0.
__________________

Last edited by HamletEagle; 01-21-2020 at 10:40.
HamletEagle is offline
 



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 02:58.


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