SA-MP Forums Archive
undefined symbol "playerid" - 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: undefined symbol "playerid" (/showthread.php?tid=656543)



undefined symbol "playerid" - linhpro200294 - 18.07.2018

Who know this fix help me with please?

Quote:

./includes/ngg.pwn(5876) : error 017: undefined symbol "playerid"
./includes/ngg.pwn(5890) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Code Error:


Line 5876:

Quote:

format(string, sizeof(string), "(( Bang da bi thuong %d lan, /damages %d de biet them thong tin. ))", TotalPlayerDamages[playerid], playerid);

Line 5890:

Quote:

format(string, sizeof(string), "(( Bang da bi thuong %d lan, /damages %d de biet them thong tin. ))", TotalPlayerDamages[playerid], playerid);

Quote:

enum E_DAMAGE_INFO
{
eDamageTaken,
eDamageTime,

eDamageWeapon,

eDamageBodypart,
eDamageArmor,

eDamageBy
}

new DamageInfo[MAX_PLAYERS][100][E_DAMAGE_INFO];
new TotalPlayerDamages[MAX_PLAYERS];




Re: undefined symbol "playerid" - Florin48 - 18.07.2018

post the function where is error


Re: undefined symbol "playerid" - linhpro200294 - 18.07.2018

The error code is above you


Re: undefined symbol "playerid" - Florin48 - 18.07.2018

all the function where the error occurs.


Re: undefined symbol "playerid" - SlayerHodge - 18.07.2018

format(string, sizeof(string), "(( Bang da bi thuong %d lan, /damages %d de biet them thong tin. ))", TotalPlayerDamages[playerid], playerid);
Please post the code sorounding this.

Wheree did you place this format? under Public what?

Which ever above or within the function(s)

Place new playerid; within the functions braces.



Example
Public Funtime()
{
new playerid;
format(string, sizeof(string), "(( Bang da bi thuong %d lan, /damages %d de biet them thong tin. ))", TotalPlayerDamages[playerid], playerid);
return1
}


Re: undefined symbol "playerid" - SlayerHodge - 19.07.2018

well you see ******, he is not providing the code, so it's safe assumption this is a temp solution.