Briefcase probblem
#1

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.
Reply
#2

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
Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)