View Single Post
DopeFish
Senior Member
Join Date: Feb 2004
Old 03-08-2004 , 07:17  
#10

yeah I know, fortunatly the amx abstract machine is downwards compatible so I can still use the old sc.

this code doesn't work with the new compiler anymore:
Code:
#include <amxmod>
                                                                                                        
#if !defined (BLARGH)
      #define BLARGH 1
#endif
                                                                                                        
#if BLARGH
                                                                                                        
public plugin_init()
{
        register_plugin("Test Plugin","0.1","dopy")
        return PLUGIN_CONTINUE
}
                                                                                                        
#endif
Code:
./sc2 test.sma -otest.amx
Small compiler 2.4              Copyright (c) 1997-2003, ITB CompuPhase
 
test.sma(7) : error 017: undefined symbol "BLARGH"
test.sma(16) : error 013: no entry point (no public functions)
 
2 Errors.
DopeFish is offline
Send a message via ICQ to DopeFish