Jump to content

[FS]AutoMessage


Guest farse

Recommended Posts

zimi si mie cum fac sa faca reclama in timp mai scurt?...ca ma enerveaza pana apare

Uitate pe script la:

... = SetTimer("...", 450000, 1);

Modifica numarul '450000' in unul mai mic.

-------- Un exemplu:


#include <a_samp>

#define GREEN 0x21DD00FF            
#define RED 0xE60000FF              
#define ADMIN_RED 0xFB0000FF        
#define YELLOW 0xFFFF00FF          
#define ORANGE 0xF97804FF           
#define LIGHTRED 0xFF8080FF         
#define LIGHTBLUE 0x00C2ECFF       
#define PURPLE 0xB360FDFF           
#define PLAYER_COLOR 0xFFFFFFFF     
#define BLUE 0x1229FAFF             
#define LIGHTGREEN 0x38FF06FF       
#define DARKPINK 0xE100E1FF        
#define DARKGREEN 0x008040FF
#define ANNOUNCEMENT 0x6AF7E1FF
#define COLOR_SYSTEM 0xEFEFF7AA
#define GRAY 0xCECECEFF
new Msg;
new Announcements[3][128] = {
"Announcement: Mesajul numarul 1",
"Announcement: --//-- 2",
"Announcement: --//-- 3"
};
forward GlobalAnnouncement();
public OnFilterScriptInit()
{
	Msg = 0;
	SetTimer("GlobalAnnouncement",600000,true); // Mesajul apare in fiecare 10 min.
	print("'Ann' filterscript loaded!");
	return 1;
}

public GlobalAnnouncement()
{
	switch (Msg)
	{
	    case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;} // primul mesaj
	    case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg++;}
	    case 2: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[2]); Msg = 0;} // ultimul mesaj
	}
	return 1;
}

Link to comment
Share on other sites

MS mult

Mai e o problema la scriptu asta:

Cand deschid srv imi face reclamele care le-am pus eu,iar dupa ce o face pe a 2-a ,face doar o reclama.nu pe toate

Ce ii fac?

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

  • 3 weeks later...

am incercat asa si nu o mers!

D:\ptr server\autonome\autome.pwn(90) : warning 235: public function lacks forward declaration (symbol "A7")

D:\ptr server\autonome\autome.pwn(94) : error 017: undefined symbol "An7"

D:\ptr server\autonome\autome.pwn(97) : warning 235: public function lacks forward declaration (symbol "A8")

D:\ptr server\autonome\autome.pwn(101) : error 017: undefined symbol "An8"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

Link to comment
Share on other sites

doubleposter.gif

s-a inventat Edit.

am incercat asa si nu o mers!

D:\ptr server\autonome\autome.pwn(90) : warning 235: public function lacks forward declaration (symbol "A7")

D:\ptr server\autonome\autome.pwn(94) : error 017: undefined symbol "An7"

D:\ptr server\autonome\autome.pwn(97) : warning 235: public function lacks forward declaration (symbol "A8")

D:\ptr server\autonome\autome.pwn(101) : error 017: undefined symbol "An8"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

public A6()
{
    SendClientMessageToAll(0x00CACAFB, "Textul tau)");
  WebAn = SetTimer("WS", 180000, 1);
    KillTimer(An6);
return 1;
}

inloc de public A6 acolo pui A7 A8 depinde care urmeaza la tn

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.