AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Cant Compile (https://forums.alliedmods.net/showthread.php?t=283268)

uzairhussain 05-29-2016 08:59

Cant Compile
 
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

Artifact 05-29-2016 09:10

Re: Cant Compile
 
Sma?

uzairhussain 05-29-2016 09:21

Re: Cant Compile
 
yup i cant compile sma

redivcram 05-29-2016 09:38

Re: Cant Compile
 
Quote:

Originally Posted by Artifact (Post 2422938)
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.

siriusmd99 05-29-2016 10:11

Re: Cant Compile
 
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.

uzairhussain 05-29-2016 10:26

Re: Cant Compile
 
1 Attachment(s)
here is the sma

Black Rose 05-29-2016 13:00

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

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

siriusmd99 05-29-2016 14:50

Re: Cant Compile
 
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 


Artifact 05-29-2016 14:59

Re: Cant Compile
 
Quote:

Originally Posted by redivcram (Post 2422945)
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... -.-''

siriusmd99 05-29-2016 15:22

Re: Cant Compile
 
Redivcram, Artifact asked for sma , he didnt ask what is sma :)


All times are GMT -4. The time now is 18:44.

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