Raised This Month: $ Target: $400
 0% 

lol


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BodyBuilder
BANNED
Join Date: Jun 2011
Location: Europa-USA-Moon
Old 08-07-2011 , 13:53   lol
Reply With Quote #1

lol

Last edited by BodyBuilder; 12-23-2012 at 12:40.
BodyBuilder is offline
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
bibu
Veteran Member
Join Date: Sep 2010
Old 08-07-2011 , 14:00   Re: Run time error 4: index out of bounds
Reply With Quote #3

Also getting the country and such stuff in connect is too early AFAIK, a task would be better.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-07-2011 , 21:34   Re: Run time error 4: index out of bounds
Reply With Quote #4

This kid still hasn't learned to indent correctly. . .

Quote:
Originally Posted by bibu View Post
Also getting the country and such stuff in connect is too early AFAIK, a task would be better.
If you have an IP you can get their country.
__________________
fysiks is offline
Old 08-08-2011, 02:11
BodyBuilder
This message has been deleted by BodyBuilder.
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 08-08-2011 , 05:02   Re: Run time error 4: index out of bounds
Reply With Quote #6

Use the colorchat system i suggested in post #2
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
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 03:19.


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