Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

string problem

$
0
0
hey guys i have a command and i use a big string and i know is not right to use a bigger string than the message but without 1024 is not working...

HTML Code:

CMD:factions(playerid, params[])
{
        if(gLogged[playerid] == 0) return SendClientMessage(playerid,COLOR_ERROR, "Tu nu esti logat si nu poti sa folosesti aceasta comanda!");
          new var[1024];
          new coordsstring[64] = "ID\tNume\tMembrii/Sloturi\tAplicatii\n";
        for(new i = 1; i < sizeof(FactionInfo); i++)
        {
                format(gString, sizeof(gString), "%d.\t%s\t[%d/%d]\t%s\n", i, FactionInfo[i][fName], GetFactionMembers(i), FactionInfo[i][fSlots], GetFactionStatus(i));
                  strcat(var, gString);
        }
        strins(var, coordsstring, 0);
        ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_TABLIST_HEADERS, "Factiuni", var, "Inchide", "");
        return 1;
}

idea?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>