Hey Com.
Ich hab ein Problem mit mein Bizsystem, immer wenn ich /bizname oder sonstige kommt immer SERVER: Unknown Command
hier habt ihr mal den /bizname befehl:
if(strcmp(cmd, "/bizname", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo[playerid][pPbiskey];
if (bouse == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, " Dir gehört kein Geschäfft");
return 1;
}
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "NUTZE: /bizname [Name]");
}
if (bouse >= 100)
{
strmid(SBizzInfo[bouse-100][sbMessage], result, 0, 64, 255);
format(string, sizeof(string), "Businessname wurde auf %s geändert",SBizzInfo[bouse-100][sbMessage]);
}
else
{
strmid(BizzInfo[bouse][bMessage], result, 0, 64, 255);
format(string, sizeof(string), "Businessname wurde auf %s geändert",BizzInfo[bouse][bMessage]);
}
new string3[160];
if(BizzInfo[bouse][bOwned] == 1)
{
format(string3, sizeof(string3), "[%s]\nInhaber: %s\nTeilhaber: %s\nEintrittspreis: %d$\nLevel: %d\nProdukte: %d/%d\nPreis pro Produkt: %d", BizzInfo[bouse][bMessage],BizzInfo[bouse][bOwner],BizzInfo[bouse][bExtortion],BizzInfo[bouse][bEntranceCost],BizzInfo[bouse][bLevelNeeded],BizzInfo[bouse][bProducts],BizzInfo[bouse][bMaxProducts],BizzInfo[bouse][bPriceProd]);
Update3DTextLabelText(BizzInfo[bouse][bText],COLOR_BUYED,string3);
}
new string4[160];
if(SBizzInfo[bouse-100][sbOwned] == 1)
{
format(string4, sizeof(string4), "[%s]\nInhaber: %s\nTeilhaber: %s\nEintrittspreis: %d$\nLevel: %d\nProdukte: %d/%d\nPreis pro Produkt: %d", SBizzInfo[bouse-100][sbMessage],SBizzInfo[bouse-100][sbOwner],SBizzInfo[bouse-100][sbExtortion],SBizzInfo[bouse-100][sbEntranceCost],SBizzInfo[bouse-100][sbLevelNeeded],SBizzInfo[bouse-100][sbProducts],SBizzInfo[bouse-100][sbMaxProducts], SBizzInfo[bouse-100][sbPriceProd]);
Update3DTextLabelText(SBizzInfo[bouse-100][sbText],COLOR_BUYED,string4);
}
OnPropUpdate();
SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}
Hoffe auf eine schnelle antwort
MfG
S_T_R_A_T_O
-
-
copy un paste is schon scheiße
scripte es doch mal selbst
allein in dem befehl sind so viele fehler das sich eine erklärung nicht lohnt
-
copy un paste is schon scheiße
scripte es doch mal selbst
allein in dem befehl sind so viele fehler das sich eine erklärung nicht lohnt
Der Befehl war ja schon drin hab ja das SoL Script
Nur ich weis nicht wie ich das Fixxe
-
if(strcmp(cmd, "/bizname", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo[playerid][pPbiskey];if (bouse == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, " Dir gehört kein Geschäfft");
return 1;
}
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
return SendClientMessage(playerid, COLOR_WHITE, "NUTZE: /bizname [Name]");}
if (bouse >= 100)
{
//strmid(SBizzInfo[bouse-100][sbMessage], result, 0, 64, 255);
format(string, sizeof(string), "Businessname wurde auf %s geändert",result);
SBizzInfo[bouse-100][sbMessage]=result;
}
else
{
//strmid(BizzInfo[bouse][bMessage], result, 0, 64, 255);
format(string, sizeof(string), "Businessname wurde auf %s geändert",result);
SBizzInfo[bouse][sbMessage]=result;
}
new string3[160];
if(BizzInfo[bouse][bOwned] == 1)
{
format(string3, sizeof(string3), "[%s]\nInhaber: %s\nTeilhaber: %s\nEintrittspreis: %d$\nLevel: %d\nProdukte: %d/%d\nPreis pro Produkt: %d", BizzInfo[bouse][bMessage],BizzInfo[bouse][bOwner],BizzInfo[bouse][bExtortion],BizzInfo[bouse][bEntranceCost],BizzInfo[bouse][bLevelNeeded],BizzInfo[bouse][bProducts],BizzInfo[bouse][bMaxProducts],BizzInfo[bouse][bPriceProd]);
Update3DTextLabelText(BizzInfo[bouse][bText],COLOR_BUYED,string3);
}
new string4[160];
if(SBizzInfo[bouse-100][sbOwned] == 1)
{
format(string4, sizeof(string4), "[%s]\nInhaber: %s\nTeilhaber: %s\nEintrittspreis: %d$\nLevel: %d\nProdukte: %d/%d\nPreis pro Produkt: %d", SBizzInfo[bouse-100][sbMessage],SBizzInfo[bouse-100][sbOwner],SBizzInfo[bouse-100][sbExtortion],SBizzInfo[bouse-100][sbEntranceCost],SBizzInfo[bouse-100][sbLevelNeeded],SBizzInfo[bouse-100][sbProducts],SBizzInfo[bouse-100][sbMaxProducts], SBizzInfo[bouse-100][sbPriceProd]);
Update3DTextLabelText(SBizzInfo[bouse-100][sbText],COLOR_BUYED,string4);
}
OnPropUpdate();
SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
} -
Kommt immer noch SERVER: Unknown Command
-
breadfish.de
Hat das Thema geschlossen.