whats wrong.. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: whats wrong.. (
/showthread.php?tid=247667)
whats wrong..(solved) -
Lazy_Duck - 10.04.2011
Solved
Re: whats wrong.. -
Stigg - 10.04.2011
Try:
Re: whats wrong.. -
Ironboy500[TW] - 10.04.2011
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;
}
}
Re: whats wrong.. -
HyperZ - 10.04.2011
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.
Re: whats wrong.. -
Salsa - 10.04.2011
I Agree With Clive
Re: whats wrong.. -
Lazy_Duck - 10.04.2011
doesnt work
and server restarts...
after i use that command
Re: whats wrong.. -
HyperZ - 10.04.2011
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;
}
Re: whats wrong.. -
Lazy_Duck - 10.04.2011
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
Re: whats wrong.. -
HyperZ - 10.04.2011
Quote:
Originally Posted by Hussen.
Thank you very much 
|
No Problem.
Re: whats wrong.. -
Lazy_Duck - 10.04.2011
Remove this