AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   little help with Respawn code.. (for shop) (https://forums.alliedmods.net/showthread.php?t=129857)

EpicFail. 06-17-2010 15:33

little help with Respawn code.. (for shop)
 
look i have a problem with respawn
it no read the Command "ExecuteHamB"

here my code
PHP Code:

case 13// Respawn
        
{
            if(!
is_user_alive(id)) {
                
client_print_color0DontChange"^4[ Shop] ^1You need to be alive!");
                return 
PLUGIN_HANDLED;
            }
            if(
userRespawn[id] > 0) {
                
client_print_color0DontChange"^4[ Shop] ^1You already own this item!");
                return 
PLUGIN_HANDLED;
            }
            if(
get_pcvar_num(allowRespawn) == 0) {
                
client_print_color0DontChange"^4[Shop] ^1This item is disabled.");
                return 
PLUGIN_HANDLED;
            }
    
            new 
money fm_get_user_money(id);
            new 
cost get_pcvar_num(Respawncost);
    
            if(
money cost || money == cost) {
                
fm_get_user_money(idmoney cost);
                
ExecuteHamB(Ham_CS_RoundRespawn,id); 
                
userRespawn[id]++;
                
client_print_color0DontChange"^4[Shop] ^1You purchased ^3Respawn.");
            } else {  
                
client_print_color0DontChange"^4[Shop] ^1You need more ^4money ^1to buy this!");
            } 
            
        } 

How i can fix this..
please some help
and sorry for my bad english

drekes 06-17-2010 15:40

Re: little help with Respawn code.. (for shop)
 
Did you include hamsandwich? Or what is the error?

EpicFail. 06-17-2010 15:43

Re: little help with Respawn code.. (for shop)
 
LOL im not include the ExecuteHamB
and the Error is : 017 undefined symbol "ExecuteHamB"
Error 001: expected token ";" , but found ">"

drekes 06-17-2010 15:47

Re: little help with Respawn code.. (for shop)
 
#include <hamsandwich> and try again.

EpicFail. 06-17-2010 16:04

Re: little help with Respawn code.. (for shop)
 
the you this delete the problem with respawn..

drekes 06-18-2010 01:49

Re: little help with Respawn code.. (for shop)
 
Quote:

Originally Posted by EpicFail. (Post 1211743)
the you this delete the problem with respawn..

Please make sure that you words are organized like they should. I have no idea what you mean by that.

grimvh2 06-18-2010 05:44

Re: little help with Respawn code.. (for shop)
 
Quote:

Originally Posted by drekes (Post 1212208)
Please make sure that you words are organized like they should. I have no idea what you mean by that.

woaw, funny. I think hes saying. If he includes hamsandwich there is no error anymore hahaha. That seems the problem.

drekes 06-18-2010 05:48

Re: little help with Respawn code.. (for shop)
 
Quote:

Originally Posted by grimvh2 (Post 1212291)
woaw, funny. I think hes saying. If he includes hamsandwich there is no error anymore hahaha. That seems the problem.

Now i'm confused. Are you reffering to my post or to his problem?

grimvh2 06-19-2010 08:15

Re: little help with Respawn code.. (for shop)
 
Quote:

Originally Posted by drekes (Post 1212295)
Now i'm confused. Are you reffering to my post or to his problem?

Nvm, hes english is to bad. He should go to multi language section.

suffer 06-19-2010 13:13

Re: little help with Respawn code.. (for shop)
 
Quote:

Originally Posted by drekes (Post 1213358)
Please make sure that you words are organized like they should. I have no idea what you mean by that.

Quote:

Originally Posted by grimvh2 (Post 1213358)
Nvm, hes english is to bad. He should go to multi language section.

Lol, you agreed but your English was messed up, or you mis-spelled :D


All times are GMT -4. The time now is 14:42.

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