Error Bombing Scirpting - 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: Error Bombing Scirpting (
/showthread.php?tid=357697)
Error Bombing Scirpting -
korzk7 - 08.07.2012
Error :warning 213: tag mismatch
COde:
public OnBombExplode(playerid, num, Float

, Float:y, Float:z)
{
//is called everytime a bomb explodes
for(new i = 0; i < MAX_PLAYERS; i ++) {
if(GetPlayerDistanceToPoint(i, x, y, z) < 2 * gBombTypes[btype[playerid][num]][2]) {
SetPVarInt(i, "nearExp", playerid);
SetTimerEx("ResetNearExp", 15000, 0, "i", i);
}
}
return 1;
}
Any One Can Help me?
Re: Error Bombing Scirpting -
WagnerPM - 08.07.2012
pawn Код:
public OnBombExplode(playerid, num, Float:x, Float:y, Float:z)
{
//is called everytime a bomb explodes
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(GetPlayerDistanceToPoint(i, x, y, z) < 2 * gBombTypes[btype[playerid][num]][2])
{
SetPVarInt(i, "nearExp", playerid);
SetTimerEx("ResetNearExp", 15000, 0, "i", i);
}
}
return 1;
}
Re: Error Bombing Scirpting -
korzk7 - 08.07.2012
Quote:
Originally Posted by WagnerPM
pawn Код:
public OnBombExplode(playerid, num, Float:x, Float:y, Float:z) { //is called everytime a bomb explodes for(new i = 0; i < MAX_PLAYERS; i ++) { if(GetPlayerDistanceToPoint(i, x, y, z) < 2 * gBombTypes[btype[playerid][num]][2]) { SetPVarInt(i, "nearExp", playerid); SetTimerEx("ResetNearExp", 15000, 0, "i", i); } } return 1; }
|
Not Fix it