From 442806dd45e84e0dd545e078e4bbc508c8b8f9d7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 12 Nov 2006 02:27:27 +0000 Subject: [PATCH] updated types and test plugin --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40187 --- plugins/test.sma | 13 +++++++++++-- sourcepawn/include/sp_vm_types.h | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/plugins/test.sma b/plugins/test.sma index 2803c672..fa317e82 100644 --- a/plugins/test.sma +++ b/plugins/test.sma @@ -9,7 +9,16 @@ public Plugin:myinfo = url = "http://www.sourcemod.net/" } -public OnPluginInit() +public Test(num, &num2) { - /* just a test, mommy */ + num2 += num + + return num +} + +public Test2(num, &num2) +{ + num2 += num + + return num } diff --git a/sourcepawn/include/sp_vm_types.h b/sourcepawn/include/sp_vm_types.h index 02b90540..a5987d64 100644 --- a/sourcepawn/include/sp_vm_types.h +++ b/sourcepawn/include/sp_vm_types.h @@ -16,7 +16,7 @@ typedef uint32_t funcid_t; #define SP_ERROR_FILE_FORMAT 1 /* File format unrecognized */ #define SP_ERROR_DECOMPRESSOR 2 /* A decompressor was not found */ #define SP_ERROR_HEAPLOW 3 /* Not enough space left on the heap */ -#define SP_ERROR_PARAM 4 /* Invalid parameter */ +#define SP_ERROR_PARAM 4 /* Invalid parameter or parameter type */ #define SP_ERROR_INVALID_ADDRESS 5 /* A memory address was not valid */ #define SP_ERROR_NOT_FOUND 6 /* The object in question was not found */ #define SP_ERROR_INDEX 7 /* Invalid index parameter */