Pretraga

Pritisnite Enter za pretragu ili Escape za zatvaranje

Zaključano

[pomoc] Server Unknown Command

Započeo Erik_Bond
pre 13 godina
253
pregleda
4
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
Erik_Bond
Street Runner
pre 13 godina
Skripta koju koristim:moja
Detaljan opis problema: na ovoj komandi mi dolazi Server Unknown Command
Dio skripte:

if(strcmp(cmd, "/fpodigni", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo;
if (bouse == 255)
{SendClientMessage(playerid, COLOR_GRAD2, " Ne posjedujete firmu.");return 1;}

tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
if (bouse >= 100)
{
format(string, sizeof(string), "Imate $%d u vasoj kasi.", SBizzInfo[bouse-100]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else
{
format(string, sizeof(string), "Imate $%d u vasoj kasi.", BizzInfo);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /fpodigni ");
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /fpodigni ");return 1;}
if (bouse >= 100)
{
if(cashdeposit > SBizzInfo[bouse-100] || cashdeposit < 1)
{SendClientMessage(playerid, COLOR_GRAD2, "Nemate toliko.");return 1;}
}
else
{
if (cashdeposit > BizzInfo || cashdeposit < 1)
{SendClientMessage(playerid, COLOR_GRAD2, "Nemate toliko.");return 1;}
}

if (bouse >= 100)
{
if(!PlayerToPoint(5, playerid,SBizzInfo,SBizzInfo,SBizzInfo))
{SendClientMessage(playerid, COLOR_GRAD2, "Predaleko ste od vase firme!");return 1;}

else
{
SafeJBC_GivePlayerMoney(playerid,cashdeposit);
SBizzInfo[bouse-100] -= cashdeposit;
format(string, sizeof(string), "Uzeli ste $%d iz vase kase, Ukupno: $%d", cashdeposit,SBizzInfo[bouse-100]);
OnPropUpdate();
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}
}

}
return 1;
}
if(strcmp(cmd, "/fostavi", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo;
if (bouse == 255)
{SendClientMessage(playerid, COLOR_GRAD2, " Ne posjedujete firmu.");return 1;}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
if (bouse >= 100)
{
format(string, sizeof(string), "Imate $%d u vasoj kasi.", SBizzInfo[bouse-100]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else
{
format(string, sizeof(string), "Imate $%d u vasoj kasi.", BizzInfo);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /fostavi ");
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /fostavi ");
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{SendClientMessage(playerid, COLOR_GRAD2, "Nemate toliko.");return 1;}

if (bouse >= 100)
{
if(!PlayerToPoint(5, playerid,SBizzInfo,SBizzInfo,SBizzInfo))
{SendClientMessage(playerid, COLOR_GRAD2, "Predaleko ste od vase firme.");return 1;}
else
{
SafeJBC_GivePlayerMoney(playerid,-cashdeposit);
SBizzInfo[bouse-100] += cashdeposit;
ExtortionSBiz(bouse-100, cashdeposit);
format(string, sizeof(string), "Stavili ste $%d u vasu kasu, Ukupno: $%d ", cashdeposit,SBizzInfo[bouse-100]);
OnPropUpdate();
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}
}

}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Erik_Bond
Street Runner
pre 13 godina
oce tko odgovorit treba mi hitno
😢
Obrisan korisnik Obrisan korisnik
pre 13 godina
Jesi možda mešao sa YCMD ili ZCMD?
Erik_Bond
Street Runner
pre 13 godina
da mjesano je sa zcmd

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava