I am a newbie in module coding.
I tried making a module and then compiling it, but failed.
I got these errors --
Code:
1>------ Build started: Project: Zombie_Queen, Configuration: Debug Win32 ------
1>Zombie_Queen.cpp
1>c:\users\hp\desktop\zombie outstanding\sqlite database zm outstanding indio\addons\amxmodx\modul\sdk\amxxmodule.cpp(1286): error C2440: 'initializing': cannot convert from 'void (__cdecl *)(int,char *,char *,char *)' to 'void (__cdecl *)(int,char *,const char *,const char *)'
1>c:\users\hp\desktop\zombie outstanding\sqlite database zm outstanding indio\addons\amxmodx\modul\sdk\amxxmodule.cpp(1286): note: None of the functions with this name in scope match the target type
1>Done building project "Zombie_Queen.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
How to fix these error ?
My Zombie_queen.cpp ---
Code:
// Zombie_Queen.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "amxxmodule.h"
#include "amxxmodule.cpp"
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#define INT_TO_EDICT( i ) \
INDEXENT(i)
#define EDICT_TO_INT( i ) \
ENTINDEX(i)
int DispatchSpawn(edict_t * pSpawned) {
edict_t * pEntity = CREATE_NAMED_ENTITY(ALLOC_STRING("env_fog"));
if (!FNullEnt(pEntity)) {
KeyValueData KVD;
KVD.szClassName = "env_fog";
KVD.szKeyName = "density";
KVD.szValue = "0.00086";
KVD.fHandled = 0;
MDLL_KeyValue(pEntity, &KVD);
KVD.szClassName = "env_fog";
KVD.szKeyName = "rendercolor";
KVD.szValue = "121 121 121";
KVD.fHandled = 0;
MDLL_KeyValue(pEntity, &KVD);
}
RETURN_META_VALUE(MRES_IGNORED, 0);
}
/*void OnAmxxAttach(void) {
MF_AddNatives(ZombieFunctions);
}*/
Please help me fix these problems