Raised This Month: $51 Target: $400
 12% 

[Possible?] if Error occurs do this?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
versatile_bfg
Veteran Member
Join Date: Feb 2012
Old 06-12-2014 , 10:12   [Possible?] if Error occurs do this?
Reply With Quote #1

Hey,
Just wondering if you can do something like this?

PHP Code:
//test this command
if (IsValidClient(i) && GetClientTeam(i) == 2)
{
    
CS_GetClientClanTag(iclanTags[j], sizeof(clanTags[]));
}
//if error happens [as in if gamedata isnt updated]
if error
{
ServerCommand("wm_warmod_safemode 1");

Is there any type of code or command for this?
__________________
versatile_bfg is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 06-13-2014 , 23:13   Re: [Possible?] if Error occurs do this?
Reply With Quote #2

Unfortunately not possible. AFAIK if error is occured, native wont return any value (true/false/bytes written etc).
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
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 13:04.


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