Raised This Month: $ Target: $400
 0% 

help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-09-2017 , 07:44   Re: help
Reply With Quote #4

Quote:
Originally Posted by EFFx View Post
First of all

1. Your stock should not have a 'stock' prefix.
2. Why are you returning the ammount?

You don't need a stock. Just:

PHP Code:

public fw_HamSpawnPost(id)
{
    if(
is_user_alive(id) && get_user_flags(id) & ADMIN_FLAG)
        
cs_set_user_money(idcs_get_user_money(id) + 2000)

1. It's a stock not a private function Sherlock.
2. It's just my choice.

My code is just fine. Also he never mentioned that user needs to be alive.
__________________

Last edited by edon1337; 03-09-2017 at 07:46.
edon1337 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 17:48.


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