MaFia_Eugen Posted March 20, 2013 Posted March 20, 2013 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]
Guest Rock Posted March 20, 2013 Posted March 20, 2013 #include <zcmd> sub a_samp.Si baga in pawno si compileaza.
MaFia_Eugen Posted March 20, 2013 Author Posted March 20, 2013 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 declarationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\filterscripts\da.pwn(11) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase4 Errors. [pawn]#include <a_samp>new Scripter;[/pawn]
Guest Rock Posted March 20, 2013 Posted March 20, 2013 #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.
MaFia_Eugen Posted March 20, 2013 Author Posted March 20, 2013 A mers mia dat doar warning . Multumesc :cool: [pawn]#include <a_samp>new Scripter;[/pawn]
Guest Rock Posted March 20, 2013 Posted March 20, 2013 Loose indentation?Daca e altceva spune sa il rezolvam si pe ala.
Question
MaFia_Eugen
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]
5 answers to this question
Recommended Posts