Force System
#1

Hi, I have some problem with my force system. I add functions and stock, but I have three errors, which can not cope.

Код:
stock pName3(playerid)
{
	new bw[64], sila[64], string[256], pinfo=PlayerInfo[playerid][pSila];
	if(pinfo<2999)
 	format(sila, sizeof(sila), "(%dj)", pinfo);
	else
	if(PlayerInfo[playerid][pBW]>0)
	{
	    if(PlayerInfo[playerid][pPlec]==1)
	    bw = ", nieprzytomny";
		else
		bw = ", nieprzytomna";
	}
	return string;
}
Errors:
Код:
error 017: undefined symbol "PlayerInfo"
error 017: undefined symbol "PlayerInfo"
error 017: undefined symbol "PlayerInfo"
Code:
Код:
enum pInfo
	{
	    pHaslo[64],
		pNickOOC[64],
            pSila,
            //and more code...[...]
          };
Код:
new PlayerInfo[Max_Players][pInfo];
OnGameModeInit
Код:
PlayerInfo[playerid][pSila]=3000;
Reply
#2

Nowhere is used, this is the only stock and the only place where I have used this force.
Reply
#3

He's asking if the player array (PlayerInfo) is declared before the pName3 function. If it isn't, then that is the error.

For personal curiosity, why do you have a pName3 function? Do you have pName1 and pName2? If so, why?
Reply
#4

You put [MAX_PLAYERS] or [Max_Players]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)