function argument may not have a default value.
#1

public function's arguments cant own a default value

Code:
forward kick(playerid, bool:check = false);
public kick(playerid, bool:check = false) {
	if(!kick) SetTimerEx("kick", 1000, false, "dd", playerid, true);
	else Kick(playerid);
}
Just make a simple example, and we complie it.
get a error about that.

Code:
error 059: function argument may not have a default value (variable "check")
long time not coding makes my programming disordered.Fxxk.
Reply


Messages In This Thread
function argument may not have a default value. - by iLuXing - 04.03.2016, 12:33
Re: function argument may not have a default value. - by iLuXing - 04.03.2016, 12:35
Re: function argument may not have a default value. - by Threshold - 04.03.2016, 13:21

Forum Jump:


Users browsing this thread: 1 Guest(s)