SA-MP Forums Archive
THIS IS A BIT WERID! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: THIS IS A BIT WERID! (/showthread.php?tid=83366)



THIS IS A BIT WERID! - shady91 - 24.06.2009

i get one warnign but it still works i made a cmd /bomb and on timer dose this

Код:
public BombTimer(playerid)
{
	CreateExplosion(BombX[playerid], BombY[playerid], BombZ[playerid], 11, 10);
	CreateExplosion(BombX[playerid], BombY[playerid], BombZ[playerid]+2, 10);
	SendClientMessage(playerid, COLOR_GREY, "Bomb Detonated.");
	DestroyStreamedObject(BombObject[playerid]);
	BombArmed[playerid] = false;
	return 1;
it give me one warning but it works fine but if i have it like this.

Код:
C:\Documents and Settings\marcus\My Documents\marcus server\gamemodes\shady.pwn(1863) : warning 202: number of arguments does not match definition
but if like this i get no warnings?
Код:
public BombTimer(playerid)
{
	CreateExplosion(BombX[playerid], BombY[playerid], BombZ[playerid], 11, 10);
	SendClientMessage(playerid, COLOR_GREY, "Bomb Detonated.");
	DestroyStreamedObject(BombObject[playerid]);
	BombArmed[playerid] = false;

	return 1;



Re: THIS IS A BIT WERID! - SpiderPork - 24.06.2009

Код:
public BombTimer(playerid)
{
	CreateExplosion(BombX[playerid], BombY[playerid], BombZ[playerid], 11, 10);
	CreateExplosion(BombX[playerid], BombY[playerid], BombZ[playerid]+2, 11, 10);
	SendClientMessage(playerid, COLOR_GREY, "Bomb Detonated.");
	DestroyStreamedObject(BombObject[playerid]);
	BombArmed[playerid] = false;
	return 1;
}



Re: THIS IS A BIT WERID! - shady91 - 24.06.2009

lol cheers mate