Raised This Month: $ Target: $400
 0% 

Cant Compile


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
uzairhussain
Junior Member
Join Date: May 2016
Old 05-29-2016 , 08:59   Cant Compile
Reply With Quote #1

hello guys
i cant compile a sma because of commas.inc any one have solution
or share commas.inc with me please
im searching for commas.inc since 3hours but i cant find it
please share commas.inc with me

Last edited by uzairhussain; 05-29-2016 at 09:21.
uzairhussain is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 05-29-2016 , 09:10   Re: Cant Compile
Reply With Quote #2

Sma?
__________________
Artifact is offline
uzairhussain
Junior Member
Join Date: May 2016
Old 05-29-2016 , 09:21   Re: Cant Compile
Reply With Quote #3

yup i cant compile sma
uzairhussain is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 05-29-2016 , 09:38   Re: Cant Compile
Reply With Quote #4

Quote:
Originally Posted by Artifact View Post
Sma?
If you really don't know that sma is an extension of an amxx plugin source code here then I don't know why you're in the amxmodx section.
redivcram is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 05-29-2016 , 10:11   Re: Cant Compile
Reply With Quote #5

You can post the sma because it can help us to find it, or You can find inc by searching stocks which uses plugin from that include.
siriusmd99 is offline
uzairhussain
Junior Member
Join Date: May 2016
Old 05-29-2016 , 10:26   Re: Cant Compile
Reply With Quote #6

here is the sma
Attached Files
File Type: sma Get Plugin or Get Source (ZP65_CORE.sma - 581 views - 390.8 KB)
uzairhussain is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 05-29-2016 , 13:00   Re: Cant Compile
Reply With Quote #7

https://forums.alliedmods.net/showthread.php?t=128571
Post 5

Add that code inside the plugin and remove the include line.
__________________

Last edited by Black Rose; 05-29-2016 at 13:01.
Black Rose is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 05-29-2016 , 14:50   Re: Cant Compile
Reply With Quote #8

Searching for 3 hours?
I found it in 30 seconds by google.
I think you are lazy, but anyway...

PHP Code:


#if !defined COMMAS_H

#define COMMAS_H

#include <amxmodx>

stock AddCommasiNum szOutput[] , iLen ){
static 
szTmp[15] , iOutputPos iNumPos iNumLen;
szTmp[0]='^0',iOutputPos=iNumPos=iNumLen=0;
if(
iNum 0){
szOutputiOutputPos++ ] = '-';
iNum absiNum );}
iNumLen num_to_str(iNum szTmp charsmaxszTmp));
if (
iNumLen <= 3)iOutputPos += copyszOutputiOutputPos] , iLen szTmp);
else{
while ((
iNumPos iNumLen) && ( iOutputPos iLen)){
szOutput[iOutputPos++] = szTmpiNumPos++ ];
if((
iNumLen iNumPos) && !((iNumLen iNumPos ) % 3))szOutput[iOutputPos++] = ','
}
szOutput[iOutputPos] = EOS;
}
return 
iOutputPos;
}

#endif 
siriusmd99 is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 05-29-2016 , 14:59   Re: Cant Compile
Reply With Quote #9

Quote:
Originally Posted by redivcram View Post
If you really don't know that sma is an extension of an amxx plugin source code here then I don't know why you're in the amxmodx section.
Oh sorry, i go home then... -.-''
__________________
Artifact is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 05-29-2016 , 15:22   Re: Cant Compile
Reply With Quote #10

Redivcram, Artifact asked for sma , he didnt ask what is sma
siriusmd99 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 18:44.


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