How to indexed array
Hello guys, i make a test plugin for show my problem
Code:
#include <amxmodx>Here: set_task(1.0,"ssm_testexecute",message+3322,_ ,_,"a") Help me solve this please |
Re: How to indexed array
Its id+3322
|
Re: How to indexed array
You can't set a task with an entire array. What it wants you to do is:
PHP Code:
PHP Code:
|
Re: How to indexed array
I need to use message in next public and i need to use task because i need to repeat this public ssm_testexecute 3 times
set_task(1.0,"ssm_testexecute",0,array,2,"a", 3) like this but in public ssm_testexecute i need tu use message in clien_print .. |
Re: How to indexed array
Then I would advise creating a global variable: gPlayer and assigning the player variable to it. Then do:
PHP Code:
|
Re: How to indexed array
dont work RedRoboster he show me my name but not my text
He show me this: ADMIN -B1ng0-: -B1ng0- but i type this command amx_test -B1ng0- Test_message need show me this: ADMIN -B1ng0-: Test_message |
Re: How to indexed array
PHP Code:
|
Re: How to indexed array
@RedRobster THX YOU i found my problem
client_print(gPlayer, print_chat, "ADMIN %: %s", name, gMessage) Here is it look at ADMIN % i forgot s = %s Thank You mate |
Re: How to indexed array
That could cause race conditions if amx_test is used by someone else (or the same person; different problem) before it has finished printing.
I believe you can send string through a set_task like: Code:
set_task(time, "function", id+offset, string, sizeof(string), "a", 3) |
Re: How to indexed array
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 07:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.