SA-MP Forums Archive
rnpc.inc error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: rnpc.inc error (/showthread.php?tid=578107)



rnpc.inc error - Kruno88 - 16.06.2015

Yes,I have downloaded the latest version.
Код:
C:\Users\Korisnik\Desktop\Kruno programi\Zombie RP\pawno\include\RNPC.inc(53) : error 070: rational number support was not enabled
C:\Users\Korisnik\Desktop\Kruno programi\Zombie RP\pawno\include\RNPC.inc(54) : error 070: rational number support was not enabled
C:\Users\Korisnik\Desktop\Kruno programi\Zombie RP\pawno\include\RNPC.inc(90) : error 070: rational number support was not enabled
C:\Users\Korisnik\Desktop\Kruno programi\Zombie RP\pawno\include\RNPC.inc(127) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Korisnik\Desktop\Kruno programi\Zombie RP\pawno\include\RNPC.inc(127) : error 008: must be a constant expression; assumed zero
C:\Users\Korisnik\Desktop\Kruno programi\Zombie RP\pawno\include\RNPC.inc(127) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Korisnik\Desktop\Kruno programi\Zombie RP\pawno\include\RNPC.inc(127) : fatal error 107: too many error messages on one line



Re: rnpc.inc error - Lajko1 - 16.06.2015

Show error lines?


Re: rnpc.inc error - Vince - 16.06.2015

Include a_samp.inc or a_npc.inc before anything else. The "rational number not supported" message means that you're not including float.inc, which in turn is included by a_samp.inc.


Re: rnpc.inc error - Kruno88 - 16.06.2015

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