public OnPlayerSpawn(playerid) { if(!Variables[playerid][LoggedIn] = true)) { GameTextForPlayer(playerid,"JE VERGAT IN TE1 LOGGEN!",5000,5); Kick(playerid); } return 1; }
login.pwn(144) : warning 211: possibly unintended assignment login.pwn(144) : error 022: must be lvalue (non-constant) login.pwn(144) : warning 215: expression has no effect login.pwn(144) : error 001: expected token: ";", but found ")" login.pwn(144) : error 029: invalid expression, assumed zero login.pwn(144) : fatal error 107: too many error messages on one line
if(!Variables[playerid][LoggedIn] = true)) { |
if(!Variables[playerid][LoggedIn] = true))
if(!Variables[playerid][LoggedIn] == true)
Replace:
PHP код:
PHP код:
|
public OnPlayerSpawn(playerid) {
if(!Variables[playerid][LoggedIn] = true) {
GameTextForPlayer(playerid,"JE VERGAT IN TE LOGGEN!",5000,5);
Kick(playerid);
}
return 1;
}
login.pwn(144) : warning 211: possibly unintended assignment login.pwn(144) : error 022: must be lvalue (non-constant) login.pwn(144) : warning 215: expression has no effect login.pwn(144) : error 001: expected token: ";", but found ")" login.pwn(144) : error 029: invalid expression, assumed zero login.pwn(144) : fatal error 107: too many error messages on one line
if(Variables[playerid][LoggedIn] == false)
if(Variables[playerid][LoggedIn] == 0)
public OnPlayerSpawn(playerid)
{
if(Variables[playerid][LoggedIn] != true)
{
GameTextForPlayer(playerid,"JE VERGAT IN TE LOGGEN!",5000,5);
Kick(playerid);
}
return 1;
}
This has to work:
PHP код:
|