09.01.2010, 12:24
I have a error in the pawno code, how can fix?
Thanx
Код:
{0x00000000},//error 008: must be a constant expression; assumed zero
Код:
if(strcmp(cmd, "/color", true) == 0) { new tmp[64]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USO: /color [0-9]"); SendClientMessage(playerid, COLOR_WHITE, "1=negro 2=amarillo 3=rojo 4=celeste 5=naranja"); SendClientMessage(playerid, COLOR_WHITE, "6=verde 7=lila 8=rosa 9=morado 0=blanco"); return 1; } new color = strval(tmp); GetPlayerName( playerid, name, 30 ); format( string, sizeof( string ), "%s ha cambiado su color.", name); new Float:gColor[10] = { {0x00000000},//error 008: must be a constant expression; assumed zero {0xFFFF00AA}, {0xff0000ff}, {0x33CCFFAA}, {0xFF9900AA}, {0x33AA33AA}, {0x4B00B0AA}, {0xFF66FFAA}, {0x800080AA}, {0xFFFFFFFF} }; SetPlayerColor(playerid, gColor[color]);//warning 213: tag mismatch SendClientMessageToAll(gColor[color], string);//warning 213: tag mismatch return 1; }