RGBAToARGB for SetObjectMaterialText
#1

pawn Code:
stock RGBAToARGB(col)
{
    return ((((col) << 24) & 0xFF000000) | (((col) >>> 8) & 0xFFFFFF));
}
pawn Code:
getPlayerCrewColor(playerid)
{
    new crew[32];
    if(!PLAYER_CREW[playerid][player_crew_VALID]) crew = "none";
    else format(crew, sizeof crew, "%s", CREW_INFO[ PLAYER_CREW[playerid][player_crew_INDEX] ][crew_COLOR] = RGBAToARGB(crew);
    return crew;
}
Error: error 033: array must be indexed (variable "crew")
error 001: expected token: ",", but found ";"

pawn Code:
new CrewColorGraffiti = getPlayerCrewColor(playerid);  
format(CrewNameGraffiti,sizeof(CrewNameGraffiti),"%s",getPlayerCrew(playerid));
SetObjectMaterialText(GraffitisObj[0], CrewNameGraffiti, 0, OBJECT_MATERIAL_SIZE_256x128, "Comic Sans MS", 24, 1, CrewColorGraffiti, 0x00000000, 0);
Error: error 035: argument type mismatch (argument

They help me solve it?
Reply


Messages In This Thread
RGBAToARGB for SetObjectMaterialText - by KaliDobrev - 17.02.2019, 06:31
Re: RGBAToARGB for SetObjectMaterialText - by Calisthenics - 17.02.2019, 09:21
Re: RGBAToARGB for SetObjectMaterialText - by KaliDobrev - 17.02.2019, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)