Hey,
irgendwie bekomme ich diesen Error:
C:\Users\\Desktop\German Elite Reallife 0.3.7-R2\gamemodes\German-Elite-Reallife.pwn(44968) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\German Elite Reallife 0.3.7-R2\gamemodes\German-Elite-Reallife.pwn(44973) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\German Elite Reallife 0.3.7-R2\gamemodes\German-Elite-Reallife.pwn(44978) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\German Elite Reallife 0.3.7-R2\gamemodes\German-Elite-Reallife.pwn(45011) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\German Elite Reallife 0.3.7-R2\gamemodes\German-Elite-Reallife.pwn(45016) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\German Elite Reallife 0.3.7-R2\gamemodes\German-Elite-Reallife.pwn(45049) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\German Elite Reallife 0.3.7-R2\gamemodes\German-Elite-Reallife.pwn(45054) : error 035: argument type mismatch (argument 1)
if(strcmp(cmd, "/edit", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 21)
{
SendClientMessage(playerid, COLOR_GRAD2, " Du bist kein Admin !");
return 1;
}
new x_job[256];
x_job = strtok(cmdtext, idx);
if(!strlen(x_job)) {
SendClientMessage(playerid, COLOR_WHITE, "|__________________ Edit __________________|");
SendClientMessage(playerid, COLOR_WHITE, "Benutze: /edit [name] [ammount] (Used for Houses and Businesses)");
SendClientMessage(playerid, COLOR_GREY, "Verfügbare names: Level, Price, Funds, Products");
SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "NUTZE: /edit [name] [ammount]");
return 1;
}
new proplev = strval(tmp);
//if(strcmp(x_job,"car",true) == 0)
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (IsPlayerInRangeOfPoint(playerid,3.0,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
format(string, sizeof(string), "House: %d", i);
SendClientMessage(playerid, COLOR_GRAD2, string);
if(proplev > 0)
{
if(strcmp(x_job,"level",true) == 0)
{
HouseInfo[i][hLevel] = proplev;
}
else if(strcmp(x_job,"price",true) == 0)
{
HouseInfo[i][hValue] = proplev;
}
}
new string2[128];
if(HouseInfo[i][hOwned] == 0)
{
format(string2, sizeof(string2), "Zum Verkauf\n%d $\nLevel: %d\nBeschreibung: %s\n '/buyhouse' zum Kaufen", HouseInfo[i][hValue], HouseInfo[i][hLevel], HouseInfo[i][hDiscription]);
Update3DTextLabelText(string2,COLOR_WHITE,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]);
}
else if(HouseInfo[i][hOwned] == 1 || HouseInfo[i][hRentabil] == 0)
{
format(string2, sizeof(string2), "Besitzer: %s\nLevel: %d\nMiete: %d $\n '/rentroom' zum Mieten",HouseInfo[i][hOwner], HouseInfo[i][hLevel], HouseInfo[i][hRent]);
Update3DTextLabelText(string2,COLOR_WHITE,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]);
}
else if(HouseInfo[i][hOwned] == 1 || HouseInfo[i][hRentabil] >= 1)
{
format(string2, sizeof(string2), "Besitzer: %s\nLevel: %d",HouseInfo[i][hOwner], HouseInfo[i][hLevel]);
Update3DTextLabelText(string2,COLOR_WHITE,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]);
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (IsPlayerInRangeOfPoint(playerid,3.0,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
format(string, sizeof(string), "Biz: %d", i);
SendClientMessage(playerid, COLOR_GRAD2, string);
if(proplev > 0)
{
if(strcmp(x_job,"level",true) == 0)
{
BizzInfo[i][bLevelNeeded] = proplev;
}
else if(strcmp(x_job,"price",true) == 0)
{
BizzInfo[i][bBuyPrice] = proplev;
}
else if(strcmp(x_job,"funds",true) == 0)
{
BizzInfo[i][bTill] = proplev;
}
else if(strcmp(x_job,"products",true) == 0)
{
BizzInfo[i][bProducts] = proplev;
}
}
new string3[160];
if(BizzInfo[i][bOwned] == 0)
{
format(string3, sizeof(string3), "%s\nZum Verkauf\n Preis: %d $\nLevel: %d\n",BizzInfo[i][bMessage], BizzInfo[i][bBuyPrice], BizzInfo[i][bLevelNeeded]);
Update3DTextLabelText(string3,COLOR_WHITE,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]);
}
else if(BizzInfo[i][bOwned] == 1)
{
format(string3, sizeof(string3), "%s\nBesitzer: %s\nBizteilhaber: %s\nLevel: %d\nEintrittspreis: %d\nProduktpreis: %d $\nBenötigte Produkte: %d",BizzInfo[i][bMessage], BizzInfo[i][bOwner], BizzInfo[i][bExtortion], BizzInfo[i][bLevelNeeded], BizzInfo[i][bEntranceCost], BizzInfo[i][bPriceProd], BizzInfo[i][bMaxProducts] - BizzInfo[i][bProducts]);
Update3DTextLabelText(string3,COLOR_WHITE,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]);
}
}
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
if (IsPlayerInRangeOfPoint(playerid,3.0,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
{
format(string, sizeof(string), "SBiz: %d", i);
SendClientMessage(playerid, COLOR_GRAD2, string);
if(proplev > 0)
{
if(strcmp(x_job,"level",true) == 0)
{
SBizzInfo[i][sbLevelNeeded] = proplev;
}
else if(strcmp(x_job,"price",true) == 0)
{
SBizzInfo[i][sbBuyPrice] = proplev;
}
else if(strcmp(x_job,"funds",true) == 0)
{
SBizzInfo[i][sbTill] = proplev;
}
else if(strcmp(x_job,"products",true) == 0)
{
SBizzInfo[i][sbProducts] = proplev;
}
}
new string4[160];
if(SBizzInfo[i][sbOwned] == 0)
{
format(string4, sizeof(string4), "%s\nZum Verkauf\n Preis: %d $\nLevel: %d\n",SBizzInfo[i][sbMessage], SBizzInfo[i][sbBuyPrice], SBizzInfo[i][sbLevelNeeded]);
Update3DTextLabelText(string4,COLOR_WHITE,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]);
}
else if(SBizzInfo[i][sbOwned] == 1)
{
format(string4, sizeof(string4), "%s\nBesitzer: %s\nBizteilhaber: %s\nLevel: %d\nEintrittspreis: %d\nProduktpreis: %d $\nBenötigte Produkte: %d",SBizzInfo[i][sbMessage], SBizzInfo[i][sbOwner], SBizzInfo[i][sbExtortion], SBizzInfo[i][sbLevelNeeded], SBizzInfo[i][sbEntranceCost], SBizzInfo[i][sbPriceProd], SBizzInfo[i][sbMaxProducts] - SBizzInfo[i][sbProducts]);
Update3DTextLabelText(string4,COLOR_WHITE,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]);
}
}
}
format(string, sizeof(string), "Du hast die/den %s eingestellt.", x_job);
SendClientMessage(playerid, COLOR_WHITE, string);
OnPropUpdate();
}
return 1;
}
Das betrift die Update3DTextLabelText