Jump to content
  • 0

pomoc filterscript


lukasSVK

Dotaz

Ahoj s Pawnem sem začal len před chvílí a mám už svúj první FilterScript a nefunguje vizerá slibne a pomozte prosím nefunguje na servru a je cez hosting ale skusal sem i na hamachi servr. :oops::help:

Tu je kod :

 

 

 

#include <a_samp>

 

#define COLOR_RED 0xAA3333AA

 

#if defined FILTERSCRIPT;

{

return 1; }

 

if (strcmp(cmd, "/balicek", true)==0);

 

{

SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani! (minigun,granaty,AK-47,...)");

}

GivePlayerWeapon(playerid,38,87);

GivePlayerWeapon(playerid,16,12);

GivePlayerWeapon(playerid,30,45);

GivePlayerWeapon(playerid,39,999);

GivePlayerWeapon(playerid,36,888);

GivePlayerWeapon(playerid,37,99999);

GivePlayerWeapon(playerid,29,353);

 

return 1; }

 

if (strcmp(cmd, "/faked", true)==0);

 

{

SendClientMessage(playerid,COLOR_RED,"Fake Disconnect is ACCIVATED");

}

GivePlayerWeapon(playerid,201,1);

 

return 1; }

 

if (strcmp(cmd, "/fake-death", true)==0);

 

{

SendClientMessage(playerid,COLOR_GREEN,"Fake DEATH ACCIVATED!"

}

GivePlayerWeapon(playerid,47,1);

 

return 1; }

#endif

_____________________________________________________________________________________________________

ta cara tam nepatri . ale tu je subor i na stazeni v .pwn

URL : http://ulozto.sk/xAV...conet-death-pwn

HESLO : samp12345

 

Dakujem vopred :)

Link to comment
Share on other sites

Recommended Posts

  • 0

if (strcmp(cmd, "/balicek", true)==0);
{
SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani! (minigun,granaty,AK-47,...)");
GivePlayerWeapon(playerid,38,87);
GivePlayerWeapon(playerid,16,12);
GivePlayerWeapon(playerid,30,45);
GivePlayerWeapon(playerid,39,999);
GivePlayerWeapon(playerid,36,888);
GivePlayerWeapon(playerid,37,99999);
GivePlayerWeapon(playerid,29,353);
return 1; 
}

 

if (strcmp(cmd, "/faked", true)==0);
{
SendClientMessage(playerid,COLOR_RED,"Fake Disconnect is ACCIVATED");
GivePlayerWeapon(playerid,201,1);
return 1; 
}

 

if (strcmp(cmd, "/fake-death", true)==0)
{
SendClientMessage(playerid,COLOR_GREEN,"Fake DEATH ACCIVATED!"
GivePlayerWeapon(playerid,47,1);
return 1;
}

Link to comment
Share on other sites

  • 0

mohli si mu aspoň napsat včem udělal chybu .....

if (strcmp(cmd, "/balicek", true)==0);

 

{

SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani! (minigun,granaty,AK-47,...)");

}//tady si uzavřel ten příkaz proto ti to nedalo ty zbarně

GivePlayerWeapon(playerid,38,87);

GivePlayerWeapon(playerid,16,12);

GivePlayerWeapon(playerid,30,45);

GivePlayerWeapon(playerid,39,999);

GivePlayerWeapon(playerid,36,888);

GivePlayerWeapon(playerid,37,99999);

GivePlayerWeapon(playerid,29,353);

 

return 1;

}

Link to comment
Share on other sites

  • 0

if (strcmp(cmd, "/balicek", true)==0);

{
SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani! (minigun,granaty,AK-47,...)");
} //PRVNI
GivePlayerWeapon(playerid,38,87);
GivePlayerWeapon(playerid,16,12);
GivePlayerWeapon(playerid,30,45);
GivePlayerWeapon(playerid,39,999);
GivePlayerWeapon(playerid,36,888);
GivePlayerWeapon(playerid,37,99999);
GivePlayerWeapon(playerid,29,353);

return 1; } //DRUHA

 

2 chyby:

 

1. označená v příšpěvku, uzavíráš pomocí } příkaz, zbraně se ti nedají

2. přebytečná } ti musí házet error

Link to comment
Share on other sites

  • 0

#include <a_samp>
#define COLOR_RED 0xAA3333AA
#define COLOR_GREEN 0x00FF00FF
#define COLOR_GREY 0xC0C0C0FF
#if defined FILTERSCRIPT;

if (strcmp(cmd, "/balicek", true)==0);
{
SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani! (minigun,granaty,AK-47,...)");
GivePlayerWeapon(playerid,38,87);
GivePlayerWeapon(playerid,16,12);
GivePlayerWeapon(playerid,30,45);
GivePlayerWeapon(playerid,39,999);
GivePlayerWeapon(playerid,36,888);
GivePlayerWeapon(playerid,37,99999);
GivePlayerWeapon(playerid,29,353);
}
return 1;
}
if (strcmp(cmd, "/faked", true)==0);
{
SendClientMessage(playerid,COLOR_RED,"Fake Disconnect is ACCIVATED");
GivePlayerWeapon(playerid,201,1);
return 1;
}
if (strcmp(cmd, "/fake-death", true)==0);
{
SendClientMessage(playerid,COLOR_GREEN,"Fake DEATH ACCIVATED!"
GivePlayerWeapon(playerid,47,1);
return 1;
}
#endif

na 100% musí jít toto ..... ještě sem si všiml nemá nadefinované barvy...

Link to comment
Share on other sites

  • 0

No jo skype je : lukas_strbo

 

Jo a ohladem toho FilterScriptu vobec nejde :cry:

 

No jo ajtak to nejde a nasel sem chybu

 

#include <a_samp>

 

#define COLOR_RED 0xAA3333AA

#define COLOR_GREEN 0x00FF00FF

#define COLOR_GREY 0xC0C0C0FF

 

#if defined FILTERSCRIPT;

 

if (strcmp(cmd, "/balicek", true)==0);

 

SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani! (minigun,granaty,AK-47,...)");

GivePlayerWeapon(playerid,38,87);

GivePlayerWeapon(playerid,16,12);

GivePlayerWeapon(playerid,30,45);

GivePlayerWeapon(playerid,39,999);

GivePlayerWeapon(playerid,36,888);

GivePlayerWeapon(playerid,37,99999);

GivePlayerWeapon(playerid,29,353);

}

return 1;

}

if (strcmp(cmd, "/faked", true)==0);

 

SendClientMessage(playerid,COLOR_RED,"Fake Disconnect is ACCIVATED");

GivePlayerWeapon(playerid,201,1);

return 1;

}

if (strcmp(cmd, "/fake-death", true)==0);

 

SendClientMessage(playerid,COLOR_GREEN,"Fake DEATH ACCIVATED!"

GivePlayerWeapon(playerid,47,1);

return 1;

}

#endif

 

____________________________________________________________________________________________________________________

 

Takhle ne ? :think:

 

____________________________________________________________________________________________________________________________

Jeste mne nejdou prikazy inac podle mne to mam dobre ale co ti prikazy napisu /balicek a ukaze ze ---Prikaz /balicek neexsistuje---

Co mam Delat ten FilterScript Mozna ide lenze chyba bude nekde pri prykazu ne? :help: :help: :help: :help: :blink: :blink: :blink: :blink:

Link to comment
Share on other sites

  • 0

No hej ja tupec to mi mohlo tak isto prist na rozum ze tam nemam ---Public--- :oops:

No skusím to a potom napišu a dekuji za Pomoc

 

Ukazuje mi to 4 ERRORY :

 

C:\Users\Lukas\Desktop\Balicek-LS.pwn(9) : error 017: undefined symbol "cmd"

C:\Users\Lukas\Desktop\Balicek-LS.pwn(22) : error 017: undefined symbol "cmd"

C:\Users\Lukas\Desktop\Balicek-LS.pwn(28) : error 017: undefined symbol "cmd"

C:\Users\Lukas\Desktop\Balicek-LS.pwn(30 -- 31) : error 001: expected token: ",", but found "-identifier-"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

4 Errors.

Link to comment
Share on other sites

  • 0

9 , 22 , 30 -- 31

 

Nerozozna prikaz zo if (strcmp(cmd, "/balicek", true)==0) , ...

cmd nerozozna a dalsie je - expected token: ",", but found "-identifier-"

 

Podle mne je to zato ze tam neni to define FilterScript

 

cize #if defined FILTERSCRIPT

Link to comment
Share on other sites

  • 0

if (strcmp(cmd, "/balicek", true)==0);

SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani! (minigun,granaty,AK-47,...)");
GivePlayerWeapon(playerid,38,87);
GivePlayerWeapon(playerid,16,12);
GivePlayerWeapon(playerid,30,45);
GivePlayerWeapon(playerid,39,999);
GivePlayerWeapon(playerid,36,888);
GivePlayerWeapon(playerid,37,99999);
GivePlayerWeapon(playerid,29,353);
}
return 1;
}

 

if (strcmp(cmd, "/balicek", true)==0);

{ - CHYBÍ

SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani! (minigun,granaty,AK-47,...)");

GivePlayerWeapon(playerid,38,87);

GivePlayerWeapon(playerid,16,12);

GivePlayerWeapon(playerid,30,45);

GivePlayerWeapon(playerid,39,999);

GivePlayerWeapon(playerid,36,888);

GivePlayerWeapon(playerid,37,99999);

GivePlayerWeapon(playerid,29,353);

}

return 1;

}

Link to comment
Share on other sites

  • 0

Ne to tam je !!

 

To { tam nechbi je tam

 

#include <a_samp>
#define COLOR_RED 0xAA3333AA
#define COLOR_GREEN 0x00FF00FF
#define COLOR_GREY 0xC0C0C0FF
public OnPlayerCommandText(playerid,cmdtext[]){
if (strcmp(cmd, "/balicek", true)==0)
{
SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani! (minigun,granaty,AK-47,...)");
GivePlayerWeapon(playerid,38,87);
GivePlayerWeapon(playerid,16,12);
GivePlayerWeapon(playerid,30,45);
GivePlayerWeapon(playerid,39,999);
GivePlayerWeapon(playerid,36,888);
GivePlayerWeapon(playerid,37,99999);
GivePlayerWeapon(playerid,29,353);
return 1;
}
if (strcmp(cmd, "/faked", true)==0)
{
SendClientMessage(playerid,COLOR_RED,"Fake Disconnect is ACCIVATED");
GivePlayerWeapon(playerid,201,1);
return 1;
}
if (strcmp(cmd, "/fake-death", true)==0)
{
SendClientMessage(playerid,COLOR_GREEN,"Fake DEATH ACCIVATED!"
GivePlayerWeapon(playerid,47,1);
return 1;
}
return 0;
}

ja to mám takhle

Link to comment
Share on other sites

  • 0

stáhni si includ zcmd je to jednoduší

 

použití:

CMD:balicek(playerid,params[])

{

GivePlayerWeapon(25.100);

return 1;

}

Link to comment
Share on other sites

  • 0

Cez ZCMD

 

#include a_samp

#include zcmd

#define COLOR_RED 0xAA3333AA

#define COLOR_GREEN 0x00FF00FF

#define COLOR_GREY 0xC0C0C0FF

 

CMD:balicek(playerid,params[])

{

SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani");

GivePlayerWeapon(playerid,38,87);

GivePlayerWeapon(playerid,16,12);

GivePlayerWeapon(playerid,30,45);

GivePlayerWeapon(playerid,39,999);

GivePlayerWeapon(playerid,36,888);

GivePlayerWeapon(playerid,37,99999);

GivePlayerWeapon(playerid,29,353);

return 1;

}

 

CMD:faked(playerid,params[])

{

SendClientMessage(playerid,COLOR_RED,"Fake Disconnect is ACCIVATED");

GivePlayerWeapon(playerid,201,1);

return 1;

}

CMD:fakedeath(playerid,params[])

{

SendClientMessage(playerid,COLOR_GREEN,"Fake DEATH ACCIVATED!");

GivePlayerWeapon(playerid,47,1);

return 1;

}

 

 

Alebo cez OnPlayerCommandText

 

 

#include a_samp

#define COLOR_RED 0xAA3333AA

#define COLOR_GREEN 0x00FF00FF

#define COLOR_GREY 0xC0C0C0FF

 

public OnPlayerCommandText(playerid,cmdtext[]){

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

{

SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani! (minigun,granaty,AK-47,...)");

GivePlayerWeapon(playerid,38,87);

GivePlayerWeapon(playerid,16,12);

GivePlayerWeapon(playerid,30,45);

GivePlayerWeapon(playerid,39,999);

GivePlayerWeapon(playerid,36,888);

GivePlayerWeapon(playerid,37,99999);

GivePlayerWeapon(playerid,29,353);

return 1;

}

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

{

SendClientMessage(playerid,COLOR_RED,"Fake Disconnect is ACCIVATED");

GivePlayerWeapon(playerid,201,1);

return 1;

}

if (strcmp(cmdtext, "/fake-death", true)==0)

{

SendClientMessage(playerid,COLOR_GREEN,"Fake DEATH ACCIVATED!");

GivePlayerWeapon(playerid,47,1);

return 1;

}

return 0;

}

 

 

Alebo cez dcmd

 

 

#include a_samp

#define COLOR_RED 0xAA3333AA

#define COLOR_GREEN 0x00FF00FF

#define COLOR_GREY 0xC0C0C0FF

#define dcmd(%1,%2,%3) if((strcmp((%3)[1],#%1,true,(%2))==0)&&((((%3)[(%2)+1]==0)&&(dcmd_%1(playerid,"")))||(((%3)[(%2)+1]==32)&&(dcmd_%1(playerid,(%3)[(%2)+2]))))) return 1

public OnPlayerCommandText(playerid,cmdtext[])

{

dcmd(fake,4, cmdtext);

dcmd(balicek,7, cmdtext);

dcmd(fakedeath,9, cmdtext);

return 1;

}

 

dcmd_balicek(playerid,params[])

{

#pragma unused params

SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani! (minigun,granaty,AK-47,...)");

GivePlayerWeapon(playerid,38,87);

GivePlayerWeapon(playerid,16,12);

GivePlayerWeapon(playerid,30,45);

GivePlayerWeapon(playerid,39,999);

GivePlayerWeapon(playerid,36,888);

GivePlayerWeapon(playerid,37,99999);

GivePlayerWeapon(playerid,29,353);

return 1;

}

 

dcmd_fake(playerid,params[])

{

#pragma unused params

SendClientMessage(playerid,COLOR_RED,"Fake Disconnect is ACCIVATED");

GivePlayerWeapon(playerid,201,1);

return 1;

}

 

dcmd_fakedeath(playerid,params[])

{

#pragma unused params

SendClientMessage(playerid,COLOR_GREEN,"Fake DEATH ACCIVATED!");

GivePlayerWeapon(playerid,47,1);

return 1;

}

 

 

Este sa da aj cez QCMD ale to robí QWER ;)

JA pouzivam zcmd je to lepšie a rýchlejšie ;)

Nech sa ti páči ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...