Raised This Month: $ Target: $400
 0% 

argument type mismatch & loose indentation problem :/


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Damocles
Member
Join Date: Jan 2005
Old 01-21-2005 , 04:27  
Reply With Quote #5

lol

I know there is no send_msg function in the amx libraries. I have written my own function....which i take it is perfectly valid in small as it is in any other language

Here is the code just so you can see what it does. Like i said before its just to remove the need to write the code over again

Code:
public send_msg(id, rateType, rateValue) {       new playerName[32]     new strMesg[128]     get_user_name(id,playerName,31)     format(strMesg,127,"[WARNING] - %s has a low %s value (%s)",playerName, rateType, rateValue)     // Inform any current admins of users low rate     new players[32], inum, playerid     // Get all the players     get_players(players,inum)                       // For each player, check if they are an admin in order to know who to send msg to     for(new i = 0; i < inum; ++i)     {         playerid = players[i]         if (!(get_user_flags(playerid)&ADMIN_CHAT))         {                           client_print(playerid,print_chat,strMesg)         }     }     }

Heopfully this will make it clearer for you to see what im trying to do bishop
Damocles is offline
 



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


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