whats wrong..
#1

Solved
Reply
#2

Try:

pawn Код:
return 1;
Reply
#3

Tried setting dialogid to number?
Код:
    if(!strcmp(cmdtext, "/Set3dtext", true))
    {
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Title","Tybe in the 3dtext You want to set","Set","Cancel");
    return 1;
    
    }
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
        if(dialogid == 1)
    {
        new Text3D:labe[MAX_PLAYERS];
        new string[256];
        format(string,sizeof(string),"",inputtext);
        label[playerid] = Create3DTextLabel("%s",0x008080FF,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(labe[playerid], playerid, 0.0, 0.0, 0.7);
        SendClientMessage(playerid, COLOR_GREEN, "Your 3dtext has been set to %s");
        return 0;
    }
}
Reply
#4

Put it on Top of your script:
pawn Код:
new Text3D:label[MAX_PLAYERS];
OnDialogResponse:
pawn Код:
if(dialogid == DIALOG_Headtext)
{
    new string[128], str[64];
    format(string,sizeof(string),"%s",inputtext);
    label[playerid] = Create3DTextLabel(string,0x008080FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
    format(str,sizeof(str),"Your 3dtext has been set to %s",inputtext);
    SendClientMessage(playerid, COLOR_GREEN, str);
    return 1;
}
Edit: Not tested.
Reply
#5

I Agree With Clive
Reply
#6

doesnt work

and server restarts...
after i use that command
Reply
#7

Hmmm than try this:
pawn Код:
if(dialogid == DIALOG_Headtext)
{
    new str[128];
    label[playerid] = Create3DTextLabel(inputtext,0x008080FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
    format(str,sizeof(str),"Your 3dtext has been set to %s",inputtext);
    SendClientMessage(playerid, COLOR_GREEN, str);
    return 1;
}
Reply
#8

Quote:
Originally Posted by Clive
Посмотреть сообщение
Hmmm than try this:
pawn Код:
if(dialogid == DIALOG_Headtext)
{
    new str[128];
    label[playerid] = Create3DTextLabel(inputtext,0x008080FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
    format(str,sizeof(str),"Your 3dtext has been set to %s",inputtext);
    SendClientMessage(playerid, COLOR_GREEN, str);
    return 1;
}
Thank you very much
Reply
#9

Quote:
Originally Posted by Hussen.
Посмотреть сообщение
Thank you very much
No Problem.
Reply
#10

Remove this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)