Raised This Month: $ Target: $400
 0% 

lol


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 08-07-2011 , 13:58   Re: Run time error 4: index out of bounds
Reply With Quote #2

Why are you using emessage ? Do you even know what it does ?
Code:
ShowColorMessage(id, type, message[]) {     emessage_begin(type, get_user_msgid("SayText"), _, id)     ewrite_byte(id)             ewrite_string(message)     emessage_end() } Team_Info(id, type, team[]) {     emessage_begin(type, get_user_msgid("TeamInfo"), _, id)     ewrite_byte(id)     ewrite_string(team)     emessage_end()     return 1 }

Btw try changing this
Code:
FindPlayer() {     new i = -1     while(i <= get_maxplayers()) {     if(IsConnected[++i]) {     return i } }     return -1 }
to this :
Code:
FindPlayer() {     static maxplayers     if (!maxplayers) maxplayers = get_maxplayers()     for( new id = 1; id <= maxplayers; id++ )     {         if(IsConnected[id])             return id;     }     return -1; }
But still i'll suggest you to use a more reliable color chat, like this
__________________

My Plugins For ZP

Inactive due to College and Studies

Last edited by abdul-rehman; 08-07-2011 at 14:10.
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
 



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 03:19.


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