Raised This Month: $ Target: $400
 0% 

[solved]set_task with text parameters and taskid


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 06-14-2009 , 14:39   [solved]set_task with text parameters and taskid
Reply With Quote #1

hi, I allways had problems with parameters in set_task
if i pass int it works fine but with string it doesnt compile =\

PHP Code:
public one(id)
{
        new 
text[13]="hello";
        new 
args[2];
        
args[0] = text
        
set_task(4.4"tasktwo"id+644,args,12);
}

public 
tasktwo(taskidparam[2])
{
    new 
id taskid-644;
    
log_amx("param is: %s"param[0])

compiler says: must be assigned to an array about line args[0] = text;
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 06-14-2009 at 14:45.
Owyn is offline
Send a message via ICQ to Owyn
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode