without reason
#1

hey guys i get this error

Код HTML:
server.pwn(9503) : error 021: symbol already defined: "OnPlayerWeaponShot"
and this is the script

Код HTML:
new MisiuneSpeciala[1];
function CreateMisiuneSpecialaObjects(playerid)
{
    MisiuneSpeciala[0] = CreateObject(897, -677.68127, -2008.70105, 22.11756,   0.00000, 0.00000, 32.16000);
}
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
	if(weaponid == 24)
	{
	    if(hittype == BULLET_HIT_TYPE_OBJECT)
		{
			DestroyObject(MisiuneSpeciala[0]);
		}
	}
	return 1;
}
line 9503 is the first { under onplayerweaponshot
Reply
#2

Update your a_samp.inc.
Reply
#3

same error
Reply
#4

Well its says this callback is already founded so make sure you didn't create it couple times
Reply
#5

... i don't have it that why i don't know why is giving that error
Reply
#6

i searched on includes and i have an anticheat.inc that it have OnPlayerWeaponShot and i edited to OnPlayerWeaponShot2 but same error
Reply
#7

Oh lol I thought you said that it was undefined symbol haha. Anyways are you sure that there's only one OnPlayerWeaponShot? Use CTRL + F to find them. If you are sure then go through your includes the same way.

EDIT: Nvm you replied before me
Reply
#8

Lol you cant change the callback name. Not possible. Its Hardcoded inside samp source.
Reply
#9

ok, so what can i do nothing works
Reply
#10

You should take the code from the callback in the anticheat include and move it r
To main script. You cant have two callbacks with same name.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)