19.04.2012, 14:18
strcmp is for comparing strings, not integers.
This should work. strval converts the string into an integer, so you can use the standard equal sign operator to compare the two values.
pawn Код:
if(weaponid == strval(string)) {
fclose(file);
return 1;
}