SA-MP Forums Archive
What is this - 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: What is this (/showthread.php?tid=543540)



What is this - Dezzzy - 27.10.2014

Guys Tell ME wHATS is Wrong here cant analyze ..

This Is Erros
Код HTML:
C:\Users\Gigi\Desktop\America Life\gamemodes\AvangardRolePlay.pwn(47261) : warning 217: loose indentation
C:\Users\Gigi\Desktop\America Life\gamemodes\AvangardRolePlay.pwn(47265) : warning 202: number of arguments does not match definition
C:\Users\Gigi\Desktop\America Life\gamemodes\AvangardRolePlay.pwn(47272) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
And This Is Code
Код HTML:
		if(strcmp(cmdtext, "/openbomj", true)) //  
	{
		{
			if (PlayerToPoint(15, playerid,1169.6000000,-1742.0000000,12.4000000))
			MoveObject (Bomj, 1169.6000000,-1742.0000000,9.1000000); 
			SetTimer ("Bomjebi", 6000, 0);  
			SendClientMessage(playerid, COLOR_RED," {1e90ff}Chishkari Giaa,Daiketba 20 Wamis Ganmavlobashi");
		}
		return 1;
	}
	
	if(!strcmp(cmdtext, "/opensfpd", true))
Tell Me If U know


Re: What is this - Rudy_ - 27.10.2014

pawn Код:
if(strcmp(cmdtext, "/openbomj", true)) //
{
    if(PlayerToPoint(15, playerid,1169.6000000,-1742.0000000,12.4000000))
    {
        MoveObject (Bomj, 1169.6000000,-1742.0000000,9.1000000);
        SetTimer ("Bomjebi", 6000, 0);
        SendClientMessage(playerid, COLOR_RED," {1e90ff}Chishkari Giaa,Daiketba 20 Wamis Ganmavlobashi");
    }
    return 1;
}



Re: What is this - Dezzzy - 27.10.2014

i gott 1 warning bro

Код HTML:
C:\Users\Gigi\Desktop\America Life\gamemodes\AvangardRolePlay.pwn(47265) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
And This Is Line

Код HTML:
MoveObject (Bomj, 1169.6000000,-1742.0000000,9.1000000);



Re: What is this - DavidBilla - 27.10.2014

The fifth parameter should be the velocity with which the object should move. But you used only 4 parameters


Re: What is this - Manyula - 27.10.2014

Take a look at the wiki page and you should be fine.
https://sampwiki.blast.hk/wiki/MoveObject

You're not setting the speed of movement.


Re: What is this - Rudy_ - 27.10.2014

You forgot the speed arg.

pawn Код:
MoveObject (Bomj, 1169.6000000,-1742.0000000,9.1000000, 2.0);
Change the 2.0 to the speed u want


Re: What is this - Dezzzy - 27.10.2014

it works the gate is opening with H key but idk why and it didnt close ..

also i give u all guys +rep


Re: What is this - Rudy_ - 27.10.2014

Quote:
Originally Posted by Dezzzy
Посмотреть сообщение
it works the gate is opening with H key but idk why and it didnt close ..

also i give u all guys +rep
Because you are only moving it, You need to see if the gate is opened on OnObjectMoved and then close it


Re: What is this - Dezzzy - 27.10.2014

only this is on there


Код HTML:
public OnObjectMoved(objectid)
{
	return 1;
}
nothingmore


Re: What is this - Rudy_ - 27.10.2014

just saw u had a timer, Change the X,Y,Z to the close object cords
pawn Код:
forward bombjebi();
public bombjebi()
{
    MoveObject (Bomj, X,Y,Z, 2.0);
    return 1;
}