02.01.2011, 14:11
Код:
D:\Documents and Settings\Leandro\Desktop\gm.pwn(6650) : warning 208: function with tag result used before definition, forcing reparse D:\Documents and Settings\Leandro\Desktop\gm.pwn(25) : warning 235: public function lacks forward declaration (symbol "db_hash") D:\Documents and Settings\Leandro\Desktop\gm.pwn(27) : warning 219: local variable "var0" shadows a variable at a preceding level D:\Documents and Settings\Leandro\Desktop\gm.pwn(27) : error 035: argument type mismatch (argument 1) D:\Documents and Settings\Leandro\Desktop\gm.pwn(28) : warning 219: local variable "var1" shadows a variable at a preceding level D:\Documents and Settings\Leandro\Desktop\gm.pwn(33) : error 028: invalid subscript (not an array or too many subscripts): "arg0" D:\Documents and Settings\Leandro\Desktop\gm.pwn(33) : error 029: invalid expression, assumed zero D:\Documents and Settings\Leandro\Desktop\gm.pwn(33) : error 029: invalid expression, assumed zero D:\Documents and Settings\Leandro\Desktop\gm.pwn(33) : fatal error 107: too many error messages on one line
Код:
{ new var0[24]; GetPlayerName(playerid, var0, 24); new var1[255]; function620(var1, functionE14(var0)); return var1; }
Код:
public db_hash(arg0) { new var0 = strlen(arg0); new var1 = 1; new var2 = 0; new var3 = 0; for(var3 = 0; var3 < var0; var3++) { var1 = (var1 + arg0[var3]) % 65521; var2 = (var2 + var1) % 65521; } return var1 + (var2 << 16); }