How to select playerid in DIALOG_STYLE_IMPUT
#8

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
"inputtext" is string not an integer. sscanf can be used:
pawn Код:
new f_id;
if (sscanf(inputtext, "r", f_id)) return // player didn't input a number.
if (f_id == INVALID_PLAYER_ID) return // not connected

..., pInfo[f_id][Faction);
Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)