Jump to content

Question

Posted

Cum fac un file script din asta ! Am facuto cu un program numit scripting machine !

[pawn]#include <a_samp>

new Gate;

public OnFilterScriptInit()

{

Gate = CreateObject(980, 1386.7473, -1649.6434, 15.1487, 0.0, 0.0, 91.5000, 100.0);

return 1;

}

CMD:/og(playerid, params[])

{

if(IsPlayerInRangeOfPoint(playerid, 15.0, 1386.7473, -1649.6434, 15.1487)){

MoveObject(Gate, 1386.7473, -1649.643, 9.1207, 3.0, 0.0, 0.0, 91.5000);

return SendClientMessage(playerid, 0x5C9E36FF, "Ai deschis poarta !!Acum Inchido !");

}

}

CMD:/cg(playerid, params[])

{

if(IsPlayerInRangeOfPoint(playerid, 15.0, 1386.7473, -1649.6434, 15.1487)){

MoveObject(Gate, 1386.7473, -1649.6434, 15.1487, 3.0, 0.0, 0.0, 91.5000);

return SendClientMessage(playerid, 0x0000B4FF, "Multumesc de intelegere !");

}

}

[/pawn]

[pawn]#include <a_samp>

new Scripter;[/pawn]

Untitled-1copy_zps132d2a00.jpg

5 answers to this question

Recommended Posts

Posted

#include <zcmd> sub a_samp.

Si baga in pawno si compileaza.

Posted

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\filterscripts\da.pwn(11) : error 001: expected token: "(", but found "/"

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\filterscripts\da.pwn(11) : error 001: expected token: ";", but found "-identifier-"

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\filterscripts\da.pwn(11) : error 010: invalid function or declaration

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\filterscripts\da.pwn(11) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

[pawn]#include <a_samp>

new Scripter;[/pawn]

Untitled-1copy_zps132d2a00.jpg

Posted

#include <a_samp>
#include <zcmd>

#define FILTERSCRIPT

new Gate;

public OnFilterScriptInit()
{
	Gate = CreateObject(980, 1386.7473, -1649.6434, 15.1487, 0.0, 0.0, 91.5000, 100.0);
	return 1;
}

CMD:og(playerid, params[ ])
{
	if(IsPlayerInRangeOfPoint(playerid, 15.0, 1386.7473, -1649.6434, 15.1487)){
		MoveObject(Gate, 1386.7473, -1649.643, 9.1207, 3.0, 0.0, 0.0, 91.5000);
		return SendClientMessage(playerid, 0x5C9E36FF, "Ai deschis poarta !!Acum Inchido !");
	}
}

CMD:cg(playerid, params[ ])
{
	if(IsPlayerInRangeOfPoint(playerid, 15.0, 1386.7473, -1649.6434, 15.1487)){
		MoveObject(Gate, 1386.7473, -1649.6434, 15.1487, 3.0, 0.0, 0.0, 91.5000);
		return SendClientMessage(playerid, 0x0000B4FF, "Multumesc de intelegere !");
	}
}

Acum trebuie sa mearga.

Nu am fost eu atent, cand folosesti zcmd la comanda nu mai trebuie sa pui / in fata.

Posted

Loose indentation?

Daca e altceva spune sa il rezolvam si pe ala.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.