Raised This Month: $ Target: $400
 0% 

Problem with adding value to other value using concmd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 01-06-2013 , 08:50   Problem with adding value to other value using concmd
Reply With Quote #1

Hello everybody,

I've got a little problem here, I want to give the player with userid X 20 Points using the command :
Quote:
PHP Code:
"kbm_give_points_easy %i"usrid[id
.
The HUD Message is displaying, but the player doesn't get any Points.

Code of kbm_give_points_easy :

Quote:
PHP Code:
new Arg1[24]
read_argv(1Arg123)
    
new 
player cmd_target(idArg16)
iCoins[player] += 20
    
set_dhudmessage
(02550, -1.00.6906.06.0)
show_dhudmessage(player"You got 20 Points."
Anyone knows what I'm doing wrong?
__________________
Kia 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 13:40.


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