Help .. "IsNumeric"
#1

C:\Users\Dani\Desktop\A-RP\gamemodes\A-RP.pwn(1300) : error 017: undefined symbol "IsNumeric"
Код:
		{
		    if(response != 0)
			{
			    if(!IsNumeric(inputtext))
			        return	ShowPlayerDialog(playerid, 5, 1, "Create a Pickup", "Enter a model number to use for this pickup. (wiki.sa-mp.com)", "Enter", "Cancel");
				dini_IntSet(PlayerInfo[playerid][PickupRef], "Model", strval(inputtext));
				dini_IntSet(PlayerInfo[playerid][PickupRef], "Used", 1);
				ShowPlayerDialog(playerid, 6, 0, "Create a Pickup", "Your current location will be used to create this pickup.\r\nYou can edit it later.", "Enter", "Cancel");
			}
			else
				ShowPlayerDialog(playerid, 5, 1, "Create a Pickup", "Enter a model number to use for this pickup. (wiki.sa-mp.com)", "Enter", "Cancel");
		}

Please tell me what's wrong.. ??
Reply
#2

IsNumeric is undefined, that's what it says. Pretty self explanatory.

pawn Код:
stock IsNumeric(const str[])
{
    for(new i, len = strlen(str); i < len; i++)
    {
        if(!('0' <= str[i] <= '9')) return false;
    }
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)