Help with editing command
#3

Quote:
Originally Posted by YeahYeahYeahs
pawn Код:
if(dialogid == 1)
{
if(IsPlayerConnected(playerid))
{
new sendername[MAX_PLAYER_NAME];
new idx;
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(inputtext);
while ((idx < length) && (inputtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = inputtext[idx];
idx++;
}
result[idx - offset] = EOS;
new ip[16]; GetPlayerIp(playerid, ip, sizeof(ip));
format(string, sizeof(string), "name: %s, IP: %s, Suggestion: %s.",sendername,ip,(result));
SendClientMessage(playerid, COLOR_YELLOW, string);
Suggestions(string);
}
return 1;
}
That should work, OnDialogResponse has a different input variable name called inputtext.
Thank you, God bless.
Reply


Messages In This Thread
Help with editing command - by killdahobo99 - 23.04.2010, 22:43
Re: Help with editing command - by Donuts - 23.04.2010, 23:40
Re: Help with editing command - by ruckfules99 - 24.04.2010, 01:07

Forum Jump:


Users browsing this thread: 1 Guest(s)