Dialog text
#1

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.

Reply
#2

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
Reply
#3

Which command opens the dilag? : S
Reply
#4

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
Reply
#5

Код:
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)