Quote:
Originally Posted by reinert
Remove .amxx because when you upload .sma it automaticly compiles and uploads .amxx too ;)
Also why did you make a stock and a pcvar ?
PHP Code:
stock GetStartMoney() return get_pcvar_num(g_money);
Can't you use just this :
PHP Code:
new pMoney = get_cvar_num("mp_startmoney")
instead.
|
I don't like having extra queries when a single variable could be stored, making it a lot quicker. As for the stock... I don't know much about the language, but I assumed it was something like 'inline' from reading the examples. I removed the stock and am just using the get_pcvar_num now.
Quote:
Originally Posted by ConnorMcLeod
|
Changed it. It now uses the player spawn. And thank you for your suggestion, I think it's much better now.
I'm not sure of the resubmitting process, but I have replaced the file in the original post.