AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   give weapon problem (https://forums.alliedmods.net/showthread.php?t=11909)

Cheap_Suit 03-31-2005 02:15

give weapon problem
 
[AMXX] Run time error 3 (stack error) on line 12 (file "freeshotty.sma")
i get this when i make a server

Code:

public plugin_init(){
        register_plugin("free shotty","1.0","Cheap_Suit")
        register_event("ResetHUD","newRound","b")
       
}

public newRound(id){

        give_item(id,"weapon_m3")
        give_item(id,"ammo_buckshot")

        return PLUGIN_CONTINUE       
}

anyone know the problem?

v3x 04-01-2005 18:22

What exactly is line 12?

twistedeuphoria 04-01-2005 18:44

Try adding if(!is_user_connected(id)) return PLUGIN_CONTINUE before the give_items.


All times are GMT -4. The time now is 10:02.

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