13.04.2019, 21:01
Quote:
I fixed it on this way
Code:
CMD:vipboja(playerid, const params[]) { if(vip_Info[playerid][VIPBodovi] <= 0) return SendClientMessage(playerid, vip_Info[playerid][VIPBoja], "VIP | {FFFFFF}Nemate VIP bodova."); extract params -> new string:vipboja[11]; else { return SendClientMessage(playerid, vip_Info[playerid][VIPBoja], "VIP | {FFFFFF}/vipboja (boja - primjer 0x8b9940FF)"); } strcpy(vip_Info[playerid][VIPBoja], vipboja, sizeof(vipboja)); vip_Info[playerid][VIPBodovi] --; format(game_string, sizeof(game_string), "VIP | {FFFFFF}Postavili ste sebi VIP boju na %s.", vipboja); SendClientMessage(playerid, vip_Info[playerid][VIPBoja], game_string); game_string[0] = EOS; format(game_string, sizeof(game_string), "VIP | {FFFFFF}Trenutni VIP bodovi %i", vip_Info[playerid][VIPBodovi]); SendClientMessage(playerid, vip_Info[playerid][VIPBoja], game_string); game_string[0] = EOS; return true; } Code:
strcpy(dest[], src[], size = sizeof(dest)) { dest[0] = EOS; return strcat(dest, src, size); } I put VIP Color ein enumator and I SendClientMessage like this Code:
format(game_string, sizeof(game_string), "VIP | {FFFFFF}Postavili ste sebi VIP boju na %s.", vipboja); SendClientMessage(playerid, vip_Info[playerid][VIPBoja], game_string); I am really confused rn haha |