Raised This Month: $ Target: $400
 0% 

%s dont work pls help im a noob in scripting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-06-2010 , 08:39   Re: %s dont work pls help im a noob in scripting
Reply With Quote #9

Pawn uses null terminated strings which means you must always create your variable 1 size larger than the max you will need. This is why, for example, you will see a variable created at size 32 but the size inputted to the function is 31. The extra cell is reserved for a null character which signifies the end of string. Google null terminated strings for further reading.
__________________

Last edited by Bugsy; 06-06-2010 at 08:45.
Bugsy 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 05:27.


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