Run time error 4: "Array index out of bounds"
#1

Код:
[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;
        }
Reply
#2

pawn Код:
FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyName]);
What's the logic of doing this just to show a name?
Reply
#3

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
pawn Код:
FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyName]);
What's the logic of doing this just to show a name?
Family
Reply
#4

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)