SA-MP Forums Archive
little help? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: little help? (/showthread.php?tid=596385)



little help? - CrazyPerry - 17.12.2015

i have a trouble in this error

Код:
D:\Revolution DM\gamemodes\RDM.pwn(4425) : error 012: invalid function call, not a valid address
D:\Revolution DM\gamemodes\RDM.pwn(4425) : warning 215: expression has no effect
D:\Revolution DM\gamemodes\RDM.pwn(4425) : error 001: expected token: ";", but found ")"
D:\Revolution DM\gamemodes\RDM.pwn(4425) : error 029: invalid expression, assumed zero
D:\Revolution DM\gamemodes\RDM.pwn(4425) : fatal error 107: too many error messages on one line
this is the code
Код:
stock GetOwnedHouses(playerid)
{
	new count;
	foreach(Houses, h)
	{
	    IsOwner(playerid,h)
	    {
     		count++;
		}
	}
	return count;
}
anyone know what to do?


Re: little help? - Jefff - 17.12.2015

pawn Код:
if(IsOwner(playerid,h))



Re: little help? - CrazyPerry - 17.12.2015

Код:
D:\Revolution DM\gamemodes\RDM.pwn(4425) : error 029: invalid expression, assumed zero
D:\Revolution DM\gamemodes\RDM.pwn(4425) : error 012: invalid function call, not a valid address
D:\Revolution DM\gamemodes\RDM.pwn(4425) : error 029: invalid expression, assumed zero
D:\Revolution DM\gamemodes\RDM.pwn(4425) : fatal error 107: too many error messages on one line
a..