rnpc.inc error
#4

Thank you,but now I have another error.
Quote:

new ZNPC[MAX_RNPC_POLICE][ZNPC_enum] = {{-1, -1, 0.0, 0.0, 0.0, 0, 0, -1}, {-1, -1, 0.0, 0.0, 0.0, 0, 0, -1},
{-1, -1, 0.0, 0.0, 0.0, 0, 0, -1}, {-1, -1, 0.0, 0.0, 0.0, 0, 0, -1}, {-1, -1, 0.0, 0.0, 0.0, 0, 0, -1},
{-1, -1, 0.0, 0.0, 0.0, 0, 0, -1}, {-1, -1, 0.0, 0.0, 0.0, 0, 0, -1}, {-1, -1, 0.0, 0.0, 0.0, 0, 0, -1} }; //29

Quote:

public OnPlayerSpawn(playerid)
{
if (IsPlayerNPC(playerid)) {
new slot = -1;
for (new i = 0; i < MAX_RNPC_POLICE; i++) {
if (ZNPC[i][ZNPC_NPCID] == playerid) {
slot = i;
break;
}
}

if (slot > -1) {
SetPlayerSkin(playerid, ZNPC[slot][ZNPC_SKIN]);
}
}
CallLocalFunction("RNPC_OnPlayerSpawn", "i", playerid);
}//216

Quote:

C:\Users\Korisnik\Desktop\Kruno programi\Zombie DM\filterscripts\Zombienpcs.pwn(29) : error 052: multi-dimensional arrays must be fully initialized
C:\Users\Korisnik\Desktop\Kruno programi\Zombie DM\filterscripts\Zombienpcs.pwn(216) : warning 209: function "RNPC_OnPlayerSpawn" should return a value

Reply


Messages In This Thread
rnpc.inc error - by Kruno88 - 16.06.2015, 19:17
Re: rnpc.inc error - by Lajko1 - 16.06.2015, 19:43
Re: rnpc.inc error - by Vince - 16.06.2015, 19:47
Re: rnpc.inc error - by Kruno88 - 16.06.2015, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)