undefined symbol CreateExplosionForPlayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: undefined symbol CreateExplosionForPlayer (
/showthread.php?tid=602102)
undefined symbol CreateExplosionForPlayer -
rezqi07 - 02.03.2016
hey guy's i have a little problem with this sorry i'am beginner at script
PHP код:
error 017: undefined 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);
}
}
Re: undefined symbol CreateExplosionForPlayer -
Maximun - 02.03.2016
It seem to me your problem is symbol 'CreateExplosionForPlayer' isn't defined in your script.
Re: undefined symbol CreateExplosionForPlayer -
MicroKyrr - 02.03.2016
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
Re: undefined symbol CreateExplosionForPlayer -
rezqi07 - 02.03.2016
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
Re: undefined symbol CreateExplosionForPlayer -
MicroKyrr - 02.03.2016
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!
Re: undefined symbol CreateExplosionForPlayer -
AbyssMorgan - 02.03.2016
from a_players.inc
PHP код:
native CreateExplosionForPlayer(playerid, Float:X, Float:Y, Float:Z, type, Float:Radius);
add at the end and work
Re: undefined symbol CreateExplosionForPlayer -
rezqi07 - 03.03.2016
Thank's For All of you the problem is fixed +rep for all