error 035: argument type mismatch (argument 1)
#3

strcmp is for comparing strings, not integers.

pawn Код:
if(weaponid == strval(string)) {
    fclose(file);
    return 1;
}
This should work. strval converts the string into an integer, so you can use the standard equal sign operator to compare the two values.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)