amx_tagct amx_tagt
Hello! I want to add a Tag CT,Tag T to a message who show score. And i have problem with read arguments.
And I want Default tags to be tagct = CT & tagt = T The Score is working, this is just a part from plugin! Eq. If i use amx_tagct "GG" after that if I use .score he must show me (Score is: GG: x T: y ) PHP Code:
|
Re: amx_tagct amx_tagt
We can't help you without more of the plugin. Where are tagct and tagt being defined?
|
Re: amx_tagct amx_tagt
PHP Code:
|
Re: amx_tagct amx_tagt
They need to be a global variable, not a local variable
|
Re: amx_tagct amx_tagt
PHP Code:
/tmp/textKbjVMX.sma(11) : error 029: invalid expression, assumed zero /tmp/textKbjVMX.sma(11) : warning 215: expression has no effect /tmp/textKbjVMX.sma(11) : error 001: expected token: ";", but found ")" /tmp/textKbjVMX.sma(11) : fatal error 107: too many error messages on one line Compilation aborted. 4 Errors. |
Re: amx_tagct amx_tagt
PHP Code:
no need to use ; and = but in your case you dont need to use DEFINE this is just replacement not a variable PHP Code:
but note that the size changed. you can do this instead: new tagct[32]; new tagt[32]; before plugin_init. |
Re: amx_tagct amx_tagt
#define will not work
|
Re: amx_tagct amx_tagt
Thank`s now works that, but i have problem with read_argv
PHP Code:
/tmp/textiNPmU5.sma(20) : error 021: symbol already defined: "tagct" /tmp/textiNPmU5.sma(23) : error 010: invalid function or declaration /tmp/textiNPmU5.sma(24) : error 010: invalid function or declaration /tmp/textiNPmU5.sma(26) : error 021: symbol already defined: "read_argv" /tmp/textiNPmU5.sma(31) : error 054: unmatched closing brace /tmp/textiNPmU5.sma(34) : error 021: symbol already defined: "tagt" /tmp/textiNPmU5.sma(37) : error 010: invalid function or declaration /tmp/textiNPmU5.sma(38) : error 010: invalid function or declaration 8 Errors. Could not locate output file /home/groups/amxmodx/public_html/websc3/textiNPmU5.amx (compile failed). |
Re: amx_tagct amx_tagt
You cannot have a function and a variable as the same name
|
Re: amx_tagct amx_tagt
PHP Code:
/tmp/textXZxDrc.sma(39) : error 088: number of arguments does not match definition 2 Errors. Could not locate output file /home/groups/amxmodx/public_html/websc3/textXZxDrc.amx (compile failed). |
| All times are GMT -4. The time now is 13:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.