How to fix?
#1

C:\Users\dR\Desktop\rpg.pwn(730) : error 010: invalid function or declaration
C:\Users\dR\Desktop\rpg.pwn(731) : error 010: invalid function or declaration
C:\Users\dR\Desktop\rpg.pwn(732) : error 010: invalid function or declaration
C:\Users\dR\Desktop\rpg.pwn(733) : error 010: invalid function or declaration
C:\Users\dR\Desktop\rpg.pwn(734) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.


Lines:
730: if(pData[playerid][Faction] == 1) //If the faction is 1
731: if(pData[playerid][Faction] == 1 || pData[playerid][Faction] == 2) //Checks if it is faction 1 or 2
732: if(0 < pData[playerid][Faction] < 3) //Checks if it is between 0 and 3
733: if(pData[playerid][Faction] != 0) //If the faction is not 0
734: if(pData[playerid][Faction] == 1 && pData[playerid][Rank] == 6) //If the faction is 1 and the rank is 6
Reply
#2

It's just a guess, I don't know the name of your array, but I can tell pData is most likely an enumeration, so try both of this, and see wich one works:

pawn Код:
if(PlayerData[playerid][Faction] == 1) //If the faction is 1
if(PlayerData[playerid][Faction] == 1 || pData[playerid][Faction] == 2) //Checks if it is faction 1 or 2
if(0 < PlayerData[playerid][Faction] < 3) //Checks if it is between 0 and 3
if(PlayerData[playerid][Faction] != 0) //If the faction is not 0
if(PlayerData[playerid][Faction] == 1 && PlayerData[playerid][Rank] == 6) //If the faction is 1 and the rank is 6
If that doesn't work, replace "PlayerData" with "PlayerInfo" !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)