rnpc.inc error
#1

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
Reply
#2

Show error lines?
Reply
#3

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.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)