[SAP] JUST OPEN !!
#1

Hello

Errors :

PHP код:
D:\pawno-master\include\SAPData/Config.json(31) : error 006must be assigned to an array
D:\pawno-master\include\SAPData/Config.json(32) : error 006must be assigned to an array
D:\pawno-master\include\SAPData/Config.json(33) : error 006must be assigned to an array
D:\pawno-master\include\SAPData/Config.json(34) : error 006must be assigned to an array 
Code:

PHP код:
 enum ServerConfig
 
{
    
gameModeText,
    
serverName,
    
serverForum,
    
serverWebsite,
    
ircBot1,
    
ircBot2,
    
ircServer
 
};
new 
Server[ServerConfig];
public 
jsonInit()
{
    
Server[gameModeText] = "SAP 7.1 REVO";
    
Server[serverName] = "San Andreas Playground";
    
Server[serverForum] = "forum.saplayground.com";
    
Server[serverWebsite] = "saplayground.com";
    
/*Server[ircBot1] = "StrikerX";
    Server[ircBot2] = "ZeroX";
    Server[ircServer] = "irc.gtanet.com";*/
    
return (true);
 } 
Thanks

Yaa
Reply
#2

Still same errors :/

and i don't think this is a fix for this :C
Reply
#3

All the items in the enumerator must be strings and not integers.
Reply
#4

speak with me with codes pls
Reply
#5

Код:
 #define gamemodetext   "The Gamemode text"
usage

Код:
 SendClientMessage(playerid,COLOR_RED,"    The Gamemode shows >> "gamemodetext   "! ");
isnt this same you want to create?
Reply
#6

nope
Reply
#7

PHP код:
 enum ServerConfig
 
{
    
gameModeText[32],
    
serverName[32],
    
serverForum[32],
    
serverWebsite[32],
    
ircBot1[32],
    
ircBot2[32],
    
ircServer[32]
 };
new 
Server[ServerConfig];
public 
jsonInit()
{
    
Server[gameModeText] = "SAP 7.1 REVO";
    
Server[serverName] = "San Andreas Playground";
    
Server[serverForum] = "forum.saplayground.com";
    
Server[serverWebsite] = "saplayground.com";
    
/*Server[ircBot1] = "StrikerX";
    Server[ircBot2] = "ZeroX";
    Server[ircServer] = "irc.gtanet.com";*/
    
return (true);
 } 
The fields in your enum were integers, they need to be arrays in order to assign strings to them.
Reply
#8

FIXED ! Thanks @mkr
Reply
#9

STILL SAME :C

EDIT FIX AGAIN JAJAJAJA
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)