C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 18th, 2004, 12:45 AM
Ty M. Ty M. is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 Ty M. User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
n00b help

Okay, I'm probablly taking on a project way too big for my C++ knowledge, but I'll give it a shot.

Basically, I want to make a script that reads a log file, and when it finds the string "KILLPLAYER" execute a certain action (Posted below).


void UGIN_Crate_Page_Ammo::Custom(GameObject *obj, int message, int param, GameObject *sender) {
if (message == CUSTOM_EVENT_POWERUP) {
char KillMsg[512];
sprintf(KillMsg,"page %s You have picked up an ammo crate. Your ammo has been refilled. ",PlayerName(sender));
ConsoleCommand(KillMsg);
}
}

Could someone tell me where to start and possible give some code samples? Any help is greatly appreciated.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > n00b help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT