arrg, somebody help plz
I want to replace a cs function (cs_get_user_money) with my own (g_money) but when I go to compile it doesent work. The g_money is from my tfc money plugin.
|
Re: arrg, somebody help plz
We'll need to see your code.
Also, why are you replacing a function? Why not just use it? |
Re: arrg, somebody help plz
Im not using that function becuase I cant, its a cstrike one and im playing on tfc. I got a tfc money plugin going and I wanted to port the ice grenade plugin to tfc using well... the money plugin I have instead of cs functions I cant use. my code is...
Code:
Thats just part of it but it seems like the only part you need. All the money commands have used g_money |
Re: arrg, somebody help plz
oh yeah and the other plugin is....
Code:
|
Re: arrg, somebody help plz
What about g_money ? how can you use :
Code:
and Code:
Besides declaring a variable in a loop will generate an error. Code:
Code:
|
Re: arrg, somebody help plz
show us g_money, cause you are first using one argument, and then two...
Salepate is right about the player loop, although i would've used iPlayers[i] instead of making a new variable... Also, a variable can't have the same name as a function... |
Re: arrg, somebody help plz
By the first function you posted, it looks like g_money is a variable, not a function. So change this:
Code:
To this: Code:
|
Re: arrg, somebody help plz
Thanks guys, I will try all this out soon. Im horrid at coding I know :cry:
|
Re: arrg, somebody help plz
Just remember the brackets are when you're storing data, and the parenthesis are for when you're calling a function and passing in that data.
|
| All times are GMT -4. The time now is 22:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.