error 035: argument type mismatch (argument 1)??
#1

Hey there!

I was makeing a timer to kick a player if they have more than 0 cash.
But i get those 2 errors:

Код:
(256) : error 035: argument type mismatch (argument 1)
(259) : error 035: argument type mismatch (argument 1)
Of top of my script:

Код:
forward moneyhack(i);
on public OnFilterScriptInit():

Код:
SetTimer("moneyhack",1000,1);
Bottom of script:

Код:
public moneyhack()
{
	new cash;
	for(new i=0; i < MAX_PLAYERS; i++)
	cash = GetPlayerMoney("i"); (Line 256)
	if(cash < 0)
	{
	Kick("i"); (Line 259)
	return 1;
	}
	return 1;
}
Any1 know how to to fix this? Also please explain why/how to fix it, as i'm trying to learn how to script

-Naxix
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)