OnPlayerSpawn check
#1

Hey guys!

I am busy with a login system but it won't work for me and I can't figure out what I'm doing wrong.

Here is my code:
Код:
public OnPlayerSpawn(playerid) {
	if(!Variables[playerid][LoggedIn] = true)) {
	GameTextForPlayer(playerid,"JE VERGAT IN TE1 LOGGEN!",5000,5);
	Kick(playerid);
	}
	return 1;
}
It gives these errors on the "if" line:

Код:
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
Thanks in advance!
Reply


Messages In This Thread
OnPlayerSpawn check - by nickbouwhuis - 10.11.2012, 12:18
Re: OnPlayerSpawn check - by Skillet` - 10.11.2012, 12:23
Re: OnPlayerSpawn check - by Plovix - 10.11.2012, 12:26
Re: OnPlayerSpawn check - by nickbouwhuis - 10.11.2012, 12:39
Re: OnPlayerSpawn check - by Konstantinos - 10.11.2012, 12:42
Re: OnPlayerSpawn check - by Plovix - 10.11.2012, 12:45
Re: OnPlayerSpawn check - by nickbouwhuis - 10.11.2012, 12:46
Re: OnPlayerSpawn check - by Plovix - 10.11.2012, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)