Jump to content
  • 0

Nedumerire Dialog


PhaRaoH.

Question

Problema intalnita (descriere):Incerc sa schimb comanda :factions care este pe dialog MSGBOX, pe DIALOG_STYLE_TABLIST_HEADERS...In codul meu eu am schimbat doar textul Dialog_style_msgbox cu DIALOG_STYLE_TABLIST_HEADERS, nimic mai mult...Insa acum cand dau /factions nu apare decat dialogul fara nimic pe el sau in el.
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:factions( playerid, params[ ])
{
    szMessage[ 0 ] = ( EOS );
	for( new i = 0; i < MAX_GROUPS; i++ )
	{
	    if(strlen(groupVariables[i][gGroupName]) >= 1 && strcmp(groupVariables[i][gGroupName], "Dezactivated", true))
	    {
	   	 	format( szMessage, sizeof( szMessage ), "%s\n{FFFFFF}%s [%d/%d] - Leader: %s( %s )", szMessage, groupVariables[i][gGroupName], GetFacMembers( i ), groupVariables[i][gSlots], GetFactionLeader( i ), GetLeaderStatus( GetFactionLeader( i ) ) );
		}
	}
	ShowPlayerDialog(playerid, 6943, DIALOG_STYLE_TABLIST,"{FFFFFF}Factions", szMessage, "Ok", "");
	return 1;
}


Imagini / Video (optional):
Ati incercat sa rezolvati singur?:Da am inlocuit la linia ShowPlayerDialog, Dialog_style_msgbox cu Dialog_Style_tablist_headers

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
CMD:factions( playerid, params[ ])
{
    szMessage[ 0 ] = ( EOS );
    strcat( szMessage, "Line 1\tLine 2\n" );
	for( new i = 0; i < MAX_GROUPS; i++ )
	{
	    if(strlen(groupVariables[i][gGroupName]) >= 1 && strcmp(groupVariables[i][gGroupName], "Dezactivated", true))
	    {
	   	 	format( szMessage, sizeof( szMessage ), "%s{FFFFFF}%s [%d/%d]\tLeader: %s( %s )", szMessage, groupVariables[i][gGroupName], GetFacMembers( i ), groupVariables[i][gSlots], GetFactionLeader( i ), GetLeaderStatus( GetFactionLeader( i ) ) );
		}
	}
	ShowPlayerDialog(playerid, 6943, DIALOG_STYLE_TABLIST,"{FFFFFF}Factions", szMessage, "Ok", "");
	return 1;
}

 

Singura modalitate prin care ma puteti contacta:

http://steamcommunity.com/id/known_main

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.