SA-MP Forums Archive
Advertiseing wont work properly . - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Advertiseing wont work properly . (/showthread.php?tid=135487)



Advertiseing wont work properly . - Micko9 - 20.03.2010

In my gamemode i have added this advertiseing "system" well i was hopeing it wood work ...

This is what i put at the top :

pawn Код:
new FullAdverts
{
{"[ADVERTISAM] Be Active And Smart, do not behave bad, and recive GOLD MEMBER SHIP"},
{"[ADVERTISAM] Donate to help us run and maybe get admin !"},
{"[ADVERTISAM] View the makers of this server! /credits"},
{"[ADVERTISAM] Woah Youre Looking good! Well get us looking good, DONATE!"},
};
o.k. this is on game mode init :

pawn Код:
SetTimer("AdvertisamFull",5000,1);
and my function :

pawn Код:
forward AdvertisamFull();
public AdvertisamFull() {
    SendClientMessageToAll(red,FullAdverts);
    print("Advertisam Has Been Send . 5 Seconds Passed .");
}
but i came and waited 20 seconds...nooothing happend .




Re: Advertiseing wont work properly . - [MWR]Blood - 20.03.2010

pawn Код:
forward AdvertisamFull();
pawn Код:
SetTimer("AdvertisamFull,20000,1); //after OnGameModeInit
pawn Код:
new AdvertisamFull[][] =
{
  "Server Racer:Add our IP 84.252.20.44:7777 to your Favourites list, so you can always play!",
    "Server Racer:Type /teles to see the server teleports!",
    "Server Racer:Follow the /rules!break them and get a funny ban!",
    "Server Racer:Do not pretend to be admin, apply on http://www.sracers.darkbb.com[url=http://]",
    "Server Racer:Type /v to open the Vehicles Dialog!",
    "Server Racer:Broken car? /fix!",
    "Server Racer:Visit the best race zones - /therace /therace2 /rally1",
    "Server Racer:Visit our website: ",
    "Server Racer:Like The Server?Add [RnD] in front of your name!",
    "Server Racer:Have fun on Street Racers And Drifters!"
 };

public AdvertisamFull()
{
    SendClientMessageToAll(COLOR_LIGHTBLUE, AdvertisamFull[random(sizeof(AdvertisamFull))]);
        return 1;
}
Hope this will work


Re: Advertiseing wont work properly . - Micko9 - 20.03.2010

Quote:
Originally Posted by ikarus
pawn Код:
forward AdvertisamFull();
pawn Код:
SetTimer("AdvertisamFull,20000,1); //after OnGameModeInit
pawn Код:
new AdvertisamFull[][] =
{
  "Server Racer:Add our IP 84.252.20.44:7777 to your Favourites list, so you can always play!",
    "Server Racer:Type /teles to see the server teleports!",
    "Server Racer:Follow the /rules!break them and get a funny ban!",
    "Server Racer:Do not pretend to be admin, apply on http://www.sracers.darkbb.com[url=http://][url=http://]",
    "Server Racer:Type /v to open the Vehicles Dialog!",
    "Server Racer:Broken car? /fix!",
    "Server Racer:Visit the best race zones - /therace /therace2 /rally1",
    "Server Racer:Visit our website: ",
    "Server Racer:Like The Server?Add [RnD] in front of your name!",
    "Server Racer:Have fun on Street Racers And Drifters!"
 };

public AdvertisamFull()
{
    SendClientMessageToAll(COLOR_LIGHTBLUE, AdvertisamFull[random(sizeof(AdvertisamFull))]);
        return 1;
}
Hope this will work
ty just you forgot this :
your code :
pawn Код:
SetTimer("AdvertisamFull,20000,1);
correction :
pawn Код:
SetTimer("AdvertisamFull",20000,1); // You Forgot to close the "



Re: Advertiseing wont work properly . - [MWR]Blood - 20.03.2010

Yea sry it works now?


Re: Advertiseing wont work properly . - playbox12 - 20.03.2010

I saw the others posting fixes here, and that should work so i thought. I post an english grammar "fix"

{"[ADVERTISAM] Be an active and smart player, do not behave stupid, and you will recieve GOLD MEMBER SHIP!"},
{"[ADVERTISAM] Donate to keep us alive, and may get admin !"},
{"[ADVERTISAM] View the makers of this script /credits"},
{"[ADVERTISAM] Woah you look good, let us look good too, DONATE!"},


Re: Advertiseing wont work properly . - Micko9 - 20.03.2010

Quote:
Originally Posted by ikarus
Yea sry it works now?
actually nope . i put the interval down to 2000 ( for testing ) and nope...also i found in my gamemode this bug : i found a :
pawn Код:
print("succes
and it didnt show any errors...
i checked if it shows at all i tried :
pawn Код:
print("succes")// without ;
no errors...so didnt the adv worke .