Jump to content

Question

Posted

Problema intalnita (descriere): Undefined pInfo
Ero(area / rile) / warning-(ul / urile): Dau compile si apare : 

 warning 201: redefinition of constant/macro (symbol "pInfo")


Liniile de cod / sursa / script-ul(obligatoriu):

enum pInfo
{
	pCarLic,
};

Restul variabilelor, pLevel, pAdmin, pHelper etc sunt redate aici :

 

public WhenPlayerLogin(playerid)
{
.....
if(rows != 0)
		{
		    cache_get_field_content(0, "password", temp),  format(PlayerInfo[playerid][pPassword], 128, temp);
			cache_get_field_content(0, "Level", temp), PlayerInfo[playerid][pLevel] = strval(temp);
			cache_get_field_content(0, "AdminLevel", temp), PlayerInfo[playerid][pAdmin] = strval(temp);
			cache_get_field_content(0, "HelperLevel", temp), PlayerInfo[playerid][pHelper] = strval(temp);
			cache_get_field_content(0, "Cash", temp), PlayerInfo[playerid][pCash] = strval(temp);
			cache_get_field_content(0, "Account", temp), PlayerInfo[playerid][pAccount] = strval(temp);
			cache_get_field_content(0, "Email", temp),  format(PlayerInfo[playerid][pEmail], 256, temp);
			cache_get_field_content(0, "Registred", temp), PlayerInfo[playerid][pRegistred] = strval(temp);
			cache_get_field_content(0, "Tutorial", temp), PlayerInfo[playerid][pTutorial] = strval(temp);
			cache_get_field_content(0, "Sex", temp), PlayerInfo[playerid][pSex] = strval(temp);
			cache_get_field_content(0, "Age", temp), PlayerInfo[playerid][pAge] = strval(temp);
			cache_get_field_content(0, "PhoneNumber", temp), PlayerInfo[playerid][pPhoneNumber] = strval(temp);
			cache_get_field_content(0, "PremiumAccount", temp), PlayerInfo[playerid][pPremiumAccount] = strval(temp);
			cache_get_field_content(0, "Banned", temp), PlayerInfo[playerid][pBanned] = strval(temp);
			cache_get_field_content(0, "Warns", temp), PlayerInfo[playerid][pWarns] = strval(temp);
			cache_get_field_content(0, "Leader", temp), PlayerInfo[playerid][pLeader] = strval(temp);
			cache_get_field_content(0, "Member", temp), PlayerInfo[playerid][pMember] = strval(temp);
			cache_get_field_content(0, "Rank", temp), PlayerInfo[playerid][pRank] = strval(temp);
			cache_get_field_content(0, "Skin", temp), PlayerInfo[playerid][pSkin] = strval(temp);
			cache_get_field_content(0, "IP", temp), PlayerInfo[playerid][pIP] = strval(temp);
			//cache_get_field_content(0, "LicenceCar", temp), PlayerInfo[playerid][pCarLic] == 0);
		}


Imagini / Video (optional):-
Ati incercat sa rezolvati singur?: Da. Dar fara succes.

5 answers to this question

Recommended Posts

  • 0
Posted

Look for the enum governing that variable and change it to PInfo, also change the second dimension of that variable to PInfo.
You can make the name anything but I just gave you a name for it.

  • 0
Posted

WTF bro..

Look for the enum governing that variable and change it to PInfo, also change the second dimension of that variable to PInfo.
You can make the name anything but I just gave you a name for it.

  • 0
Posted

Salut.

Pune

new PlayerInfo[MAX_PLAYERS][pInfo];

Dupa

enum pInfo
{
	pCarLic,
};

 

 

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.