12.09.2018, 11:21
this warning doesn't make my filterscript work properly anymore.
g_Turf[i][turfId] = GangZoneCreate(g_Turf[i][turfPos][0], g_Turf[i][turfPos][1], g_Turf[i][turfPos][2], g_Turf[i][turfPos][3], COLOR_CHANGE_ALPHA(g_Team[g_Turf[i][turfOwner]][teamColor]), 1.;
this is the line i get the error from.
Код:
public OnFilterScriptInit() { new iTeamTurfs[sizeof(g_Team)] ; for (new i, j = sizeof(g_Turf); i < j; i++) { g_Turf[i][turfId] = GangZoneCreate(g_Turf[i][turfPos][0], g_Turf[i][turfPos][1], g_Turf[i][turfPos][2], g_Turf[i][turfPos][3], COLOR_CHANGE_ALPHA(g_Team[g_Turf[i][turfOwner]][teamColor]), 1.8); g_Turf[i][turfTimer] = -1; for (new k, l = sizeof(g_Team); k < l; k++) { g_MembersInTurf[i][k] = 0; } iTeamTurfs[g_Turf[i][turfOwner]]++; } print(" "); print("_________________| Turfwar Script |_________________"); print("Attempting to initialize ''turfs.amx''..."); print(" "); for (new i, j = sizeof(g_Team); i < j; i++) { printf("Loaded %i turfs for team %s", iTeamTurfs[i], g_Team[i][teamName]); } print(" "); printf("Total %i turfs loaded", sizeof(g_Turf)); print("_________________________________________________"); print(" "); return 1; }
this is the line i get the error from.