AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Very short simple script. First timer (https://forums.alliedmods.net/showthread.php?t=163896)

TsG_Turk 08-04-2011 17:37

Very short simple script. First timer
 
Some simple code i was writing for my jailbreak server to mute Ts at the beginning of every round. One other think i would love to add if someone doesnt mine showing me the light would be to unmute the last alive T but thats not as important as this error im getting:

error 100: function prototypes do not match
That error is on line 14 The HookEvent Line. I am a first timer so sorry if it's a rookie mistake.

PHP Code:

#include <sourcemod> 

public Plugin:myinfo =
{
    
name "TMute",
    
author "TsG | | Turk",
    
description "My First Source Mod Plugin",
    
version "0.0.1",
    
url "http://www.TopSecretGaming.net/"
};

public 
OnPluginStart()
{
    
HookEvent ("round_start"GameStart)
}

public 
Action:GameStart()
{
ServerCommand("sm_unmute @t")
return 
Plugin_Continue



ARES[ro] 08-04-2011 17:41

Re: Very short simple script. First timer
 
SoureMod section.

TsG_Turk 08-04-2011 18:12

Re: Very short simple script. First timer
 
sorry!


All times are GMT -4. The time now is 03:31.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.