Quote:
Originally Posted by TheSy
pawn Код:
if(dialogid == 0) { if(!response) { return 1; } new tmp[64], idx, giveplayerid, string[100]; tmp = strtok(inputtext, idx); giveplayerid = ReturnUser(tmp); format(string, sizeof(string), "Name: %s", GetName(giveplayerid)); PlayerTextDrawSetString(playerid, Textdraw1[playerid], string); PlayerTextDrawShow(playerid, Textdraw1[playerid]); }
Why it's not work?
|
What does the ReturnUser function do?
You can convert a string into an integer with
strval; if the dialog only accepts IDs then it would be:
pawn Код:
giveplayerid = strval(inputtext);