Faction Help
#1

Hello. I followed a guide to help me learn MySQL and Dynamic Faction but I get those.

I get 1 error.

PHP код:
enum faction
{
   
ID,
   
Name[32],
   
Type,
   
Rank1[32],
   
Rank2[32],
   
Rank3[32],
   
Rank4[32],
   
Rank5[32]
}; 
Код:
error 021: symbol already defined: "ID"
Код:
(582 -- 584) : warning 213: tag mismatch
 : warning 203: symbol is never used: "facid"
PHP код:
   format(querysizeof(query), "INSERT INTO `Factions` (ID, Name, Rank1, Rank2, Rank3, Rank4, Rank5) VALUES(%d,'%s','%s','%s','%s','%s','%s')",
    
                        
Factions[Total_Factions_Created][ID], Factions[Total_Factions_Created][Name],
                        
Factions[Total_Factions_Created][Rank1],Factions[Total_Factions_Created][Rank2],
                        
Factions[Total_Factions_Created][Rank3],Factions[Total_Factions_Created][Rank4],
                        
Factions[Total_Factions_Created][Rank5]);
    
mysql_query(query); 
Reply
#2

States it in the errors.

"Already defined"
"Tag mismatch"
"Never used"..

Check the errors, before posting them.
Reply
#3

Ok thx.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)