help with dialog command - 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: help with dialog command (
/showthread.php?tid=560576)
help with dialog command -
Stoyanov - 29.01.2015
Код:
case 0:
{
new ta[128], tt[MAX_PLAYER_NAME];
ShowPlayerDialog(playerid, 6905, DIALOG_STYLE_INPUT, "Kick", "PlayerID:", "Kick", "Cancel");
GetPlayerName(inputtext[], tt, sizeof(tt)); <======== ERROR error 029: invalid expression, assumed zero
format(ta, sizeof(ta), "%s is kicked: Spam", tt);
SendClientMessageToAll(RED, ta);
return 1;
}
Why i am getting this error? How to fix it?
Re: help with dialog command -
TFreemen - 29.01.2015
I don`t know what`s your CMD but try:
Код:
GetPlayerName(playerid, tt, sizeof(tt));
Re: help with dialog command -
iCurse - 29.01.2015
Change:
pawn Код:
GetPlayerName(inputtext[], tt, sizeof(tt));
To:
pawn Код:
GetPlayerName(playerid, tt, sizeof(tt));
Re: help with dialog command -
Stoyanov - 29.01.2015
Quote:
Originally Posted by TFreemen
I don`t know what`s your CMD but try:
Код:
GetPlayerName(playerid, tt, sizeof(tt));
|
Quote:
Originally Posted by iCurse
Change:
pawn Код:
GetPlayerName(inputtext[], tt, sizeof(tt));
To:
pawn Код:
GetPlayerName(playerid, tt, sizeof(tt));
|
I want to get the player name with inputtext because i'm entering the ID in Dialog.
Re: help with dialog command -
Stoyanov - 29.01.2015
Problem SOLVED.