View Single Post
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-29-2013 , 19:20   Re: [INC] SHA-1 hashing stocks
Reply With Quote #7

Quote:
Originally Posted by pheadxdll View Post
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(hFileinput[0], 1); 
__________________
Peace-Maker is offline