Raised This Month: $ Target: $400
 0% 

little help with Respawn code.. (for shop)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EpicFail.
Senior Member
Join Date: May 2010
Old 06-17-2010 , 15:33   little help with Respawn code.. (for shop)
Reply With Quote #1

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
EpicFail. is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-17-2010 , 15:40   Re: little help with Respawn code.. (for shop)
Reply With Quote #2

Did you include hamsandwich? Or what is the error?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
EpicFail.
Senior Member
Join Date: May 2010
Old 06-17-2010 , 15:43   Re: little help with Respawn code.. (for shop)
Reply With Quote #3

LOL im not include the ExecuteHamB
and the Error is : 017 undefined symbol "ExecuteHamB"
Error 001: expected token ";" , but found ">"

Last edited by EpicFail.; 06-17-2010 at 15:51.
EpicFail. is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-17-2010 , 15:47   Re: little help with Respawn code.. (for shop)
Reply With Quote #4

#include <hamsandwich> and try again.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
EpicFail.
Senior Member
Join Date: May 2010
Old 06-17-2010 , 16:04   Re: little help with Respawn code.. (for shop)
Reply With Quote #5

the you this delete the problem with respawn..
EpicFail. is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-18-2010 , 01:49   Re: little help with Respawn code.. (for shop)
Reply With Quote #6

Quote:
Originally Posted by EpicFail. View Post
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.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-18-2010 , 05:44   Re: little help with Respawn code.. (for shop)
Reply With Quote #7

Quote:
Originally Posted by drekes View Post
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.
__________________
I am out of order!
grimvh2 is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-18-2010 , 05:48   Re: little help with Respawn code.. (for shop)
Reply With Quote #8

Quote:
Originally Posted by grimvh2 View Post
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?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-19-2010 , 08:15   Re: little help with Respawn code.. (for shop)
Reply With Quote #9

Quote:
Originally Posted by drekes View Post
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.
__________________
I am out of order!
grimvh2 is offline
suffer
Member
Join Date: Jan 2010
Old 06-19-2010 , 13:13   Re: little help with Respawn code.. (for shop)
Reply With Quote #10

Quote:
Originally Posted by drekes View Post
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 View Post
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
__________________
Quote:
Originally Posted by t*stylez View Post
r4ndomz, why is your skull so fugly looking?
i wonder if your head is oddly shaped...
suffer is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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