Help with setplayercolor()
#2

Try this, I used it for an ingame SetObjectMaterial thingy a while back. (I didn't make this, but i'm not sure who did, sorry)

pawn Код:
HexToInt(string[])
{
   if (string[0]==0) return 0;
   new i;
   new cur=1;
   new res=0;
   for (i=strlen(string);i>0;i--) {
     if (string[i-1]<58) res=res+cur*(string[i-1]-48); else res=res+cur*(string[i-1]-65+10);
     cur=cur*16;
   }
   return res;
 }
Reply


Messages In This Thread
Help with setplayercolor() - by SkyLineGT - 04.10.2014, 22:59
Re: Help with setplayercolor() - by TakeiT - 05.10.2014, 02:06

Forum Jump:


Users browsing this thread: 1 Guest(s)