Problem - "IsNum"
#1

Well, I have bought the Everlast Gaming gamemode, and the scripter/seller fucked me up and won't help me.
I'm trying to compile the gamemode, and I get 8 erros, all of them are : "undefined symbol "IsNum".
I've tried to define it by addine "new IsNum;" on the top of the script, but it gives me 4 errors:
"invalid function call, not a valid address"
"expected token: ";", but found ")""
"invalid expression, assumed zero"
"too many error messages on one line"

Can somebody help me please? I will be really sad if I will find out that I have lost some money on script with doesn't even work.
Reply
#2

Define them with #define? If it sais it's undefined then you'll need to do

#define IsNum
Reply
#3

Um, is it the same as IsNumeric?

Not sure, but here is the IsNumeric

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
#4

Well, I deleted the "New IsNum;", and "#define IsNum" it, now I get a few errors:

error 033: array must be indexed (variable "strrest")
error 033: array must be indexed (variable "cmd")
error 033: array must be indexed (variable "cmd")
error 033: array must be indexed (variable "cmd")
error 033: array must be indexed (variable "cmd")
error 033: array must be indexed (variable "cmd")
error 033: array must be indexed (variable "cmd")
error 033: array must be indexed (variable "weapon")

Thank you for your quick respond, but what should I do now?
Reply
#5

That's weird, the gamemode said it wasn't defined? now you try and define it, and you get more errors

EDIT : Show the errors, in a [code] format and show the lines where the errors are in. a [code] format also please.
Reply
#6

Yes I do. Can somebody else please give a look on it, I really need to fix these errors.
Reply
#7

Lol mimic you fail, un-defined means not in your script, in other words you need to have a function called IsNum in your script.
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
#8

Isn't there something like #undefine maybe?

May be another language I am learning, but I'm pretty sure it's pawn xD
Reply
#9

Thank you very much! No errors
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)