Raised This Month: $ Target: $400
 0% 

Array must be Indexed error!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OmgHi
Junior Member
Join Date: Jan 2007
Old 01-25-2007 , 12:42   Array must be Indexed error!
Reply With Quote #1

Code:

select_string (id,"SAVE","userskillsfireball","authid",authid,buffer)
new userskillsfireball[32]
userskillsfireball = str_to_num(buffer)
if(!is_user_connected(entid) && is_user_alive(id))
{
if((userskillsfireball[entid] >= fireballskill[0] && userskillsfireball[entid] <= fireballskill[1]))


Thats the part of the code where i get the "Userskillsfireball is an array and must be indexed Error 033" Error.

How do i index an array?

Edit: Um for somereason when i paste it its all messed up :s I hope that won't hinder anyone solving my problem

Last edited by OmgHi; 01-25-2007 at 12:47.
OmgHi is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-25-2007 , 12:48   Re: Array must be Indexed error!
Reply With Quote #2

userskillsfireball = str_to_num(buffer)
-->
userskillsfireball[entid] = str_to_num(buffer)
[ --<-@ ] Black Rose is offline
OmgHi
Junior Member
Join Date: Jan 2007
Old 01-25-2007 , 13:08   Re: Array must be Indexed error!
Reply With Quote #3

OMG THANKS! SO OBVIOUS!!! HOW COULD I NOT SEE IT!! !!

Im going to go try it out right now, thanks man
OmgHi 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 22:29.


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