cache_get_field_content_float
#1

I have a Error in my Code,
here the code

case 3:
{
pInfo[playerid][Geld] = cache_get_field_content_int(0,"Geld");
pInfo[playerid][Leben] = cache_get_field_content_float(0,"Leben"); // the error
cache_get_field_content(0,"LastLogin",pInfo[playerid][LastLogin]);
pInfo[playerid][pLogged] = true;
SpawnPlayer(playerid);
return 1;
}

And the Errorcode:

warning 213: tag mismatch

I dont know why there is a warning, please help me
Reply
#2

Where you defined enum used in pInfo did you put
pawn Код:
enum /*Name*/
//...
Float:Leben,
//...
}
?
Reply
#3

Do you mean that?

enum pData
{
Name[MAX_PLAYER_NAME+1],
Geld,
float:Leben,
LastLogin[11],
boolLogged
}

new pInfo[MAX_PLAYERS][pData];
Reply
#4

Quote:
Originally Posted by TheLostMC
Посмотреть сообщение
Do you mean that?

enum pData
{
Name[MAX_PLAYER_NAME+1],
Geld,
float:Leben,
LastLogin[11],
boolLogged
}
Should be

Код:
enum pData
{
	Name[MAX_PLAYER_NAME+1],
	Geld,
	Float:Leben,
	LastLogin[11],
	bool:pLogged
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)