Raised This Month: $ Target: $400
 0% 

Format Function Assigns To Every Key


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Minimum
Senior Member
Join Date: Jun 2006
Old 10-04-2006 , 17:20   Format Function Assigns To Every Key
Reply With Quote #1

Heres the problem. When I execute the format functions they format every key of the array. Which makes everyone see the text. And when I make it equal it just shows a random letter because it thinks its an integer. Any suggestions?

Code:
public hud_print(id,message[]) {     if(id == 0) {         new x, players[32]         get_players(players,x,"ac")         for( new i = 0;  i < x; i++ ) {             new playerindex = players[i]             format(hudmsg4[playerindex],127,"%s",hudmsg3[playerindex])             format(hudmsg3[playerindex],127,"%s",hudmsg2[playerindex])             format(hudmsg2[playerindex],127,"%s",hudmsg1[playerindex])             format(hudmsg1[playerindex],127,"%s",message)         }         return PLUGIN_HANDLED     } // Integer Stuff Pt. 1     new message2[128]     format(message2[id],127,"%s",message) // Formatting stuff     //format(hudmsg4[id],127,"%s",hudmsg3[id])     //format(hudmsg3[id],127,"%s",hudmsg2[id])     //format(hudmsg2[id],127,"%s",hudmsg1[id])     //format(hudmsg1[id],127,"%s",message) // Integer Stuff Pt. 2     hudmsg4[id] = hudmsg3[id]     hudmsg3[id] = hudmsg2[id]     hudmsg2[id] = hudmsg1[id]     hudmsg1[id] = message2[id]     return PLUGIN_HANDLED }
Minimum is offline
Send a message via AIM to Minimum Send a message via MSN to Minimum
 


Thread Tools
Display Modes

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 04:56.


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