public NearByMessage- help please
#1

when i go to compile the script i get the following errors
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(531) : error 025: function heading differs from prototype
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : error 012: invalid function call, not a valid address
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : warning 215: expression has no effect
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : error 001: expected token: ";", but found ")"
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : error 029: invalid expression, assumed zero
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
and now this here is Line 531-548

Код:
public NearByMessage(playerid, color, string[], Float: range)
{
	new Float: PlayerX, Float: PlayerY, Float: PlayerZ;
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i) && IsPlayerSpawned(i))
	   	{
	   		GetPlayerPos(playerid, PlayerX, PlayerY, PlayerZ);
	   		if(IsPlayerInRangeOfPoint(i, range, PlayerX, PlayerY, PlayerZ))
	   		{
			    if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
	    	    {
	    			SendClientMessage(i, color, string);
	    		}
	    	}
		}
	}
}
Reply


Messages In This Thread
public NearByMessage- help please - by Crossfire1989 - 21.01.2013, 11:42
Re: public NearByMessage- help please - by Jakku - 21.01.2013, 11:49
Re: public NearByMessage- help please - by DiGiTaL_AnGeL - 21.01.2013, 11:53
Re: public NearByMessage- help please - by Infinity90 - 21.01.2013, 11:54
Re: public NearByMessage- help please - by Crossfire1989 - 21.01.2013, 11:59
Re: public NearByMessage- help please - by Crossfire1989 - 21.01.2013, 12:02
Re: public NearByMessage- help please - by Jakku - 21.01.2013, 12:17
Re: public NearByMessage- help please - by Crossfire1989 - 21.01.2013, 12:18
Re: public NearByMessage- help please - by Infinity90 - 21.01.2013, 12:19
Re: public NearByMessage- help please - by Crossfire1989 - 21.01.2013, 12:24

Forum Jump:


Users browsing this thread: 5 Guest(s)