14.10.2018, 11:17
Код:
[18:13:53] [debug] Run time error 4: "Array index out of bounds" [18:13:53] [debug] AMX backtrace: [18:13:53] [debug] #0 00400200 in public OnPlayerSpawn (1) from GTA-RP.amx
Код:
new Text3D:NameFam[MAX_PLAYERS]; public OnPlayerSpawn(playerid) { SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1); new nfa[128], Float:plf[3]; GetPlayerPos(playerid, plf[0], plf[1], plf[2]); format(nfa, sizeof(nfa), "%s", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyName]); Delete3DTextLabel(NameFam[playerid]); NameFam[playerid] = Create3DTextLabel(nfa, COLOR_WHITE, plf[0], plf[1], plf[2], 20.0, GetPlayerVirtualWorld(playerid)); Attach3DTextLabelToPlayer(NameFam[playerid], playerid, 0.0, 0.0, -0.2); return 1; }