22.10.2018, 19:28
Hello, thanks to everyone who replied above. I've fixed the issue I had, but now I ran into some other problem.
So, this:
Line:
So, this:
PHP код:
forward OnClanCreate(playerid, clanname[]);
public OnClanCreate(playerid, clanname[])
{
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(playerid, COLOR_RED, "[SUCCESS]: (Unofficial) Clan ID %d with the name %s has been created.", clanid, clanname);
}
else
{
SendClientMessageEx(playerid, COLOR_RED, "[ERROR]: Clan name ''%s'' already exists. Pick another name.", clanname);
}
return 1;
}
PHP код:
ClanInfo[clanid][ClanName] = clanname;
PHP код:
error 047: array sizes do not match, or destination array is too small