Raised This Month: $ Target: $400
 0% 

array index out of bounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bone
Member
Join Date: Mar 2005
Location: Under your bed
Old 04-14-2005 , 18:01   array index out of bounds
Reply With Quote #1

I am trying edit Ava's plugin so the new ATMS in mecklenburg work, the code i put in was

Code:
 new bankposX[3] = { -2504, 680, 275 };  new bankposY[3] = { 1072,-430, -430 };  new bankposZ[3] = { -400, -345, -345 };  new bankposA[3] = { 585, -778, 292 };  new bankposB[3] = { -2135, 2642, -344 };  new bankposC[3] = { -3605, 2645, -1179 };

Code:
        }         new origin[3], checkorigin[3], validpos;         get_user_origin(id,origin);         // check if player is near an ATM         for(new i=0;i<sizeof(bankposX);i++) {             checkorigin[0] = bankposX[i];             checkorigin[1] = bankposY[i];             checkorigin[2] = bankposZ[i];                         checkorigin[3] = bankposA[i];                         checkorigin[4] = bankposB[i];                         checkorigin[5] = bankposC[i];             if(get_distance(origin,checkorigin) <= 48) {                 validpos = 1;             }         }

and i get array index out of bounds which is somehow being caused by the new backposA,B and C arrays, can someone please help my problem. thanks
__________________
the shirt covered her face, she screamed and clawed, so billy stomped on the bitch until he broke in her jaw.
Bone is offline
Send a message via MSN to Bone
 



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 09:50.


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