Raised This Month: $ Target: $400
 0% 

enum & float double array - tag mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 11-22-2009 , 07:58   Re: float double array - tag mismatch
Reply With Quote #1

Quote:
Originally Posted by Arkshine View Post
Add Float:

Eg : new Float:mp_pool = Float:stats[id][pmp];

or you can directly put Float: in the enum on each element.
How that could work? Stats is already a float array.

What here fails is the tag list_stats. You have make a decision do you use the tag or not, either connors way or:
PHP Code:
enum //no tag here
{
    
istr 0,// actual str
    
iagi,   //1    actual agi
    //.... 
Though if you have to use it with both the tag an not( can't imagine how that would be possible ):
PHP Code:
stats][ _:php 
Edit: And about Connor's code, no you don't need the _: before the list_stats tag when creating the enum.

Last edited by SnoW; 11-22-2009 at 08:01.
SnoW is offline
Send a message via MSN to SnoW
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 13:42.


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