SA-MP Forums Archive
Briefcase probblem - 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: Briefcase probblem (/showthread.php?tid=198125)



Briefcase probblem - Hoss - 11.12.2010

I want to make briefcases in my server but i have 1 error

Код:
    CreateObject(1210, 2866.1818847656, -2125.1086425781, 5.743230342865, 0, 0, 268);
its from mta coordonates

Код:
new briefcase;

public OnGameModeInit()
{
	
	briefcase = CreatePickup(1210,1,2866.1818847656, -2125.1086425781, 5.743230342865,-1);

public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(pickupid == briefcase) 
	GivePlayerWeapon(playerid,32,2000);
	GivePlayerMoney(playerid,200000);
	SetPlayerArmour(playerid,1000);
	GivePlayerWeapon(playerid,26,2000);
	
	return 1;
}
and i have 1 error at ( briefcase = CreatePickup(1210,1,2866.1818847656, -2125.1086425781, 5.743230342865,-1); )

Код:
briefcase.pwn(40) : warning 202: number of arguments does not match definition

1 Warning.



Re: Briefcase probblem - Ash. - 11.12.2010

CreatePickup(1210,1,2866.1818847656, -2125.1086425781, 5.743230342865,-1);

Check the wiki (wiki.sa-mp.com) for information on CreatePickup

https://sampwiki.blast.hk/wiki/CreatePickup


Re: Briefcase probblem - Hoss - 11.12.2010

i saw it in wiki but wiki don't helped me plz who can help me add correct script


Re: Briefcase probblem - Zh3r0 - 11.12.2010

briefcase = CreatePickup(1210,1,2866.1818847656, -2125.1086425781, 5.743230342865);