Clan command shows ID 0 instead of anything else
#5

Hello, thanks to everyone who replied above. I've fixed the issue I had, but now I ran into some other problem.

So, this:

PHP код:
forward OnClanCreate(playeridclanname[]);
public 
OnClanCreate(playeridclanname[])
{
    if(
cache_affected_rows())
    {
        new 
clanid UserStats[playerid][Clan] = cache_insert_id();
        
ClanInfo[clanid][ClanID] = clanid;
        
ClanInfo[clanid][ClanName] = clanname;
        
ClanInfo[clanid][ClanLeader] = GetName(playerid);
        
ClanInfo[clanid][Official] = 0;
        
SendClientMessageEx(playeridCOLOR_RED"[SUCCESS]: (Unofficial) Clan ID %d with the name %s has been created."clanidclanname);
    }
    else
    {
        
SendClientMessageEx(playeridCOLOR_RED"[ERROR]: Clan name ''%s'' already exists. Pick another name."clanname);
    }
    return 
1;

Line:

PHP код:
ClanInfo[clanid][ClanName] = clanname
PHP код:
error 047: array sizes do not match, or destination array is too small 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)