Raised This Month: $ Target: $400
 0% 

roundsound error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
thEsp
BANNED
Join Date: Aug 2017
Old 01-20-2020 , 13:57   Re: roundsound error
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
Plugin name shouldn't be an integer, but a string.
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!
And yes, as Hamlet said chars are encoded as integers. "ABC" would translate to {65, 66, 67, 0} whereas 0 (ASCII - '\0') is EOS (end of string). This of course may consume less power or at least time, hence Pawn is lightweight.
https://ostermiller.org/calc/ascii.html

Last edited by thEsp; 01-21-2020 at 12:46.
thEsp 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