sscanf problem
#2

i is for integer, and you are trying to capture it in a string. Strval is not neccessary if you use i or d. Also sscanf returns 0 on success, and other values on error. So

pawn Код:
new
    age;
if(!sscanf(inputtext, "i", age)) {
    if(13 <= age <= 99) return SendClientMessage(playerid, -1, "You dun goof'd, age between 13 and 99 must be, Yoda said so");
    PlayerInfo[playerid][pAge] = age;
Reply


Messages In This Thread
sscanf problem - by PakPak - 06.09.2013, 14:03
Re: sscanf problem - by Misiur - 06.09.2013, 14:10
Re: sscanf problem - by PakPak - 06.09.2013, 14:26

Forum Jump:


Users browsing this thread: 2 Guest(s)