[Help] 2 Erros In AntiDriveBy (seif)
#1

Hello,

i downloaded The AntiDriveBy By Seif !
thin i put it into my mode ..
and i'm compiling .. then ERROR !

Код:
D:\SerVeR\gamemodes\LsMod.pwn(3880) : warning 208: function with tag result used before definition, forcing reparse
D:\SerVeR\gamemodes\LsMod.pwn(3604) : error 017: undefined symbol "newstate"
D:\SerVeR\gamemodes\LsMod.pwn(3605) : error 017: undefined symbol "newstate"
D:\SerVeR\gamemodes\LsMod.pwn(3695) : warning 219: local variable "name" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{

    //AntiDb
  	if (newstate == 2 && DB[playerid] == 1) KillTimer(dbtime);
		if (newstate == PLAYER_STATE_ONFOOT && DB[playerid] == 1) AntiDriveBy(playerid);

    if (newkeys == 16 && InShamal[playerid] != 0)
    {
    new Float:X, Float:Y, Float:Z, Float:A;
    GetVehiclePos(InShamal[playerid], X, Y, Z);
    GetVehicleZAngle(InShamal[playerid], A);
    X += (5.0*floatsin(-(A-45.0), degrees)), Y += (5.0*floatcos(-(A-45.0), degrees));
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, X, Y, Z-0.94);
    SetPlayerFacingAngle(playerid, A);
    InShamal[playerid] = 0;
		}
    if(!gPlayerUsingLoopingAnim[playerid]) return;
		//SendClientInt(playerid, RED, "ID: %d", newkeys);
		if(IsKeyJustDown(KEY_HANDBRAKE,newkeys,oldkeys)) {
	  StopLoopingAnim(playerid);
    TextDrawHideForPlayer(playerid,txtAnimHelper);
    animation[playerid] = 0;
  	}
		}

thanks to helpers.
Reply
#2

ask in that topic!
Reply
#3

Quote:
Originally Posted by Gijsmin (Spot-Host.co.uk)
ask in that topic!
there is no topic in this forum !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)