Hallo. Kann man ein Guimenü so machen:
if (strcmp("/stats", cmdtext, true, 10) == 0)
{
new name[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"Name: %s ",name);
format(string,sizeof(string),"level: %d ",PlayerInfo[pLevel]);
PlayerInfo[pLevel]
ShowPlayerDialog(playerid,stats,DIALOG_STYLE_MSGBOX,"Statistik von dir",string,"Ok","Abbrechen");
return 1;
}
Also das das "format" 2 mal beschrieben ist?
Wenn ich die Zeile zu lange mache compilt pawno das script nichtmehr.