3 Errors.
#1

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys == 16) {
        if(IsInShml[playerid] > 0) {
            new Float:X,Float:Y,Float:Z;
            GetVehiclePos(IsInShml[playerid], X, Y, Z);
            SetPlayerPos(playerid, X+4, Y, Z);
            SetPlayerInterior(playerid, 0);
            IsInShml[playerid]=0;
		}
	}
	return 1;
}
	if (PRESSED(KEY_FIRE))
	{
		if (IsPlayerInAnyVehicle(playerid))
		{
			AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
		}
	}
	return 1;
}
that's were the problem is.
Код:
C:\Users\Giannis\Desktop\SA-MP Server\gamemodes\MyGameMode.pwn(4806) : error 010: invalid function or declaration
C:\Users\Giannis\Desktop\SA-MP Server\gamemodes\MyGameMode.pwn(4808) : error 010: invalid function or declaration
C:\Users\Giannis\Desktop\SA-MP Server\gamemodes\MyGameMode.pwn(4813) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
the errors.
Reply
#2

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys == 16) {
        if(IsInShml[playerid] > 0) {
            new Float:X,Float:Y,Float:Z;
            GetVehiclePos(IsInShml[playerid], X, Y, Z);
            SetPlayerPos(playerid, X+4, Y, Z);
            SetPlayerInterior(playerid, 0);
            IsInShml[playerid]=0;
        }
    }
    if (PRESSED(KEY_FIRE))
    {
        if (IsPlayerInAnyVehicle(playerid))
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
        }
    }
    return 1;
}
Reply
#3

Код:
C:\Users\Giannis\Desktop\SA-MP Server\gamemodes\MyGameMode.pwn(4804) : error 017: undefined symbol "PRESSED"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

pawn Код:
// Under The Includes
#include < a_samp >
// Rest Of Includes

//---


// PRESSED(keys)
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
Reply
#5

Quote:
Originally Posted by JohnDoVaS12345
Посмотреть сообщение
Код:
C:\Users\Giannis\Desktop\SA-MP Server\gamemodes\MyGameMode.pwn(4804) : error 017: undefined symbol "PRESSED"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
At top of your script:

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
Reply
#6

thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)