[MYSQL R40] cache_get_value_name expected token: ";", but found "]"
#1

Hello, I have problems with pawn, I don't know what is causing this.

The error line is (186):
PHP Code:
cache_get_value_name(0"password"PlayerInfo[playerid][password], sizeof(PlayerInfo[playerid][password]) ); 
and before it, I have this:
PHP Code:
cache_get_value_name_int(0"id"PlayerInfo[playerid][account_id]); 
together:
PHP Code:
    cache_get_value_name_int(0"id"PlayerInfo[playerid][account_id]);
    
cache_get_value_name(0"password"PlayerInfo[playerid][password], sizeof(PlayerInfo[playerid][password]) ); 
The "PlayerInfo" enum:

PHP Code:
enum EnumPlayerInfo
{
    
account_id,
    
bool:prompted,
    
bool:registered,
    
bool:authenticated,
    
password[50],
    
email[64],
    
registered_at[40],
    
last_login[40],
    
last_login_ip[30],
    
last_login_country[50]
}
new 
PlayerInfo[MAX_PLAYERS][EnumPlayerInfo]; 
and finally the error:

Code:
bare.pwn(186) : error 001: expected token: "]", but found "-identifier-"
bare.pwn(186) : warning 215: expression has no effect
bare.pwn(186) : error 001: expected token: ";", but found "]"
bare.pwn(186) : error 029: invalid expression, assumed zero
bare.pwn(186) : fatal error 107: too many error messages on one line
What is causing this?
If I repalce 'sizeof..' with a static number like 128, the error disappears.

Thank you in advance.
Reply


Messages In This Thread
[MYSQL R40] cache_get_value_name expected token: ";", but found "]" - by iSanchez - 14.04.2017, 05:23
Re: [MYSQL R40] cache_get_value_name expected token: ";", but found "]" - by Vince - 14.04.2017, 05:41
Re: [MYSQL R40] cache_get_value_name expected token: ";", but found "]" - by raydx - 14.04.2017, 08:14
Respuesta: Re: [MYSQL R40] cache_get_value_name expected token: ";", but found "]" - by iSanchez - 14.04.2017, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)