undefined symbol CreateExplosionForPlayer
#1

hey guy's i have a little problem with this sorry i'am beginner at script

PHP код:
error 017undefined symbol "CreateExplosionForPlayer" 
This Error in the line 70 and 94

Line 70
Код:
public OnVehicleDeath(vehicleid, killerid)
{
	if (GetVehicleModel(vehicleid) == 519)
	{
		for (new i = 0; i < MAX_PLAYERS; i++)
		{
			if (GetPlayerShamalID(i) == vehicleid)
			{
				SetPlayerHealth(i, 0.0);
				CreateExplosionForPlayer(i, S_EXPLODE_X, S_EXPLODE_Y, S_EXPLODE_Z, 2, S_EXPLODE_RANGE);
			}
		}
		sExplode[vehicleid] = SetTimerEx("ExplodeShamal", 700, 0, "d", vehicleid);
		tCount[vehicleid] = true;
	}
	return 1;
}
Line 94
Код:
public ExplodeShamal(vehicleid)
{
	KillTimer(sExplode[vehicleid]);
	if (tCount[vehicleid])
	{
		for (new i = 0; i < MAX_PLAYERS; i++)
		{
			if (GetPlayerShamalID(i) == vehicleid)
			{
				CreateExplosionForPlayer(i, S_EXPLODE_X, S_EXPLODE_Y, S_EXPLODE_Z, 2, S_EXPLODE_RANGE);
			}
		}
		sExplode[vehicleid] = SetTimerEx("ExplodeShamal", random(1300) + 100, 0, "d", vehicleid);
	}
}
Reply
#2

It seem to me your problem is symbol 'CreateExplosionForPlayer' isn't defined in your script.
Reply
#3

Quote:
Originally Posted by SA:MP WIKI
This function was added in SA-MP 0.3z R2-2 and will not work in earlier versions!
So all you need to do is to download the latest version of SA:MP here
Reply
#4

Quote:
Originally Posted by MicroKyrr
Посмотреть сообщение
So all you need to do is to download the latest version of SA:MP here
i was installed the latest samp 0.3.7 but not fix the problem
Reply
#5

Quote:
Originally Posted by rezqi07
Посмотреть сообщение
i was installed the latest samp 0.3.7 but not fix the problem
I'm pretty sure it's a_samp.inc!

So all you need to do is to download the latest version of Sa:MP and get a_samp.inc in include folder!
Reply
#6

from a_players.inc
PHP код:
native CreateExplosionForPlayer(playeridFloat:XFloat:YFloat:ZtypeFloat:Radius); 
add at the end and work
Reply
#7

Thank's For All of you the problem is fixed +rep for all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)