Jump to content

Question

Posted (edited)
  • Problema intalnita (descriere): Nu imi afiseaza in dialog decat 1 lini in loc de 10... sau in functie de reporturi
    Ero(area / rile) / warning-(ul / urile): N/A
    Liniile de cod / sursa / script-ul(obligatoriu): mai jos
    Imagini / Video (optional): --
    Ati incercat sa rezolvati singur?: da
    
    [spoiler]CMD:reports(playerid, params[])
    {
        if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_BLUE, "[SERVER ERROR]: Nu esti conectat !");
        if(IsPlayerConnected(playerid))
    	{
    	    new head[128], size[255];
    	    for(new xf = 0; xf < totalReports; xf++)
    	    {
    	        if(RData[xf][rStatus] == 1)
    	        {
    	            format(size, sizeof(size),"ID\tPlayer\tStatus\t\n%d\t%s\t%d\n", RData[xf][rID], RData[xf][rPlayer], RData[xf][rStatus]);
    			}
    			printf("Total read reports: %d", totalReports);
    		}
    		format(head, sizeof(head), "%d New Reports", totalReports);
    		ShowPlayerDialog(playerid, D_REPORT_MANAGER2, DIALOG_STYLE_TABLIST_HEADERS, head, size, "Select", "Close");
    		SendClientMessage(playerid, COLOR_HIGHLIGHT, size);
    	}
    	return 1;
    }[/spoiler]
    Spoiler

     

     

Edited by [PAWN]Stark.7

6 answers to this question

Recommended Posts

  • 0
Posted

Da valori mai mari la string.uri.

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

  • 0
Posted

Folosește strcat.

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

  • 0
Posted

folosesti asa

 

new head[528], size[255],string2[70];
	    for(new xf = 0; xf < totalReports; xf++)
	    {
	        if(RData[xf][rStatus] == 1)
	        {
	            format(size, sizeof(size),"ID\tPlayer\tStatus\t\n%d\t%s\t%d\n", RData[xf][rID], RData[xf][rPlayer], RData[xf][rStatus]);
                strcat(size,head);
			}
			printf("Total read reports: %d", totalReports);
		}
		format(string2, sizeof(string2), "%d New Reports", totalReports);
		ShowPlayerDialog(playerid, D_REPORT_MANAGER2, DIALOG_STYLE_TABLIST_HEADERS, string2, head, "Select", "Close");
		SendClientMessage(playerid, COLOR_HIGHLIGHT, size);
	}

 

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
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.