Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team F:\Downloads\pstudio-0.8.3(2)\temp399.sma(522) : error 028: invalid subscript (not an array or too many subscripts): "Data" F:\Downloads\pstudio-0.8.3(2)\temp399.sma(522) : warning 215: expression has no effect F:\Downloads\pstudio-0.8.3(2)\temp399.sma(522) : error 001: expected token: ";", but found "]" F:\Downloads\pstudio-0.8.3(2)\temp399.sma(522) : error 029: invalid expression, assumed zero F:\Downloads\pstudio-0.8.3(2)\temp399.sma(522) : fatal error 107: too many error messages on one line Compilation aborted. 4 Errors. Could not locate output file D:\cs\cstrike\addons\amxmodx\plugins\DefMod.amx (compile failed). Compilation Time: 1,30 sec
I mój kod.
public PreCreateClassHandle(FailState, Handle:Query, Error[], Errorcode, Data[], DataSize)
{
new id = Data[0] // Linia na której mi wywala błąd.
if(Errorcode)
log_to_file("defense_sql.log", "Blad w zapytaniu: %s [PreCreateClass]", Error)
if(FailState == TQUERY_CONNECT_FAILED)
{
log_to_file("defense_sql.log", "Nie mozna podlaczyc sie do serwera. [PreCreateClass]")
gClassAsked[id] = false
return PLUGIN_HANDLED
}
else if(FailState == TQUERY_QUERY_FAILED)
{
log_to_file("defense_sql.log","Zapytanie anulowane. [PreCreateClass]")
gClassAsked[id] = false
return PLUGIN_HANDLED
}
gClassAsked[id] = true
if(!SQL_MoreResults(Query))
CreateClass(id)
else
ShowClassMenuQuery(id)
return PLUGIN_HANDLED
}
Nie mam pojęcia o co może chodzić...