Hello There, Guest! Login or Register


Useful Functions/Snippets/Commands
#16
Code:
C:\DOCUME~1\Name\Desktop\name\server\GAMEMO~1\GF.pwn(7399) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Name\Desktop\name\server\GAMEMO~1\GF.pwn(7399) : error 004: function "msgtimer" is not implemented
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
[quote author=Smoke link=topic=8713.msg104477#msg104477 date=1208929846]
shouldn't this
Code:
Random Messages:

Up the top:
[code]
forward msgtimer();
new Help[][] =
{
    "Try \"/Commands\" for help.",
    "Spotted a hacker? read \"/help 2\".",
    "Don't use any hacks/cheats, you will be banned instantly!",
    "Don't ask to be an admin!",
    "English in mainchat, Use \"/pm\" to use Non-English",
    "Please don't use CAPS, you will be muted!",
    "Remember to obey the \"/rules\"!!",
    "Don't spawn-kill, you will be bugger nutted!",
    "Spotted a cheater/hacker? use /report [ID] [Report].",
    "Don't door-camp (Shooting at doors) you will be bugger nutted.",
    "Try \"/admins to see the online admins.",
    "Never ever report cheaters in main-chat.",
    "Remember to read the /rules!"

};

Under OnGameModeInit:

Code:
SetTimer("msgtimer",180000,1);

Somewhere except in another callback:

Code:
public msgtimer()
{
    SendClientMessageToAll(COLOR_YELLOW, Help[random(sizeof(Help))]);
}
[/code]
Reply


Messages In This Thread
Useful Functions/Snippets/Commands - by Jay - 04-21-2008, 03:19 PM
Re: Useful Functions/Snippets/Commands - by Jay - 04-21-2008, 07:42 PM
Re: Useful Functions/Snippets/Commands - by Smoke - 04-23-2008, 06:50 AM
Re: Useful Functions/Snippets/Commands - by Jay - 04-23-2008, 04:54 PM
Re: Useful Functions/Snippets/Commands - by Smoke - 04-24-2008, 10:18 AM
Re: Useful Functions/Snippets/Commands - by Jay - 04-29-2008, 01:03 PM
Re: Useful Functions/Snippets/Commands - by Jay - 05-08-2008, 11:54 AM
Re: Useful Functions/Snippets/Commands - by PeterParker - 05-22-2008, 06:37 PM
Re: Useful Functions/Snippets/Commands - by Jay - 02-02-2009, 10:17 PM