Raised This Month: $32 Target: $400
 8% 

Script Help problem with cs_user_get_money


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
topline
Member
Join Date: Jul 2010
Old 12-13-2010 , 06:11   Script Help problem with cs_user_get_money
Reply With Quote #1

Hai guys can u tell me whats wrong with this code???
Code:
ublic show_hnsmenu( id ) {
    if(get_pcvar_num(plugin_on) == 1) {
        new szBuffer[512], iLen;

        iLen = formatex(szBuffer, sizeof szBuffer - 1, "\rHide'n'Seek Shop\w^n^n^n\r: \y%d", cs_get_user_money( id ));
        iLen += formatex(szBuffer[iLen], (sizeof szBuffer - 1) - iLen, "\r1. \wSilent Walk - \y%d$^n", get_pcvar_num(silentcost));
        iLen += formatex(szBuffer[iLen], (sizeof szBuffer - 1) - iLen, "\r2. \wStealth \r(20 seconds) - \y%d$^n", get_pcvar_num(stealthcost));
        iLen += formatex(szBuffer[iLen], (sizeof szBuffer - 1) - iLen, "\r3. \wNo Flash Blinding - \y%d$^n", get_pcvar_num(noflashcost));
        iLen += formatex(szBuffer[iLen], (sizeof szBuffer - 1) - iLen, "\r4. \w%d HP - \y%d$^n", get_pcvar_num(hpcvar), get_pcvar_num(hpcost));
        iLen += formatex(szBuffer[iLen], (sizeof szBuffer - 1) - iLen, "\r5. \w%d Armor - \y%d$^n", get_pcvar_num(armorcvar), get_pcvar_num(armorcost));
        iLen += formatex(szBuffer[iLen], (sizeof szBuffer - 1) - iLen, "\r6. \wHE Grenade - \y%d$^n", get_pcvar_num(grenadecost));
        iLen += formatex(szBuffer[iLen], (sizeof szBuffer - 1) - iLen, "\r7. \wGravity \r(10 seconds) - \y%d$^n", get_pcvar_num(gravitycost));   
        iLen += formatex(szBuffer[iLen], (sizeof szBuffer - 1) - iLen, "\r8. \wFaster Speed \r(25 seconds) - \y%d$^n", get_pcvar_num(speedcost));
        iLen += formatex(szBuffer[iLen], (sizeof szBuffer - 1) - iLen, "\r9. \wGodmode \d(key activation) \r(5 seconds) - \y%d$^n^n", get_pcvar_num(godmodecost));
        iLen += formatex(szBuffer[iLen], (sizeof szBuffer - 1) - iLen, "\r0. \wExit"); 

        new iKeys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<6 | 1<<7 | 1<< 8 | 1<<9 );
        show_menu(id, iKeys, szBuffer, -1, "Hide'n'Seek Shop");
    } else
        ColorChat(id, BLUE, "^x04[Hide'n'Seek Shop]^x01 Shop has been disabled.");
    return PLUGIN_HANDLED;
topline is offline
Send a message via MSN to topline Send a message via Skype™ to topline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 12-13-2010 , 08:25   Re: Script Help problem with cs_user_get_money
Reply With Quote #2

I dont think any thing is wrong, you should try to compile it and then check
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 12-13-2010 , 11:39   Re: Script Help problem with cs_user_get_money
Reply With Quote #3

ur public has no p ....
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 12-13-2010 , 12:19   Re: Script Help problem with cs_user_get_money
Reply With Quote #4

Quote:
Originally Posted by topline View Post
Hai guys can u tell me whats wrong with this code???
Show your full code.

Quote:
Originally Posted by SaM.ThE.MaN View Post
ur public has no p ....
Most likely a copy-paste mistake.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 12-13-2010 , 14:05   Re: Script Help problem with cs_user_get_money
Reply With Quote #5

It's not yours. I don't know if that counts or not.
__________________
Hi.
Kreation is offline
Reply



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 23:26.


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