MariusZ

Help with Filterscript

Recommended Posts

if(strcmp(cmdtext, "/kurtirb", true)==0)

{

if(playerDB[playerid][specialybe]!=1 && playerDB[playerid][specialybe]!=80){SendClientMessage(playerid,RED,"* Si komanda tik policininkams ir arui"); return 1;}

if(RoadBlockDeployed[playerid] == 0)

{

new Float:x, Float:y, Float:z;

GetPlayerPos(playerid, x, y, z);

new Float:angle;

GetPlayerFacingAngle(playerid, angle);

RoadBlockDeployed[playerid] = 1;

SendClientMessage(playerid, COLOR_GREEN, "Pad├źjai blok├á /bloknaik");

PlayerRB[playerid] = CreateObject(978, x, y, z, 0, 0, angle);

SetPlayerPos(playerid, x, y, z+1);

}

else

{

SendClientMessage(playerid, COLOR_RED, "Blokada jau pad├źta - /bloknaik");

}

return 1;

}

if(strcmp(cmdtext, "/bloknaik", true)==0)

{

if(playerDB[playerid][specialybe]!=1 && playerDB[playerid][specialybe]!=80){SendClientMessage(playerid,RED,"* Si komanda tik policininkams ir arui"); return 1;}

if(RoadBlockDeployed[playerid] == 15)

{

RoadBlockDeployed[playerid] = 0;

SendClientMessage(playerid, COLOR_GREEN, "Sunaikinta");

DestroyObject(PlayerRB[playerid]);

}

else

{

SendClientMessage(playerid, COLOR_RED, "N├źra blokados");

}

return 1;

}

Stai noreciau suzinot kaip is sito kodo padaryti fs ar tiesiog kaip teisyngai prideti ji y GM.

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»

J─» reikia d─Śti po

public OnPlayerCommandText(playerid, cmdtext[])

Jeigu neai┼íku.A┼í tau asmeni┼íkai pad─Śsiu ─» skype.

Arba papras─Źiausiai susikurk nauja filterscripta.Ir po tuo

public OnPlayerCommandText(playerid, cmdtext[])
(
//Tavo kodas
       return 1;
   }
   return 0;

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»

NA va dabar problema :

C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\filterscripts\Untitled.pwn(93) : error 017: undefined symbol "playerDB"
C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\filterscripts\Untitled.pwn(93) : warning 215: expression has no effect
C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\filterscripts\Untitled.pwn(93) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\filterscripts\Untitled.pwn(93) : error 029: invalid expression, assumed zero
C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\filterscripts\Untitled.pwn(93) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

93 eilute :

if(playerDB[playerid][specialybe]!=1 && playerDB[playerid][specialybe]!=80){SendClientMessage(playerid,RED,"* Si komanda tik policininkams ir arui"); return 1;}

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»

C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\filterscripts\Untitled.pwn(52) : error 001: expected token: "#endif", but found "-end of file-"

Pawn compiler 3.2.3664 Copyright ┬ę 1997-2006, ITB CompuPhase

1 Error.

wa istryneu nereikalyngas eilutes ir liko sitas.

EDIT :

wsio istaiseu dekui uz pagalba.

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»
C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\filterscripts\Untitled.pwn(52) : error 001: expected token: "#endif", but found "-end of file-"

Pawn compiler 3.2.3664 Copyright ┬ę 1997-2006, ITB CompuPhase

1 Error.

wa istryneu nereikalyngas eilutes ir liko sitas.

D─Śk pa─Źioj apa─Źioj

#endif

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include 

#if defined FILTERSCRIPT


public OnPlayerCommandText(playerid, cmdtext[])
{
//if(strcmp(cmdtext, "/blokadaon", true)==0)
{
if(playerDB[playerid][specialybe]!=1 && playerDB[playerid][specialybe]!=80){SendClientMessage(playerid,RED,"* Si komanda tik policininkams ir arui"); return 1;}

if(RoadBlockDeployed[playerid] == 1)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new Float:angle;
GetPlayerFacingAngle(playerid, angle);
RoadBlockDeployed[playerid] = 1;
SendClientMessage(playerid, COLOR_GREEN, "Pad├źjai blok├á /blokadaoff");
PlayerRB[playerid] = CreateObject(978, x, y, z, 0, 0, angle);
SetPlayerPos(playerid, x, y, z+1);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Blokada jau pad├źta - /blokadaoff");
}
return 1;
}
if(strcmp(cmdtext, "/blokadaoff", true)==0)
{
if(playerDB[playerid][specialybe]!=1 && playerDB[playerid][specialybe]!=80){SendClientMessage(playerid,RED,"* Si komanda tik policininkams ir arui"); return 1;}
if(RoadBlockDeployed[playerid] == 15)
{
RoadBlockDeployed[playerid] = 1;
SendClientMessage(playerid, COLOR_GREEN, "Sunaikinta");
DestroyObject(PlayerRB[playerid]);
}
else
{
SendClientMessage(playerid, COLOR_RED, "N├źra blokados");
}
return 1;
}
return 0;
}


#endif

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»

o kai dedu y GM man neisejna be erroru :S

wa ;

C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\gamemodes\band7.pwn(6241) : error 029: invalid expression, assumed zero

C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\gamemodes\band7.pwn(6241) : error 029: invalid expression, assumed zero

C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\gamemodes\band7.pwn(6247) : error 017: undefined symbol "RoadBlockDeployed"

C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\gamemodes\band7.pwn(6247) : warning 215: expression has no effect

C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\gamemodes\band7.pwn(6247) : error 001: expected token: ";", but found "]"

C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\gamemodes\band7.pwn(6247) : error 029: invalid expression, assumed zero

C:\Documents and Settings\MariusZ\My Documents\Atsiuntimai\GRP_v8.2_LTL\GRP v8.2 LTL\gamemodes\band7.pwn(6247) : fatal error 107: too many error messages on one line

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

6 Errors.

6247 eilute :

if(RoadBlockDeployed[playerid] == 0)

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»
Iš

if(RoadBlockDeployed[playerid] == 0)

Pakeisk ─»

if(RoadBlockDeployed[playerid] == 0);

Tie patys errorai liko.

6241 :

public OnPlayerCommandText(playerid, cmdtext[]);

6248 :

if(RoadBlockDeployed[playerid] == 0);

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»
Iš

if(RoadBlockDeployed[playerid] == 0)

Pakeisk ─»

if(RoadBlockDeployed[playerid] == 0);

Tie patys errorai liko.

6241 :

public OnPlayerCommandText(playerid, cmdtext[]);

6248 :

if(RoadBlockDeployed[playerid] == 0);

Numesk visa t─ů Public OnPlayerCommandText nusi┼│sk ─» A┼Ż.Man atrodo kad neten ─»taikei.

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»
Sve─Źias
┼ái tema yra u┼żrakinta.

  • ┼áiame puslapyje nar┼ío:   0 nariai

    N─Śra registruot┼│ nari┼│ per┼żi┼źrin─Źi┼│ ┼í─» forum─ů.