hey leutz,
mein setinterior befehl funktioniert nicht.
ocmd:setint(playerid, params[])
{
if(!IsPlayerAnAdmin(playerid, 3))return SendClientMessage(playerid, ERROR, "Dein Adminrang ist zu niedrig.");
new tmp_int[2];
if(sscanf(params, "i", tmp_int))return SendClientMessage(playerid, ERROR, "INFO: /setint [1-14]");
for(new i=0; i<sizeof(hInfo); i++)
{
if(!hInfo[i][h_id])continue;
if(!IsPlayerInRangeOfPoint(playerid, 2, hInfo[i][h_x], hInfo[i][h_y], hInfo[i][h_z]))continue;
if(!strcmp(tmp_int, "1",true))//einzimmer
{
hInfo[i][ih_x] = 244.411987;
hInfo[i][ih_y] = 305.032989;
hInfo[i][ih_z] = 999.148437;
hInfo[i][h_interior] = 1;
saveHaus(i);
updateHaus(i);
return 1;
}
else if(!strcmp(tmp_int, "2",true))//einzimmer
{
hInfo[i][ih_x] = 266.4988;
hInfo[i][ih_y] = 304.9798;
hInfo[i][ih_z] = 999.1484;
hInfo[i][h_interior] = 2;
saveHaus(i);
updateHaus(i);
return 1;
}
else if(!strcmp(tmp_int, "3",true))//motelroom
{
hInfo[i][ih_x] = 444.646911;
hInfo[i][ih_y] = 508.239044;
hInfo[i][ih_z] = 1001.419494;
hInfo[i][h_interior] = 12;
saveHaus(i);
updateHaus(i);
return 1;
}
else if(!strcmp(tmp_int, "4",true))//B Dup's house
{
hInfo[i][ih_x] = 1527.229980;
hInfo[i][ih_y] = -11.574499;
hInfo[i][ih_z] = 1002.097106;
hInfo[i][h_interior] = 3;
saveHaus(i);
updateHaus(i);
return 1;
}
else if(!strcmp(tmp_int, "5",true))//Cj's house
{
hInfo[i][ih_x] = 2496.049804;
hInfo[i][ih_y] = -1695.238159;
hInfo[i][ih_z] = 1014.742187;
hInfo[i][h_interior] = 3;
saveHaus(i);
updateHaus(i);
return 1;
}
else if(!strcmp(tmp_int, "6",true))//Og Loc's house
{
hInfo[i][ih_x] = 513.882507;
hInfo[i][ih_y] = -11.269994;
hInfo[i][ih_z] = 1001.565307;
hInfo[i][h_interior] = 3;
saveHaus(i);
updateHaus(i);
return 1;
}
else if(!strcmp(tmp_int, "7",true))//Ryders house
{
hInfo[i][ih_x] = 2454.717041;
hInfo[i][ih_y] = -1700.871582;
hInfo[i][ih_z] = 1013.515197;
hInfo[i][h_interior] = 2;
saveHaus(i);
updateHaus(i);
return 1;
}
return 1;
}
return 1;
}
Hoffentlich kann mir einer weiter helfen.