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

[TUTORIAL] "Structs" in pawn


Post New Thread Reply   
 
Thread Tools Display Modes
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 01-27-2007 , 11:46   Re: [TUTORIAL] "Structs" in pawn
Reply With Quote #11

First:dont use enums ,they can make many problem.

You must use it so in a loop.
Code:
for(new i = 0; EPlayer:i < EPlayer; EPlayer:i++){         PlayerStats[id][EPlayer:i] = 1//the 1 was only for example.     }
__________________
schnitzelmaker is offline
tlc660
Junior Member
Join Date: Jan 2007
Old 01-27-2007 , 12:27   Re: [TUTORIAL] "Structs" in pawn
Reply With Quote #12

Thank you

what problem they can make? example?

thanks again
tlc660 is offline
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 01-27-2007 , 13:46   Re: [TUTORIAL] "Structs" in pawn
Reply With Quote #13

enum have no check how long the array is,if you acces over the arraylenght can give problems.
Pawn have no fully support like in C++,this make some problems using enums with arrays or floats.
Some Functions dont work with enums.The most Functions who work are with fakemeta.
Enums dont check if something right or wrong.
They can give Problems,but not must.

You can use enums,but only if you really check that everything is ok.
__________________

Last edited by schnitzelmaker; 01-27-2007 at 13:48.
schnitzelmaker 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 15:21.


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