What is this
#1

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

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

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);
Reply
#4

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

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

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

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

also i give u all guys +rep
Reply
#8

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

only this is on there


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

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;
}
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)