24.05.2015, 12:33
"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);