17.02.2019, 06:31
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 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);
They help me solve it?