Hey habe ein Problem..
ich wollte mir einen Stats Befehl erstellen, aber jetzt wo ich einige Sachen in ein Dialog getan habe
ist der string nichtmehr lang genug .. new string[255];
was kann ich jetzt machen?
.::Der Befehl::.
ocmd:stats(playerid,params[])
{
new string[255],status[128], geschlecht[10], frakname[20], jobname[20];
switch(PlayerInfo[playerid][pSex])
{
case 0:{geschlecht="Anonym";}
case 1:{geschlecht="Männlich";}
case 2:{geschlecht="Weiblich";}
}
strcat(string,"{335CD6}[=========={FFFFFF}[ Dein Status ]{335CD6}==========]");
format(string, sizeof(string),"%s{335CD6}\nGeschlecht: {FFFFFF}%s",string,geschlecht);
switch(PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader])
{
case 0:{frakname="Zivilist";}
case 1:{frakname="LSPD";}
case 2:{frakname="FBI";}
case 3:{frakname="Army";}
case 4:{frakname="Medic";}
}
format(string, sizeof(string),"%s{335CD6}\nFraktion: {FFFFFF}%s - Rang: %i",string,frakname,PlayerInfo[playerid][pRank]);
switch(PlayerInfo[playerid][pJob])
{
case 0:{jobname="Arbeitslos";}
}
format(string, sizeof(string),"%s{335CD6}\nNebenjob: {FFFFFF}%s",string,jobname);
format(string, sizeof(string),"%s{335CD6}\nGeld: {FFFFFF}%i$",string,GetPlayerMoney(playerid));
format(string, sizeof(string),"%s{335CD6}\nLevel: {FFFFFF}%i",string,GetPlayerScore(playerid));
format(string, sizeof(string),"%s{335CD6}\nMorde: {FFFFFF}%i",string,PlayerInfo[playerid][pKills]);
format(string, sizeof(string),"%s{335CD6}\nGestorben: {FFFFFF}%i",string,PlayerInfo[playerid][pDeaths]);
format(string, sizeof(string),"%s{335CD6}\nVerbrechen: {FFFFFF}%i",string,PlayerInfo[playerid][pCrimes]);
format(string, sizeof(string),"%s{335CD6}\nAdminlevel: {FFFFFF}%i",string,PlayerInfo[playerid][pAdmin]);
format(string, sizeof(string),"%s{335CD6}\nSupportlevel: {FFFFFF}%i",string,PlayerInfo[playerid][pSupporter]);
format(status, sizeof(status),"%s",GetName(playerid));
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,status,string,"OK","Abbrechen");
return 1;
}