So I have 3 cases, and I'm making a money check, see if he has the money to buy something, but I'm having an epic problem!(yes I did include cstrike)
PHP Code:
new money = cs_get_user_money(id) - 16000
str_to_num(money)
if(money < 16000){
client_print(id,print_chat,"You Don't have enough money to buy godmode")
menu_destroy(menu)
return PLUGIN_HANDLED
}
Compile errors:
Code:
Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Error: Must be a constant expression; assumed zero on line 65
Warning: Loose indentation on line 67
Error: Array must be indexed (variable "money") on line 67
Warning: Loose indentation on line 73
Error: Argument type mismatch (argument 2) on line 81
Error: Must be a constant expression; assumed zero on line 90
Error: Array must be indexed (variable "money") on line 92
Warning: Tag mismatch on line 101
Error: Argument type mismatch (argument 2) on line 103
Error: Must be a constant expression; assumed zero on line 109
Error: Array must be indexed (variable "money") on line 112
8 Errors.
Could not locate output file E:\Steam\steamapps\chrissnafu\counter-strike\cstrike\addons\amxmodx\plugins\WMenu.amx (compile failed).
Halp me doctor Phill! +karma!