Raised This Month: $ Target: $400
 0% 

array problem :X


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 05-08-2006 , 17:21   array problem :X
Reply With Quote #1

compiling error
Code:
Error: Must be assigned to an array on line 600
code V
Code:
public item_gas(){     new arg[32], arg2[32], id     read_argv(1,arg,31)     read_argv(2,arg2,32)     id = str_to_num(arg)     fuel[id] = str_to_num(arg2)     if(incar[id] == 1){         fuel[id] = arg2     }     else     {         client_print(id,print_chat,"[CarMod] You need to be incar to put in gas!")     }     return PLUGIN_HANDLED }
wonsae is offline
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 05-08-2006 , 17:35  
Reply With Quote #2

Code:
public item_gas(){     new arg[32], arg2[32], id     read_argv(1,arg,31)     read_argv(2,arg2,31)     id = str_to_num(arg)     if(incar[id] == 1){         fuel[id] = str_to_num(arg2)     }     else     {         client_print(id,print_chat,"[CarMod] You need to be incar to put in gas!")     }     return PLUGIN_HANDLED }
__________________
FatalisDK is offline
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 05-08-2006 , 17:39  
Reply With Quote #3

Code:
 public item_gas(){     new arg[32], arg2[32], id     read_argv(1,arg,31)     read_argv(2,arg2,31)     id = str_to_num(arg)     if(incar[id] == 1){         fuel[id] = str_to_num(arg2) // this is 600? now it should work     }     else     {         client_print(id,print_chat,"[CarMod] You need to be incar to put in gas!")     }     return PLUGIN_HANDLED }
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 05-08-2006 , 17:42  
Reply With Quote #4

thanks!
wonsae is offline
Reply



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 05:01.


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