Witam mam problem wi?c mo?na powiedzie? ?e zrobi?em cmd na dodawanie lecz 0 error?w, warn?w lecz gdy wpisze cmd niby pisze ?e doda?o ale nie daje mi skina prosz? o naprawienie tej cmd lub powiedzenie gdzie co mam doda? dzi?ki
Pomaga? mi w tym KiLLeR oraz oldshool lecz nie zapisuje nie dodaje skin?w daje browaryyyyy -------------------->
g?ra mapy
[code] #define POLICJA "frakcje/policja.djson" [/code]
[code] CMD:dodaj_policja(playerid, params[]) {
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name,MozeDodawac,true)==0 || strcmp(name,MozeDodawac2,true)==0 || strcmp(name,POLICJA_SZEF,true)==0 || strcmp(name,POLICJA_VCSZEF,true)==0){
new string2[256];
if(isnull(params)) return SendClientMessage(playerid, COLOR_YELLOW, "Wpisz: /dodaj_policja [nick]");
format(string2, sizeof(string2), "Gracz %s zostal dodany do Policji!", params);
SendClientMessage(playerid, ZIELONY, string2);
djSetInt(POLICJA, params, 1);
}
return 1;
}
CMD:usun_policja(playerid, params[]) {
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name,MozeDodawac,true)==0 || strcmp(name,MozeDodawac2,true)==0 || strcmp(name,POLICJA_SZEF,true)==0 || strcmp(name,POLICJA_VCSZEF,true)==0){
new string2[256];
if(isnull(params)) return SendClientMessage(playerid, COLOR_YELLOW, "Wpisz: /usun_policja [nick]");
format(string2, sizeof(string2), "Gr... |