undefined symbol "playerid"
#1

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];

Reply
#2

post the function where is error
Reply
#3

The error code is above you
Reply
#4

all the function where the error occurs.
Reply
#5

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
}
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)