[HELP] fatal error 102: table overflow: "staging buffer"
#9

It does for me. Note that I am using different variable for it.

The whole script, works:

Код:
forward SetPlayerGender(playerid);

new maleskins[] = {1, 2, 7};
new femaleskins[] = {9, 10, 11};
new Gender[MAX_PLAYERS];


public OnPlayerSpawn(playerid)
{
    SetPlayerGender(playerid);
    return 1;
}


public SetPlayerGender(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new skin = GetPlayerSkin(playerid);
        for(new x; x<sizeof(maleskins); x++)
        {
            if(skin == maleskins[x]) Gender[playerid] = 1;
        }
        for(new x; x<sizeof(femaleskins); x++)
        {
            if(skin == femaleskins[x])  Gender[playerid] = 2;
        }
    }
    return 1;
}


CMD:gender(playerid, params[])
{
	new string[48];
	format(string, sizeof(string), "Your gender is %i".", Gender[playerid]);
	SendClientMessage(playerid, -1, string);
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)