SA-MP Forums Archive
Dialog text - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog text (/showthread.php?tid=500496)



Dialog text - AlexandreRangelMamut - 13.03.2014

Hello to all ...

I would like your help in order to create a similar image in filterscript dialog. I ended up deleting the code that I had here, but I did not get it. Gave an error of "long".

I am very grateful.




Re: Dialog text - Matess - 13.03.2014

This?
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
return 1;
}

dcmd_whatever(playerid, params[])
{
    #pragma unused params

    new str[500];
    format(str,sizeof(str),"{FF0000}/stats sdfsdfsdf\n");
        format(str,sizeof(str),"{00FF00}/buylevel\n");
        format(str,sizeof(str),"{0000FF}/buyhouse\n");
    ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"WHATEVER",str,"OK","");

    return 1;
}

#endif



Re: Dialog text - AlexandreRangelMamut - 13.03.2014

Which command opens the dilag? : S


Re: Dialog text - Matess - 13.03.2014

Well fine..

pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/test", true))
{
    new str[500];
    format(str,sizeof(str),"{FF0000}/stats sdfsdfsdf\n");
        format(str,sizeof(str),"{00FF00}/buylevel\n");
        format(str,sizeof(str),"{0000FF}/buyhouse\n");
    ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"WHATEVER",str,"OK","");

    return 1;
}
    return 1;
}

#endif
Try it now


Re: Dialog text - AlexandreRangelMamut - 13.03.2014

Код:
C:\Users\Alexandre\Desktop\Truck's Life\filterscripts\comandos.pwn(10) : error 010: invalid function or declaration
C:\Users\Alexandre\Desktop\Truck's Life\filterscripts\comandos.pwn(13) : error 021: symbol already defined: "format"
C:\Users\Alexandre\Desktop\Truck's Life\filterscripts\comandos.pwn(18) : error 010: invalid function or declaration
C:\Users\Alexandre\Desktop\Truck's Life\filterscripts\comandos.pwn(22) : warning 203: symbol is never used: "str"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.