SA-MP Forums Archive
Force System - 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: Force System (/showthread.php?tid=419537)



Force System - .Error - 01.03.2013

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;



Re: Force System - .Error - 01.03.2013

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


Re: Force System - Bakr - 01.03.2013

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?


Re: Force System - Kenway - 01.03.2013

You put [MAX_PLAYERS] or [Max_Players]