Raised This Month: $32 Target: $400
 8% 

How to fix these errors ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 08-02-2017 , 15:26   How to fix these errors ?
Reply With Quote #1

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

Last edited by Abhinash; 08-02-2017 at 15:33.
Abhinash is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode