help with dialog command
#1

Код:
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?
Reply
#2

I don`t know what`s your CMD but try:

Код:
GetPlayerName(playerid, tt, sizeof(tt));
Reply
#3

Change:
pawn Код:
GetPlayerName(inputtext[], tt, sizeof(tt));
To:
pawn Код:
GetPlayerName(playerid, tt, sizeof(tt));
Reply
#4

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

Problem SOLVED.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)