Raised This Month: $ Target: $400
 0% 

Arrays


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Hellspawn
Junior Member
Join Date: Jun 2005
Old 03-17-2006 , 22:32   Arrays
Reply With Quote #1

I have this code:
Code:
    read_argv(3,arg3,31) 
    read_argv(4,arg4,31) 
    modelname = arg
    x = str_to_num(arg2) 
    y = str_to_num(arg3) 
    z = str_to_num(arg4) 
    
    if(modelname == 0) { 
        return PLUGIN_HANDLED 
    } 
    server_cmd("amx_makecar %s %i  %i %i",modelname, x, y, z) 
    return PLUGIN_HANDLED 
}
It should work fine but it came up with the compiling error of:
makecar.sma<21 -- 22> : error 006:must be assigned to an array.

I have tried assigning it but i am new and don't know how to fix these problems if someone could get this into a compilable plugin that would be great!
Hellspawn 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 16:41.


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