Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: array
1. Array index out of bounds
[debug] Run time error 4: "Array index out of bounds"

B??d z tematu, linijka z crashdetectu:

Kod:

textDrawSetString(StartGameDraw[1], "~p~%s ~w~~h~- Aby sie zapisac wpisz ~y~%s", gameFunName[StartGameID-GAME_FUN_MIN], gameFunCommands[StartGameID-GAME_FUN_MIN]);


w czym jest problem?
2. array coś tam
Pawn

func 
dfile_ReadInt("is_Register");
xurrentDM[isRegister] = strval(func);


Pawn

error 033
: array must be indexed (variable "func")


No i jak my?licie koledzy gdzie mam b??d >.<

(Tak, wiem korzystanie z plik?w to przestarza?a metoda, mi wygodniej na plikach xd)
3. must be assigned to an array
[pawn]
CoolServergamemodesPCS.pwn(209) : error 006: must be assigned to an array
CoolServergamemodesPCS.pwn(210) : error 006: must be assigned to an array
CoolServergamemodesPCS.pwn(211) : error 006: must be assigned to an array
CoolServergamemodesPCS.pwn(212) : error 006: must be assigned to an array
CoolServergamemodesPCS.pwn(213) : error 006: must be assigned to an array
CoolServergamemodesPCS.pwn(214) : error 006: must be assigned to an array
CoolServergamemodesPCS.pwn(215) : error 006: must be assigned to an array
CoolServergamemodesPCS.pwn(216) : error 006: must be assigned to an array
CoolServergamemodesPCS.pwn(218) : error 035: argument type mismatch
CoolServergamemodesPCS.pwn(221) : error 035: argument type mismatch
CoolServergamemodesPCS.pwn(224) : error 035: argument type mismatch
CoolServergamemodesPCS.pwn(227) : error 035: argument type mismatch
CoolServergamemodesPCS.pwn(230) : error 035: argument type mismatch
[/pawn]

[pawn]

fServ[ServerUrl] = dini_Get("map/Ustawienia.ini","ServerUrl");
fServ[ServerVersion] = dini_Get("map/Ustawienia.ini","ServerVersion");
fServ[ServerAuthor] = dini_Get("map/Ustawienia.ini","ServerAuthor");
fServ[ServerCompiled] = dini_Get("map/Ustawienia.ini","CompiledDate");
fServ[ServerRcon] = dini_Get("map/Ustawienia.ini","RconPassword");
fServ[ServerAdmin] = dini_Get("map/Ustawienia.ini","AdminPass...
4. must be assigned to an array ?????
Pawn

PlayerEXP
[playerid] = dini_Get(query,"Score");
PlayerKills[playerid] = dini_Get(query,"Kills");
PlayerDeaths[playerid] = dini_Get(query,"Deaths");


Pawn

new PlayerEXP[MAX_PLAYERS];
new 
PlayerKills[MAX_PLAYERS];
new 
PlayerDeaths[MAX_PLAYERS];


Pawn

error 006
must be assigned to an array
error 006must be assigned to an array
error 006must be assigned to an array


Co mo?e by? powodem b??du ukazanego wy?ej ^^
My?l? i nie potrafi? znale?? przyczyny ;(
5. [DM] array sizes do not match, or destination array is
Witam forumowicz?w. Ot?? mam problem z map?, zmieni?em system zapisu danych na DOF2 i pokaza? mi si? taki error :)


Kod:

C:Users?ukaszDesktopEXTgamemodesEXT.pwn(12172) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


w tej?e linijce

Kod:

House[HouseId][Name] = DOF2_GetString(FName, "Name");


Naprawd? nie mog? sobie z tym poradzi? i prosi?bym o pomoc :)
6. [DM] array sizes do not match, or destination array is
Witam forumowicz?w. Ot?? mam problem z map?, zmieni?em system zapisu danych na DOF2 i pokaza? mi si? taki error :)


Kod:

C:Users?ukaszDesktopEXTgamemodesEXT.pwn(12172) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


w tej?e linijce

Kod:

House[HouseId][Name] = DOF2_GetString(FName, "Name");


Naprawd? nie mog? sobie z tym poradzi? i prosi?bym o pomoc :)
7. [INNE] Pętle - Crashe - Array
Witajcie, m?j b??d polega na tym, ?e po zabiciu kogo?, lub po zabiciu mnie serwer pada, a crash detect wywala co? takiego:

[16:14] Script[gamemodesmysql2.amx]: During execution of OnPlayerDeath():
[16:14] Script[gamemodesmysql2.amx]: Run time error 4: "Array index out of bounds"
[16:14] Error information:
[16:14] Array max index is 199 but accessing an element at 65535
[16:14] Call stack (most recent call first):
[16:14] The server has crashed executing 'gamemodesmysql2.amx'
[16:14] Call stack (most recent call first):

Prosz? o pomoc, je?li mo?na, pozdrawiam.