bekomme in denn zeilen errors ...
Zeile (24324) : Variable wurde falsch definiert (Float,Integer[...])
und das die ganze reihe durch....
könnte mir da jemand helfen ?
ocmd:createhouse(playerid, params[])
{
new cost, file[HOUSEFILE_LENGTH], h = GetFreeHouseID(), labeltext[150];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOUR_SYSTEM, INVALID_CMD_MSG);
if(sscanf(params, "d", cost)) return SendClientMessage(playerid, COLOUR_SYSTEM, "Usage: /createhouse (house value)");
if(h < 0)
{
ShowInfoBox(playerid, " Information", "Sorry, But There Are Already %d Houses Created.\nDelete One Of The Current Ones Or Increase The Limit In The Script.", MAX_HOUSES);
}
if(cost < MIN_HOUSE_VALUE || cost > MAX_HOUSE_VALUE) return SendClientMessage(playerid, COLOUR_SYSTEM, "Invalid House Value. The House Value Must Be Between $1,500,000-$25,000,000.");
else
{
format(file, sizeof(file), "/GarHouse/Houses/%d.ini", h);
dini_Create(file);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
dini_FloatSet(file, "CPOutX", X);
dini_FloatSet(file, "CPOutY", Y);
dini_FloatSet(file, "CPOutZ", Z);
dini_Set(file, "HouseName", DEFAULT_HOUSE_NAME);
dini_Set(file, "HouseOwner", INVALID_HOWNER_NAME);
dini_Set(file, "HousePassword", "INVALID_HOUSE_PASSWORD");
dini_Set(file, "HouseCreator", pNick(playerid));
dini_IntSet(file, "HouseValue", cost);
dini_IntSet(file, "HouseStorage", 0);
format(labeltext, sizeof(labeltext), "House Name: %s\nHouse Owner: No Owner\nHouse Value: $%d\nHouse ID: %d", DEFAULT_HOUSE_NAME, cost, h);
HouseCPOut[h] = CreateDynamicCP(X, Y, Z, 1.5, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 25.0);
HouseCPInt[h] = CreateDynamicCP(2196.84, -1204.36, 1049.02, 1.5, (h + 1000), 6, -1, 100.0);
HouseMIcon[h] = CreateDynamicMapIcon(X, Y, Z, 31, -1, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 50.0);
HouseLabel[h] = Create3DTextLabel(labeltext, COLOUR_GREEN, X, Y, Z+0.7, 25, GetPlayerVirtualWorld(playerid), 1);
SendMSG(playerid, COLOUR_YELLOW, 128, "House ID %d Created...", h);
GetPosInFrontOfPlayer(playerid, X, Y, -2.5);
dini_FloatSet(file, "SpawnOutX", X);
dini_FloatSet(file, "SpawnOutY", Y);
dini_FloatSet(file, "SpawnOutZ", Z);
dini_FloatSet(file, "SpawnOutAngle", floatround((180 + Angle)));
dini_IntSet(file, "SpawnWorld", GetPlayerVirtualWorld(playerid));
dini_IntSet(file, "SpawnInterior", GetPlayerInterior(playerid));
dini_IntSet(file, "HouseInterior", 0);
dini_IntSet(file, "HouseInteriorValue", H_INT_0_VALUE);
dini_Set(file, "HouseInteriorName", "Default House");
dini_IntSet("/GarHouse/House.ini", "CurrentID", dini_Int("/GarHouse/House.ini", "CurrentID") + 1);
dini_IntSet("/GarHouse/House.ini", "CurrentWorld", dini_Int("/GarHouse/House.ini", "CurrentID") + 1000);
#if defined GH_DEBUGGING
printf("[GarHouse Debug] (OnPlayerCommandText) - %s (%d) Created A House. [House ID: %d | House Value: $%d | Total Houses: %d]", pNick(playerid), playerid, h, cost, GetTotalHouses());
#endif
}
return 1;
}