When using W3GetVar(SmEvent) I get errors like:
L 04/09/2011 - 22:22:36: [SM] Displaying call stack trace for plugin "War3Source_021_Hells Demon.smx":
L 04/09/2011 - 22:22:36: [SM] [0] Line 182, G:\Sm Plugins\WCS\021_Hells_Demon\War3Source_021_Hells Demon.sp::OnWar3EventPostHurt()
L 04/09/2011 - 22:22:36: [SM] Native "GetEventString" reported: Invalid game event handle 1f1b0319 (error 3)
L 04/09/2011 - 22:22:36: [SM] Displaying call stack trace for plugin "War3Source_023_Shadow_Of_The_Void.smx":
L 04/09/2011 - 22:22:36: [SM] [0] Line 170, G:\Sm Plugins\WCS\023_Shadow_Of_The_Void\War3Source_023_Shadow_Of_The_Void.sp::OnWar3EventPostHurt()
L 04/09/2011 - 22:22:36: [SM] Native "GetEventString" reported: Invalid game event handle 1f1b0319 (error 3)
L 04/09/2011 - 22:22:36: [SM] Displaying call stack trace for plugin "War3Source_025_Nebula.smx":
The code I am using is:
public OnWar3EventPostHurt(victim,attacker,dmgamount)
{
decl String:weapon[64];
GetEventString(W3GetVar(SmEvent),"weapon",weapon,63);
Is there something wrong with the way I am doing this?
Note that I do not get these errors when I test in my test server. However in the main server with multiple players it then appears. There seems to be an issue with the way the commend is processed or something.