new leveluppp = 5*AccountInfo[playerid][Level]; new mylvl = leveluppp-1; new levelup = 1+AccountInfo[playerid][Level]; new strings[256],string[256]; if(AccountInfo[playerid][PremiumPoints] <= mylvl) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!"); AccountInfo[playerid][PremiumPoints] -= leveluppp; AccountInfo[playerid][Level]++; format(string,sizeof(string),"Ai cumparat LevelUP(%d) pentru %d puncte premium.", levelup, leveluppp); SCM(COLOR_YELLOW,string,1);
argument type mismatch (argument 2
SCM(COLOR_YELLOW,string,1);
|
Assuming SCM is SendClientMessage,
(playerid, color, string). What's the 1 for? |

SendClientMessage(playerid, -1, "This text is white.");
SendClientMessageToAll(-1, "Hello!");

SendClientMessageToAll(COLOR_YELLOW, string);