help with this script of checking the velocity
#1

hello i am new to scripting and this is really creating problem for me
actually in this i am trying to get the velocity of a player at a particular point and check if the velocity is greater than 60. if it is greater than they need to be fined.
i have not made the fine part but the part to check the speed and give the warning is also not working.
and i am getting warkings in it.
here is the code
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	new float:x,float:y,float:z;
 	if(pickupid == check_speed_1)
	{
	    if(IsPlayerInAnyVehicle(playerid))
	    {
           	GetPlayerVelocity(playerid,x,y,z);
            if (x > 60 || y > 60)
            {
	            SendClientMessage(playerid,COLOR_WHITE,"you have been fined for over speeding");
			}
		}

	}
	return 1;
}
and these are the Warnings that i have been receiving
Код:
D:\san andreas\server\gamemodes\flixter_rp.pwn(205) : warning 213: tag mismatch
D:\san andreas\server\gamemodes\flixter_rp.pwn(205) : warning 213: tag mismatch
D:\san andreas\server\gamemodes\flixter_rp.pwn(205) : warning 213: tag mismatch
D:\san andreas\server\gamemodes\flixter_rp.pwn(206) : warning 213: tag mismatch
D:\san andreas\server\gamemodes\flixter_rp.pwn(206) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
and also please tell me the object id for the speed camera in samp (the yellow camera).
please help
Reply


Messages In This Thread
help with this script of checking the velocity - by akki - 01.02.2013, 13:18
AW: help with this script of checking the velocity - by Blackazur - 01.02.2013, 13:20
Re: AW: help with this script of checking the velocity - by akki - 01.02.2013, 13:23
Re: help with this script of checking the velocity - by RedCrossER - 01.02.2013, 13:24
AW: Re: AW: help with this script of checking the velocity - by Blackazur - 01.02.2013, 13:27
Re: help with this script of checking the velocity - by akki - 01.02.2013, 13:34

Forum Jump:


Users browsing this thread: 3 Guest(s)