[ Need help here ]
#1

Код:
C:\Users\Daniel\SanAndreas Muliplayer\server\gamemodes\ricaniel.pwn(464) : error 017: undefined symbol "IsNumeric"
why?
Reply
#2

Can you give us the code ?
Reply
#3

Quote:
Originally Posted by jotan.
Посмотреть сообщение
Can you give us the code ?
same as usual
even if i put

pawn Код:
if(!IsNumeric(inputtext)) return 1;
still same
Reply
#4

Add this at the bottom:
pawn Код:
IsNumeric(const string[])
{
    for (new i = 0, j = strlen(string); i < j; i++)
    {
        if (string[i] > '9' || string[i] < '0') return 0;
    }
    return 1;
}
Reply
#5

download this file http://dracoblue.net/download/dutils-110/30/ Credits to Dracoblue

Then, it the top of your script put
Код:
 include <dutils>
Should work
Reply
#6

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
Add this at the bottom:
pawn Код:
IsNumeric(const string[])
{
    for (new i = 0, j = strlen(string); i < j; i++)
    {
        if (string[i] > '9' || string[i] < '0') return 0;
    }
    return 1;
}
oh thank you
Reply
#7

Welcome
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)