Whats up with these errors?
#1

pawn Код:
(92) : error 021: symbol already defined: "SetPlayerAttachedObject"
(93) : error 021: symbol already defined: "RemovePlayerAttachedObject"
(94) : error 021: symbol already defined: "IsPlayerAttachedObjectSlotUsed"
(104) : error 021: symbol already defined: "SetVehicleParamsEx"
(105) : error 021: symbol already defined: "GetVehicleParamsEx"
It's weird it works for my mate but not me. He gave me his includes and it still doesn't work for me. Please help!
Reply
#2

Is your server and compiler updated to the latest version?
Reply
#3

Yeah
Reply
#4

we cannot read your mind, line?
Reply
#5

pawn Код:
native SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX = 0.0, Float:fOffsetY = 0.0, Float:fOffsetZ = 0.0, Float:fRotX = 0.0, Float:fRotY = 0.0, Float:fRotZ = 0.0, Float:fScaleX = 1.0, Float:fScaleY = 1.0, Float:fScaleZ = 1.0); // error line
native RemovePlayerAttachedObject(playerid, index); //error line
native IsPlayerAttachedObjectSlotUsed(playerid, index); // error line

#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1);

#define VEHICLE_PARAMS_UNSET    -1
#define VEHICLE_PARAMS_OFF  0
#define VEHICLE_PARAMS_ON   1

native SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); //error line
native GetVehicleParamsEx(vehicleid, &engine, &lights, &alarm, &doors, &bonnet, &boot, &objective); // error line
Reply
#6

remove
pawn Код:
native SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX = 0.0, Float:fOffsetY = 0.0, Float:fOffsetZ = 0.0, Float:fRotX = 0.0, Float:fRotY = 0.0, Float:fRotZ = 0.0, Float:fScaleX = 1.0, Float:fScaleY = 1.0, Float:fScaleZ = 1.0); // error linenative
native RemovePlayerAttachedObject(playerid, index); //error linenative
native IsPlayerAttachedObjectSlotUsed(playerid, index); // error line
native SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); //error linenative      

native GetVehicleParamsEx(vehicleid, &engine, &lights, &alarm, &doors, &bonnet, &boot, &objective);
Reply
#7

I don't get what you mean? :/ Don't i need them?
Reply
#8

REMOVE THOSE LINES!!!!!!!!
Reply
#9

OK THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!
Reply
#10

u don't need to define (native) the functions which are already in samp
Reply
#11

Okey, this topic was really useless ...

It nicely says : FUNCTION ALREADY DEFINED which means it's defined SOMEWHERE ELSE (samp include) and you just need to READ the freacking errors/warnings
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)