Quote:
Originally Posted by pheadxdll
Edit: Sorry, I should have been more specific: I'm trying to call SHA1File..
SourcePawn Compiler 1.5.0-dev
C:\Users\ws\Documents\Sourcemod\sourcemod-1.5.0-hg3456-windows\addons\sourcemod\scripting\include\sh a1.inc(75) : error 032: array index out of bounds (variable "input")
Code:
new input[1];
ReadFileCell(hFile, input[1]) // ???
stock ReadFileCell(Handle:hndl, &data, size) 3 parameters vs. 2
Missing semicolon too,
What sourcemod compiler are you using? How did this compile?
I've tried a number of fixes but the hash is wrong
|
Oh, didn't try to hash a file ;)
That line should probably read
PHP Code:
ReadFileCell(hFile, input[0], 1);
__________________