Raised This Month: $ Target: $400
 0% 

How to make this correctly


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Croxeye.
Member
Join Date: Nov 2018
Old 11-18-2018 , 08:49   How to make this correctly
Reply With Quote #1

PHP Code:
enum _:playerAchievementsTable {
    
id,
    
achievement_id,
    
unlocked
}

enum _:playerTable {
    
/* ... */
        
id,
    
playerAchievements[][playerAchievementsTable// ERROR: error 029: invalid expression, assumed zero
}

new 
player[33][playerTable];

enum _:achievementsTable {
    
id,
    
name[64],
    
description[64],
    
rewardType[10],
    
rewardAmount,
    
to_unlock
}

new 
achievements[][achievementsTable];

for(new 
1achievements[]; i++) {
     
ColorChat(idGREEN"%s"player[id][playerAchievements[i][unlocked]] == achievements[i][to_unlock] ? ("%s"achievements[i][description]) : ("Achievement Completed.")); // ERRORS: error 028: invalid subscript (not an array or too many subscripts): "playerAchievements"; error 029: invalid expression, assumed zero


Last edited by Croxeye.; 11-18-2018 at 17:34.
Croxeye. 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 07:36.


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