cache_get_field_content_float - 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: cache_get_field_content_float (
/showthread.php?tid=462895)
cache_get_field_content_float -
TheLostMC - 09.09.2013
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
Re: cache_get_field_content_float -
[MG]Dimi - 09.09.2013
Where you defined enum used in pInfo did you put
pawn Код:
enum /*Name*/
//...
Float:Leben,
//...
}
?
Re: cache_get_field_content_float -
TheLostMC - 10.09.2013
Do you mean that?
enum pData
{
Name[MAX_PLAYER_NAME+1],
Geld,
float:Leben,
LastLogin[11],
bool
Logged
}
new pInfo[MAX_PLAYERS][pData];
Re: cache_get_field_content_float -
n0minal - 22.01.2015
Quote:
Originally Posted by TheLostMC
Do you mean that?
enum pData
{
Name[MAX_PLAYER_NAME+1],
Geld,
float:Leben,
LastLogin[11],
bool Logged
}
|
Should be
Код:
enum pData
{
Name[MAX_PLAYER_NAME+1],
Geld,
Float:Leben,
LastLogin[11],
bool:pLogged
}