30.05.2011, 23:11
Ok, here's my code
and the erros i get..
Code:
static cell AMX_NATIVE_CALL printts(AMX *amx, cell *params) { char* buffer; amx_StrParam(amx,params[1],buffer); logprintf("%s (PRINTTS PRINT)",buffer); // Your codes go in here return 1; // Change the return value if need }
Code:
1>------ Build started: Project: printts, Configuration: Debug Win32 ------ 1>Compiling... 1>printts.cpp 1>c:\users\smoody\documents\visual studio 2008\projects\printts\printts\printts.cpp(21) : error C2065: 'NULL' : undeclared identifier 1>c:\users\smoody\documents\visual studio 2008\projects\printts\printts\printts.cpp(21) : error C3861: '_alloca': identifier not found 1>c:\users\smoody\documents\visual studio 2008\projects\printts\printts\printts.cpp(21) : error C2065: 'NULL' : undeclared identifier 1>Build log was saved at "file://c:\Users\smoody\Documents\Visual Studio 2008\Projects\printts\printts\Debug\BuildLog.htm" 1>printts - 3 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========