Raised This Month: $ Target: $400
 0% 

Help With Script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 07-26-2010 , 19:21   Re: Help With Script
Reply With Quote #2

Change
PHP Code:
new xpcost[1] = (10000
to
PHP Code:
new xpcost 10000 
And.
PHP Code:
public cmd_buyxp(id) {     new usermoney cs_get_user_money(id//    new username = get_user_name(id)     if (usermoney<xpcost){         client_print(id,print_center,"Your too poor for this. It's 10000!")         return PLUGIN_HANDLED     }     else if cs_set_user_money(id,usermoney-xpcost,1)             server_cmd ("pm_givexp ^"name^" @1", 30")             return PLUGIN_HANDLED } 
You need to put brackets for the second if condition.

Last edited by RedRobster; 07-26-2010 at 19:33.
RedRobster is offline
 



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 00:06.


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