Raised This Month: $ Target: $400
 0% 

Structures in Pawn?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Afrow UK
Junior Member
Join Date: Feb 2007
Old 06-30-2007 , 07:20   Re: Structures in Pawn?
Reply With Quote #1

On a side note, you can do this:

Code:
enum my_struct
{
  Float:my_float,
  Handle:my_handle,
  bool:my_boolean,
  my_string[32]
};
No type casting necessary then.

One problem here though is that my_float, my_handle, my_boolean and my_string are now defined globally, even though they are contained in an enumerator. Silly as it may seem, you cannot now use new Float:my_float etc in a procedure.

Stu

Last edited by Afrow UK; 06-30-2007 at 07:36.
Afrow UK 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 21:24.


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