Expression Has no Effect - 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: Expression Has no Effect (
/showthread.php?tid=572740)
Expression Has no Effect -
Genmetal - 01.05.2015
hi, can somebody help me with this
Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
ShowPlayerDialog(playerid, DIALOG_TELEMAP, DIALOG_STYLE_MSGBOX, "Teleport", "Do you want to teleport to %4.2f, %4.2f, %4.2f", "Teleport", "Close", tX, tY, tZ); // Lines Error
return 1;
}
got Error
Expression Has no Effect thx
Re : Expression Has no Effect -
MrAlexisX2 - 01.05.2015
Impossible to import a specifiers in ShowPlayerDialog, use a format.
PHP код:
new string[MAX_STRING_MSG];
format(string, sizeof(string), "Do you want to teleport to %4.2f, %4.2f, %4.2f", tX, tY, tZ);
ShowPlayerDialog(playerid, DIALOG_TELEMAP, DIALOG_STYLE_MSGBOX, "Teleport", string, "Teleport, "Close");
Re: Re : Expression Has no Effect -
Genmetal - 01.05.2015
Quote:
Originally Posted by MrAlexisX2
Impossible to import a specifiers in ShowPlayerDialog, use a format.
PHP код:
new string[MAX_STRING_MSG];
format(string, sizeof(string), "Do you want to teleport to %4.2f, %4.2f, %4.2f", tX, tY, tZ);
ShowPlayerDialog(playerid, DIALOG_TELEMAP, DIALOG_STYLE_MSGBOX, "Teleport", string, "Teleport, "Close");
|
i'm already make with format, but still got error
Expression has no Effect BTW sorry little mistake
My code is
not
Re : Expression Has no Effect -
MrAlexisX2 - 02.05.2015
PHP код:
new string[MAX_STRING_MSG];
format(string, sizeof(string), "Do you want to teleport to %4.2f, %4.2f, %4.2f", fX, fY, fZ);
ShowPlayerDialog(playerid, DIALOG_TELEMAP, DIALOG_STYLE_MSGBOX, "Teleport", string, "Teleport, "Close");
Re: Re : Expression Has no Effect -
Genmetal - 02.05.2015
Quote:
Originally Posted by MrAlexisX2
PHP код:
new string[MAX_STRING_MSG];
format(string, sizeof(string), "Do you want to teleport to %4.2f, %4.2f, %4.2f", fX, fY, fZ);
ShowPlayerDialog(playerid, DIALOG_TELEMAP, DIALOG_STYLE_MSGBOX, "Teleport", string, "Teleport, "Close");
|
still got the same errors
Re: Expression Has no Effect -
Mencent - 02.05.2015
Hello!
Does it work like so?
PHP код:
new string[MAX_STRING_MSG];
format(string, sizeof(string), "Do you want to teleport to %4.2f, %4.2f, %4.2f", fX, fY, fZ);
ShowPlayerDialog(playerid, DIALOG_TELEMAP, DIALOG_STYLE_MSGBOX, "Teleport", string, "Teleport", "Close");