public NearByMessage- help please
#5

ok now i get

C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(453) : warning 202: number of arguments does not match definition
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(472) : warning 202: number of arguments does not match definition
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


4 Errors.

SendClientMessage(playerid, WHITE, "Vehicle engine stopped successfully.");
line 453= NearByMessage(playerid, PURPLE, msg);
DeletePVar(playerid, "fuelonoff");

format(msg, sizeof(msg), " ** %s starts the engine of their vehicle.", Character);
line 472= NearByMessage(playerid, PURPLE, msg);
arr_Engine{vehicleid} = 1;

Код:
public NearByMessage(playerid, color, string[], Float: range)
{
	new Float: PlayerX, Float: PlayerY, Float: PlayerZ;
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
line 536=
Код:
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: 2 Guest(s)