Raised This Month: $ Target: $400
 0% 

Error: expected token: ";" but found "-identifier-"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
quilhos
Veteran Member
Join Date: Jun 2010
Old 11-26-2011 , 16:11   Error: expected token: ";" but found "-identifier-"
Reply With Quote #1

Well I have a small problem in compilation:

PHP Code:
MakeTutor(id,Text[],Color,Float:Time 0.0
{
    
    
message_begin(MSG_ALL,g_MsgTutor,_,id);
    
write_string(Text);
    
write_byte(0);
    
write_short(0);
    
write_short(0);
    
write_short(1<<Color);
    
message_end();
    
    if(
Time != 0.0)
    {
        
        
set_task(Time,"RemoveTutor",id TASK_TUT);
    }
}

MsgWelcome(id,Text[],Color,Float:Time 0.0
{
    
    
message_begin(MSG_ONE_UNRELIABLE,g_MsgTutor,_,id);
    
write_string(Text);
    
write_byte(0);
    
write_short(0);
    
write_short(0);
    
write_short(1<<Color);
    
message_end();
    
    if(
Time != 0.0)
    {
        
set_task(Time,"RemoveTutor",id TASK_TUT);
    }
}

public 
RemoveTutor(taskID)
{
    
    new 
id taskID TASK_TUT
    
    
    message_begin
(MSG_ALL,g_MsgTutClose,_,id);
    
message_end();

Thanks for help
quilhos is offline
 



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 08:24.


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