Undefined symbol "id"
Why am I getting error message "undefined symbol 'id'" on this code?
Code:
if(get_user_flags(id) & ADMIN_CHAT) |
Re: Undefined symbol "id"
Because the variable 'id' doesn't exist.
|
Re: Undefined symbol "id"
Quote:
|
Re: Undefined symbol "id"
You should create that variable and assign the client index. Since you only posted one line of code, I don't know where the client index is supposed to come from.
|
Re: Undefined symbol "id"
Tsunami gave you a perfect answer but if you don't know what a client index is then show us the whole function and we can fix it for you.
Also, this is the Sourcemod section, only SourcePawn is related here. That's one of AMXX core functions so I'm assuming that's Pawn language which should be posted in the AMXX scripting section. |
Re: Undefined symbol "id"
Quote:
|
Re: Undefined symbol "id"
Quote:
|
Re: Undefined symbol "id"
Here's the code that he PM'ed me. Apparently he's new to coding.
PHP Code:
|
Re: Undefined symbol "id"
I was scripting like this when i started coding first time :D
|
Re: Undefined symbol "id"
PHP Code:
|
All times are GMT -4. The time now is 02:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.