01.02.2013, 13:18
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
and these are the Warnings that i have been receiving
and also please tell me the object id for the speed camera in samp (the yellow camera).
please help
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;
}
Код:
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.
please help


