05.12.2009, 14:19
tengo un problema quiero hacer una opcion que sea color random y encontre esta funcion de draco que encontre en el wiki el problema es que no se como usarla bien.
yo hice asн mi prueba
pero me manda este error
(7076) : error 035: argument type mismatch (argument 1)
Код:
// Author: DracoBlue, http://forum.sa-mp.com/index.php?top...sg8635#msg8635 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; }
Код:
(7076)new color[256]; (7075)format(color,sizeof(color),"%d%d%dFF",random(255),random(255),random(255)); (7076) SetPlayerColor(playerid,IntToHex(color)); // random
(7076) : error 035: argument type mismatch (argument 1)