@iEnerqie: Hat nichts gebracht, was ich mir auch gedacht habe. Trotzdem danke für den Versuch
Beiträge von CaZe
-
-
Sieht jemand den SQL Fehler?
format(query,sizeof(query),"UDPATE banneduser SET IsBanned='0',BannedBis='0',BanAdmin='',BanReason='' WHERE BINARY username='%s'",getPlayerName(playerid));
Tabelle:
Danke im Voraus -
Nabend,
habe ein kleines Syntax Problem finde den Fehler aber nicht.SQL[00:40:58] [DEBUG] CMySQLQuery::Execute[] - starting query execution [00:40:58] [ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1',PayDayScore='0',ALevel='10,Skin='211',Sex='0',Fraktion='0',OwnHouse='0',House' at line 1 [00:40:58] [DEBUG] CMySQLQuery::Execute[] - error will be triggered in OnQueryError
stock SavePlayer(playerid)
{
new query[1024];
if(!IsPlayerOnline(playerid))return 1;
format(query,sizeof(query),"UPDATE user SET Geld='%i'",GetPlayerMoney(playerid));
format(query,sizeof(query),"%s,KontoMoney='%i'",query,SpielerInfo[playerid][pKonto]);
format(query,sizeof(query),"%s,Level='%i'",query,GetPlayerScore(playerid));
format(query,sizeof(query),"%s,Morde='%i'",query,SpielerInfo[playerid][pMorde]);
format(query,sizeof(query),"%s,Tode='%i",query,SpielerInfo[playerid][pTode]);
format(query,sizeof(query),"%s,PayDayTime='%i'",query,SpielerInfo[playerid][pPayDayTime]);
format(query,sizeof(query),"%s,PayDayScore='%i'",query,SpielerInfo[playerid][pPayDayScore]);
format(query,sizeof(query),"%s,ALevel='%i",query,SpielerInfo[playerid][pALevel]);
format(query,sizeof(query),"%s,Skin='%i'",query,GetPlayerSkin(playerid));
format(query,sizeof(query),"%s,Sex='%i'",query,SpielerInfo[playerid][pGender]);
format(query,sizeof(query),"%s,Fraktion='%i'",query,SpielerInfo[playerid][pFrak]);
format(query,sizeof(query),"%s,OwnHouse='%i'",query,SpielerInfo[playerid][pOwnHouse]);
format(query,sizeof(query),"%s,HouseID='%i'",query,SpielerInfo[playerid][pHouseID]);
format(query,sizeof(query),"%s,Spawn='%i'",query,SpielerInfo[playerid][pSpawn]);
format(query,sizeof(query),"%s WHERE BINARY username='%s'",query,getPlayerName(playerid));
mysql_pquery(Handle,query);
if(SpielerInfo[playerid][pEingemietet] == 1)
{
mysql_format(Handle,query,sizeof(query),"UPDATE user SET Eingemietet='%i' WHERE BINARY username='%e'",SpielerInfo[playerid][pEingemietet],getPlayerName(playerid));
mysql_pquery(Handle,query);
}
/*if(SpielerInfo[playerid][pPrisoned] == 1)
{
mysql_format(Handle,query,sizeof(query),"UPDATE prisoneduser SET PrisonedBis='%i' WHERE BINARY username='%s'",
SpielerInfo[playerid][pPrisonedBis],getPlayerName(playerid));
mysql_pquery(Handle,query);
}*/
return 1;
}
Danke im Voraus. -
Du musst mit GetPlayerWantedLevel(playerid) abfragen wie hoch sein WantedLevel ist und je nachdem rechnest du ihm eins drauf.
new level;level = GetPlayerWantedLevel(killerid);if(level == 1){SetPlayerWantedLevel(killerid,2);}return 1;
@m4a_X Das ist eine Funktion von pawn aus wenn ich mich nicht irre.
[wiki]SetPlayerWantedLevel[/wiki]
[wiki]GetPlayerWantedLevel[/wiki] -
Es hat den Anschein dass nun alles funktioniert.
Danke Dir und @Goldkiller für die Hilfe.
Schönen Abend noch -
Scheint kritisch zu sein.
[16:27:44] UPDATE houses SET RentPrice='0', IsLocked='1', Money='0', RentAble='0', Renter='0', Interior='7', Bought='0', Type='3', Owner='-' WHERE id='0'[16:27:44] UPDATE houses SET RentPrice='85', IsLocked='1', Money='0', RentAble='0', Renter='0', Interior='1', Bought='0', Type='1', Owner='-' WHERE id='1'[16:27:44] UPDATE houses SET RentPrice='85', IsLocked='0', Money='0', RentAble='0', Renter='0', Interior='0', Bought='0', Type='0', Owner='' WHERE id='0'[16:27:44] UPDATE houses SET RentPrice='85', IsLocked='0', Money='0', RentAble='0', Renter='0', Interior='0', Bought='0', Type='0', Owner='' WHERE id='0'[16:27:44] UPDATE houses SET RentPrice='85', IsLocked='0', Money='0', RentAble='0', Renter='0', Interior='0', Bought='0', Type='0', Owner='' WHERE id='0'[16:27:44] UPDATE houses SET RentPrice='85', IsLocked='0', Money='0', RentAble='0', Renter='0', Interior='0', Bought='0', Type='0', Owner='' WHERE id='0'[16:27:44] UPDATE houses SET RentPrice='85', IsLocked='0', Money='0', RentAble='0', Renter='0', Interior='0', Bought='0', Type='0', Owner='' WHERE id='0'[16:27:44] UPDATE houses SET RentPrice='85', IsLocked='0', Money='0', RentAble='0', Renter='0', Interior='0', Bought='0', Type='0', Owner='' WHERE id='0'[16:27:44] UPDATE houses SET RentPrice='85', IsLocked='0', Money='0', RentAble='0', Renter='0', Interior='0', Bought='0', Type='0', Owner='' WHERE id='0'[16:27:44] UPDATE houses SET RentPrice='85', IsLocked='0', Money='0', RentAble='0', Renter='0', Interior='0', Bought='0', Type='0', Owner='' WHERE id='0'
//EDIT:
Habe auch bemerkt dass wenn ich ein Haus erstelle dies nicht kaufen kann:
ocmd:hcreate(playerid,params[]){if(!IsPlayerOnline(playerid))return SendClientMessage(playerid,Rot,NotOnlineMSG);if(!IsPlayerAnAdmin(playerid))return SendClientMessage(playerid,Rot,NotAnAdminMSG);if(!IsPlayerAdminRank(playerid,4))return SendClientMessage(playerid,Rot,NotAnAdminRankMSG);new inter,price,type;if(sscanf(params,"iii",inter,type,price))return SendClientMessage(playerid,Rot,"Error"#cWeiß": Use /hcreate [Interior ID] [Type] [BuyPrice]"),SendClientMessage(playerid,Grau,"[Types]: 1: Apartment | 2: House | 3: Villa | 4: Madd Dogg Villa"),SendClientMessage(playerid,Grau,"[Interiors]: To see Valid Interiors Use /validints.");if(type < 1 || type > 4)return SendClientMessage(playerid,Rot,"Error: Something's wrong with the Type");for(new i=0;i<MAX_HOUSES;i++){if(strlen(HouseInfo[i][h_owner]))continue;{new bool:found = false;for(new j=0; j<sizeof(InteriorInfo); j++){printf("%d == %d | %d == %d", InteriorInfo[j][int_ID], inter, InteriorInfo[j][int_type], type);if(InteriorInfo[j][int_ID] == inter && InteriorInfo[j][int_type] == type){found = true;printf("Nutze InteriorInfo %d", j);HouseInfo[i][h_exitX] = InteriorInfo[j][int_exitX];HouseInfo[i][h_exitY] = InteriorInfo[j][int_exitY];HouseInfo[i][h_exitZ] = InteriorInfo[j][int_exitZ];HouseInfo[i][h_exitA] = InteriorInfo[j][int_exitA];break;}}if(!found)return SendClientMessage(playerid,Rot,"Error"#cWeiß": The Interior doesn't match with the Type.");new query[1042];new Float:pos[3];GetPlayerPos(playerid,pos[0],pos[1],pos[2]);HouseInfo[i][h_ID] = i;HouseInfo[i][h_enterX] = pos[0];HouseInfo[i][h_enterY] = pos[1];HouseInfo[i][h_enterZ] = pos[2];HouseInfo[i][h_int] = inter;format(HouseInfo[i][h_owner], 24, "-");HouseInfo[i][h_buyprice] = price;HouseInfo[i][h_rentprice] = 100;HouseInfo[i][h_bought] = 0;HouseInfo[i][h_rentable] = 0;HouseInfo[i][h_renter] = 0;HouseInfo[i][h_locked] = 1;HouseInfo[i][h_money] = 0;HouseInfo[i][h_type] = type;format(query,sizeof(query),"INSERT INTO Houses (id,Owner,EnterPosX,EnterPosY,EnterPosZ,ExitPosX,ExitPosY,ExitPosZ,ExitPosA,Interior,BuyPrice,RentPrice,Bought,RentAble,Renter,IsLocked,Money,Type) VALUES ('%i','%s','%f','%f','%f','%f','%f','%f','%f','%i','%i','%i','%i','%i','%i','%i','%i','%i')",i,HouseInfo[i][h_owner],HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],HouseInfo[i][h_exitX],HouseInfo[i][h_exitY],HouseInfo[i][h_exitZ],HouseInfo[i][h_exitA],HouseInfo[i][h_int],HouseInfo[i][h_buyprice],HouseInfo[i][h_rentprice],HouseInfo[i][h_bought],HouseInfo[i][h_rentable],HouseInfo[i][h_renter],HouseInfo[i][h_locked],HouseInfo[i][h_money],HouseInfo[i][h_type]);mysql_pquery(Handle,query);printf("%i",HouseInfo[i][h_ID]);HouseInfo[i][h_vw] = cache_get_field_content_int(i,"VirtualWorld");if(HouseInfo[i][h_type] == 1){new str[128];format(str,sizeof(str),"This Apartment has NO Owner.Type /buyhouse to buy it.\nPrice: %i$",HouseInfo[i][h_buyprice]);HouseInfo[i][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],10.0,0,0);HouseInfo[i][h_pick] = CreatePickup(1273,0,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],0);printf("PickUP ID: %i",HouseInfo[i][h_pick]);return 1;}else if(HouseInfo[i][h_type] == 2){new str[128];format(str,sizeof(str),"This House has NO Owner.Type /buyhouse to buy it.\nPrice: %i$",HouseInfo[i][h_buyprice]);HouseInfo[i][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],10.0,0,0);HouseInfo[i][h_pick] = CreatePickup(1273,0,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],0);printf("PickUP ID: %i",HouseInfo[i][h_pick]);return 1;}else if(HouseInfo[i][h_type] == 3){new str[128];format(str,sizeof(str),"This Villa has NO Owner.Type /buyhouse to buy it.\nPrice: %i$",HouseInfo[i][h_buyprice]);HouseInfo[i][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],10.0,0,0);HouseInfo[i][h_pick] = CreatePickup(1273,0,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],0);printf("PickUP ID: %i",HouseInfo[i][h_pick]);return 1;}}}return 1;}
ist alles korrekt lag daran dass in der SpielerInfo [pOwnHouse] 1 war. -
Habe jetzt die Speicherfunktion sowie die Ladefunktion in dieses umgeändert:
Jetzt liegt aber das Problem vor, dass bei dem Haus mit der ID 0 alles gelöscht wird außer die Float:Positionen, BuyPrice und RentPrice. O.o
public LoadHouses_Data()
{
new rows;
rows = cache_num_rows();
for(new i=0;i<rows;i++)
{
HouseInfo[i][h_ID] = i;
cache_get_field_content(i,"Owner",HouseInfo[i][h_owner],Handle,24);
HouseInfo[i][h_enterX] = cache_get_field_content_float(i, "EnterPosX");
HouseInfo[i][h_enterY] = cache_get_field_content_float(i, "EnterPosY");
HouseInfo[i][h_enterZ] = cache_get_field_content_float(i, "EnterPosZ");
HouseInfo[i][h_exitX] = cache_get_field_content_float(i, "ExitPosX");
HouseInfo[i][h_exitY] = cache_get_field_content_float(i, "ExitPosY");
HouseInfo[i][h_exitZ] = cache_get_field_content_float(i, "ExitPosZ");
HouseInfo[i][h_exitA] = cache_get_field_content_float(i, "ExitPosA");
HouseInfo[i][h_int] = cache_get_field_content_int(i, "Interior");
HouseInfo[i][h_vw] = cache_get_field_content_int(i, "VirtualWorld");
HouseInfo[i][h_buyprice] = cache_get_field_content_int(i, "BuyPrice");
HouseInfo[i][h_rentprice] = cache_get_field_content_int(i, "RentPrice");
HouseInfo[i][h_bought] = cache_get_field_content_int(i, "Bought");
HouseInfo[i][h_rentable] = cache_get_field_content_int(i, "RentAble");
HouseInfo[i][h_renter] = cache_get_field_content_int(i, "Renter");
HouseInfo[i][h_locked] = cache_get_field_content_int(i, "IsLocked");
HouseInfo[i][h_money] = cache_get_field_content_int(i, "Money");
HouseInfo[i][h_type] = cache_get_field_content_int(i, "Type");
for(new h=0;h<MAX_HOUSES;h++)
{
if(HouseInfo[h][h_type] == 1)
{
if(HouseInfo[h][h_bought] == 0)
{
new str[128];
format(str,sizeof(str),"This Apartment has NO Owner.Type /buyhouse to buy it.\nPrice: %i$",HouseInfo[h][h_buyprice]);
HouseInfo[h][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],10.0,0,0);
HouseInfo[h][h_pick] = CreatePickup(1273,0,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[h][h_pick]);
}
else
{
new str[148];
format(str,sizeof(str),"This Apartment is already bought.\nType /rent to rent a room in this Apartment.\nOwner: %s\nRent Price: %i$",HouseInfo[h][h_owner],HouseInfo[h][h_rentprice]);
HouseInfo[h][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],10.0,0,0);
HouseInfo[h][h_pick] = CreatePickup(1273,0,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[h][h_pick]);
}
}
else if(HouseInfo[h][h_type] == 2)
{
if(HouseInfo[h][h_bought] == 0)
{
new str[128];
format(str,sizeof(str),"This House has NO Owner.Type /buyhouse to buy it.\nPrice: %i$",HouseInfo[h][h_buyprice]);
HouseInfo[h][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],10.0,0,0);
HouseInfo[h][h_pick] = CreatePickup(1273,0,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[h][h_pick]);
}
else
{
new str[148];
format(str,sizeof(str),"This House is already bought.\nType /rent to rent a room in this House.\nOwner: %s\nRent Price: %i$",HouseInfo[h][h_owner],HouseInfo[h][h_rentprice]);
HouseInfo[h][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],10.0,0,0);
HouseInfo[h][h_pick] = CreatePickup(1273,0,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[h][h_pick]);
}
}
else if(HouseInfo[h][h_type] == 3)
{
if(HouseInfo[h][h_bought] == 0)
{
new str[128];
format(str,sizeof(str),"This Villa has NO Owner.Type /buyhouse to buy it.\nPrice: %i$",HouseInfo[h][h_buyprice]);
HouseInfo[h][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],10.0,0,0);
HouseInfo[h][h_pick] = CreatePickup(1273,0,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[h][h_pick]);
}
else
{
new str[148];
format(str,sizeof(str),"This Villa is already bought.\nType /rent to rent a room in this Villa.\nOwner: %s\nRent Price: %i$",HouseInfo[h][h_owner],HouseInfo[h][h_rentprice]);
HouseInfo[h][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],10.0,0,0);
HouseInfo[h][h_pick] = CreatePickup(1273,0,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[h][h_pick]);
}
}
}
}
return 1;
}
stock SaveHouses()
{
new query[256];
for(new h=0;h<MAX_HOUSES;h++)
{
format(query,sizeof(query),"UPDATE houses SET RentPrice='%i',",query,HouseInfo[h][h_rentprice]);
format(query,sizeof(query),"%s IsLocked='%i',",query,HouseInfo[h][h_locked]);
format(query,sizeof(query),"%s Money='%i',",query,HouseInfo[h][h_money]);
format(query,sizeof(query),"%s RentAble='%i',",query,HouseInfo[h][h_rentable]);
format(query,sizeof(query),"%s Renter='%i',",query,HouseInfo[h][h_renter]);
format(query,sizeof(query),"%s Interior='%i',",query,HouseInfo[h][h_int]);
format(query,sizeof(query),"%s Bought='%i',",query,HouseInfo[h][h_bought]);
format(query,sizeof(query),"%s Type='%i',",query,HouseInfo[h][h_type]);
format(query,sizeof(query),"%s Owner='%s'",query,HouseInfo[h][h_owner]);
format(query,sizeof(query),"%s WHERE id='%i'",query,HouseInfo[h][h_ID]);
mysql_pquery(Handle,query);
}
return 1;
} -
Habe jetzt mal nur das Komma entfernt und nun speichert es das Haus mit der ID 1 aber alle Werte von dem Haus mit der ID 0 werden auf 0 gesetzt.
-
Habe gerade herausgefunden dass ich mir einen fehlerhaften Print habe ausgeben lassen und deswegen weiter verzweifle
Es geht darum, wenn ich das Haus 1 bearbeite und den [h_bought] von 0 auf 1 ändere, er diesen für die Serverlaufzeit speichert, nach dem Restart aber wieder auf 0 setzt, da etwas an der Speicherfunktion nicht zu klappen scheint. -
-
Nabend Gemeinde von Breadfish,
ich habe das Problem, dass ich soeben meinen /hedit Befehl fertiggestellt habe und nun herausfinde dass er bei dem Befehl die richtige ID des Hauses herausbekommt aber eine falsche bei dem stock SaveHouses() wiedergibt.
stock SaveHouses()
{
new query[256];
for(new h=0;h<MAX_HOUSES;h++)
{
format(query,sizeof(query),"UPDATE houses SET RentPrice='%i',",query,HouseInfo[h][h_rentprice]);
format(query,sizeof(query),"%s IsLocked='%i',",query,HouseInfo[h][h_locked]);
format(query,sizeof(query),"%s Money='%i',",query,HouseInfo[h][h_money]);
format(query,sizeof(query),"%s RentAble='%i',",query,HouseInfo[h][h_rentable]);
format(query,sizeof(query),"%s Renter='%i',",query,HouseInfo[h][h_renter]);
format(query,sizeof(query),"%s Interior='%i',",query,HouseInfo[h][h_int]);
format(query,sizeof(query),"%s Bought='%i',",query,HouseInfo[h][h_bought]);
format(query,sizeof(query),"%s Type='%i',",query,HouseInfo[h][h_type]);
format(query,sizeof(query),"%s Owner='%s',",query,HouseInfo[h][h_owner]);
format(query,sizeof(query),"%s WHERE id='%i'",query,h);
mysql_pquery(Handle,query);
}
return 1;
}
ocmd:hedit(playerid,params[])
{
if(!IsPlayerOnline(playerid))return SendClientMessage(playerid,Rot,NotOnlineMSG);
if(!IsPlayerAnAdmin(playerid))return SendClientMessage(playerid,Rot,NotAnAdminMSG);
if(!IsPlayerAdminRank(playerid,4))return SendClientMessage(playerid,Rot,NotAnAdminRankMSG);
if(EditedHouse[playerid][eh_ID] != -1)return SendClientMessage(playerid,Rot,"Error"#cWeiß": You are currently editing another House.");
for(new i=0;i<MAX_HOUSES;i++)
{
if(IsPlayerInRangeOfPoint(playerid,2,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ]) || IsPlayerInRangeOfPoint(playerid,2,HouseInfo[i][h_exitX],HouseInfo[i][h_exitY],HouseInfo[i][h_exitZ]))
{
EditedHouse[playerid][eh_ID] = HouseInfo[i][h_ID];
EditedHouse[playerid][eh_int] = HouseInfo[i][h_int];
EditedHouse[playerid][eh_vw] = HouseInfo[i][h_vw];
EditedHouse[playerid][eh_type] = HouseInfo[i][h_type];
format(EditedHouse[playerid][eh_owner],24,HouseInfo[i][h_owner]);
EditedHouse[playerid][eh_buyprice] = HouseInfo[i][h_buyprice];
EditedHouse[playerid][eh_rentprice] = HouseInfo[i][h_rentprice];
EditedHouse[playerid][eh_bought] = HouseInfo[i][h_bought];
EditedHouse[playerid][eh_rentable] = HouseInfo[i][h_rentable];
EditedHouse[playerid][eh_locked] = HouseInfo[i][h_locked];
EditedHouse[playerid][eh_money] = HouseInfo[i][h_money];
EditedHouse[playerid][eh_label] = HouseInfo[i][h_label];
EditedHouse[playerid][eh_enterX] = HouseInfo[i][h_enterX];
EditedHouse[playerid][eh_enterY] = HouseInfo[i][h_enterY];
EditedHouse[playerid][eh_enterZ] = HouseInfo[i][h_enterZ];
EditedHouse[playerid][eh_exitX] = HouseInfo[i][h_exitX];
EditedHouse[playerid][eh_exitY] = HouseInfo[i][h_exitY];
EditedHouse[playerid][eh_exitZ] = HouseInfo[i][h_exitZ];
EditedHouse[playerid][eh_exitA] = HouseInfo[i][h_exitA];
new str[375];
format(str,sizeof(str),""#cWeiß"House ID:\t"#cOrange"%i\n",EditedHouse[playerid][eh_ID]);
format(str,sizeof(str),"%s"#cWeiß"House Interior:\t"#cOrange"%i\n",str,EditedHouse[playerid][eh_int]);
format(str,sizeof(str),"%s"#cWeiß"House Owner:\t"#cOrange"%s\n",str,EditedHouse[playerid][eh_owner]);
format(str,sizeof(str),"%s"#cWeiß"House BuyPrice:\t"#cOrange"%i$\n",str,EditedHouse[playerid][eh_buyprice]);
format(str,sizeof(str),"%s"#cWeiß"House SellPrice:\t"#cOrange"%i$\n",str,EditedHouse[playerid][eh_buyprice]/2);
format(str,sizeof(str),"%s"#cWeiß"House Bought:\t"#cOrange"%i\n",str,EditedHouse[playerid][eh_bought]);
format(str,sizeof(str),"%s"#cWeiß"House Locked:\t"#cOrange"%i\n",str,EditedHouse[playerid][eh_locked]);
format(str,sizeof(str),"%s"#cWeiß"House Money:\t"#cOrange"%i$\n",str,EditedHouse[playerid][eh_money]);
format(str,sizeof(str),"%s"#cWeiß"House Type:\t"#cOrange"%i\n",str,EditedHouse[playerid][eh_type]);
format(str,sizeof(str),"%s"#cWeiß"House VirtualWorld:\t"#cOrange"%i\n",str,EditedHouse[playerid][eh_vw]);
ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE,DIALOG_STYLE_TABLIST,""#cOrange"TRP"#cWeiß" - Edit House",str,"Edit","Close");
return 1;
}
}
return SendClientMessage(playerid,Rot,"Error"#cWeiß": You aren't close to any House.");
}
ocmd:hcreate(playerid,params[])
{
if(!IsPlayerOnline(playerid))return SendClientMessage(playerid,Rot,NotOnlineMSG);
if(!IsPlayerAnAdmin(playerid))return SendClientMessage(playerid,Rot,NotAnAdminMSG);
if(!IsPlayerAdminRank(playerid,4))return SendClientMessage(playerid,Rot,NotAnAdminRankMSG);
new inter,price,type;
if(sscanf(params,"iii",inter,type,price))return SendClientMessage(playerid,Rot,"Error"#cWeiß": Use /hcreate [Interior ID] [Type] [BuyPrice]"),
SendClientMessage(playerid,Grau,"[Types]: 1: Apartment | 2: House | 3: Villa | 4: Madd Dogg Villa"),
SendClientMessage(playerid,Grau,"[Interiors]: To see Valid Interiors Use /validints.");
if(type < 1 || type > 4)return SendClientMessage(playerid,Rot,"Error: Something's wrong with the Type");
for(new i=0;i<MAX_HOUSES;i++)
{
if(strlen(HouseInfo[i][h_owner]))continue;
{
new bool:found = false;
for(new j=0; j<sizeof(InteriorInfo); j++)
{
printf("%d == %d | %d == %d", InteriorInfo[j][int_ID], inter, InteriorInfo[j][int_type], type);
if(InteriorInfo[j][int_ID] == inter && InteriorInfo[j][int_type] == type)
{
found = true;
printf("Nutze InteriorInfo %d", j);
HouseInfo[i][h_exitX] = InteriorInfo[j][int_exitX];
HouseInfo[i][h_exitY] = InteriorInfo[j][int_exitY];
HouseInfo[i][h_exitZ] = InteriorInfo[j][int_exitZ];
HouseInfo[i][h_exitA] = InteriorInfo[j][int_exitA];
break;
}
}
if(!found)return SendClientMessage(playerid,Rot,"Error"#cWeiß": The Interior doesn't match with the Type.");
new query[1042];
new Float:pos[3];
GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
HouseInfo[i][h_ID] = i;
HouseInfo[i][h_enterX] = pos[0];
HouseInfo[i][h_enterY] = pos[1];
HouseInfo[i][h_enterZ] = pos[2];
HouseInfo[i][h_int] = inter;
format(HouseInfo[i][h_owner], 24, "-");
HouseInfo[i][h_buyprice] = price;
HouseInfo[i][h_rentprice] = 100;
HouseInfo[i][h_bought] = 0;
HouseInfo[i][h_rentable] = 0;
HouseInfo[i][h_renter] = 0;
HouseInfo[i][h_locked] = 1;
HouseInfo[i][h_money] = 0;
HouseInfo[i][h_type] = type;
format(query,sizeof(query),"INSERT INTO Houses (id,Owner,EnterPosX,EnterPosY,EnterPosZ,ExitPosX,ExitPosY,ExitPosZ,ExitPosA,Interior,BuyPrice,RentPrice,Bought,RentAble,Renter,IsLocked,Money,Type) VALUES ('%i','%s','%f','%f','%f','%f','%f','%f','%f','%i','%i','%i','%i','%i','%i','%i','%i','%i')",
i,HouseInfo[i][h_owner],HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],HouseInfo[i][h_exitX],HouseInfo[i][h_exitY],HouseInfo[i][h_exitZ],HouseInfo[i][h_exitA],HouseInfo[i][h_int],HouseInfo[i][h_buyprice],HouseInfo[i][h_rentprice],HouseInfo[i][h_bought],HouseInfo[i][h_rentable],HouseInfo[i][h_renter],HouseInfo[i][h_locked],HouseInfo[i][h_money],HouseInfo[i][h_type]);
mysql_pquery(Handle,query);
printf("%i",HouseInfo[i][h_ID]);
HouseInfo[i][h_vw] = cache_get_field_content_int(i,"VirtualWorld");
if(HouseInfo[i][h_type] == 1)
{
new str[128];
format(str,sizeof(str),"This Apartment has NO Owner.Type /buyhouse to buy it.\nPrice: %i$",HouseInfo[i][h_buyprice]);
HouseInfo[i][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],10.0,0,0);
HouseInfo[i][h_pick] = CreatePickup(1273,0,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[i][h_pick]);
return 1;
}
else if(HouseInfo[i][h_type] == 2)
{
new str[128];
format(str,sizeof(str),"This House has NO Owner.Type /buyhouse to buy it.\nPrice: %i$",HouseInfo[i][h_buyprice]);
HouseInfo[i][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],10.0,0,0);
HouseInfo[i][h_pick] = CreatePickup(1273,0,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[i][h_pick]);
return 1;
}
else if(HouseInfo[i][h_type] == 3)
{
new str[128];
format(str,sizeof(str),"This Villa has NO Owner.Type /buyhouse to buy it.\nPrice: %i$",HouseInfo[i][h_buyprice]);
HouseInfo[i][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],10.0,0,0);
HouseInfo[i][h_pick] = CreatePickup(1273,0,HouseInfo[i][h_enterX],HouseInfo[i][h_enterY],HouseInfo[i][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[i][h_pick]);
return 1;
}
}
}
return 1;
}
public LoadHouses_Data()
{
new rows;
rows = cache_num_rows();
for(new i=0;i<rows;i++)
{
HouseInfo[i][h_ID] = cache_get_field_content_int(i, "id");
cache_get_field_content(i,"Owner",HouseInfo[i][h_owner],Handle,24);
HouseInfo[i][h_enterX] = cache_get_field_content_float(i, "EnterPosX");
HouseInfo[i][h_enterY] = cache_get_field_content_float(i, "EnterPosY");
HouseInfo[i][h_enterZ] = cache_get_field_content_float(i, "EnterPosZ");
HouseInfo[i][h_exitX] = cache_get_field_content_float(i, "ExitPosX");
HouseInfo[i][h_exitY] = cache_get_field_content_float(i, "ExitPosY");
HouseInfo[i][h_exitZ] = cache_get_field_content_float(i, "ExitPosZ");
HouseInfo[i][h_exitA] = cache_get_field_content_float(i, "ExitPosA");
HouseInfo[i][h_int] = cache_get_field_content_int(i, "Interior");
HouseInfo[i][h_vw] = cache_get_field_content_int(i, "VirtualWorld");
HouseInfo[i][h_buyprice] = cache_get_field_content_int(i, "BuyPrice");
HouseInfo[i][h_rentprice] = cache_get_field_content_int(i, "RentPrice");
HouseInfo[i][h_bought] = cache_get_field_content_int(i, "Bought");
HouseInfo[i][h_rentable] = cache_get_field_content_int(i, "RentAble");
HouseInfo[i][h_renter] = cache_get_field_content_int(i, "Renter");
HouseInfo[i][h_locked] = cache_get_field_content_int(i, "IsLocked");
HouseInfo[i][h_money] = cache_get_field_content_int(i, "Money");
HouseInfo[i][h_type] = cache_get_field_content_int(i, "Type");
for(new h=0;h<MAX_HOUSES;h++)
{
if(HouseInfo[h][h_type] == 1)
{
if(HouseInfo[h][h_bought] == 0)
{
new str[128];
format(str,sizeof(str),"This Apartment has NO Owner.Type /buyhouse to buy it.\nPrice: %i$",HouseInfo[h][h_buyprice]);
HouseInfo[h][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],10.0,0,0);
HouseInfo[h][h_pick] = CreatePickup(1273,0,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[h][h_pick]);
}
else
{
new str[148];
format(str,sizeof(str),"This Apartment is already bought.\nType /rent to rent a room in this Apartment.\nOwner: %s\nRent Price: %i$",HouseInfo[h][h_owner],HouseInfo[h][h_rentprice]);
HouseInfo[h][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],10.0,0,0);
HouseInfo[h][h_pick] = CreatePickup(1273,0,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[h][h_pick]);
}
}
else if(HouseInfo[h][h_type] == 2)
{
if(HouseInfo[h][h_bought] == 0)
{
new str[128];
format(str,sizeof(str),"This House has NO Owner.Type /buyhouse to buy it.\nPrice: %i$",HouseInfo[h][h_buyprice]);
HouseInfo[h][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],10.0,0,0);
HouseInfo[h][h_pick] = CreatePickup(1273,0,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[h][h_pick]);
}
else
{
new str[148];
format(str,sizeof(str),"This House is already bought.\nType /rent to rent a room in this House.\nOwner: %s\nRent Price: %i$",HouseInfo[h][h_owner],HouseInfo[h][h_rentprice]);
HouseInfo[h][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],10.0,0,0);
HouseInfo[h][h_pick] = CreatePickup(1273,0,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[h][h_pick]);
}
}
else if(HouseInfo[h][h_type] == 3)
{
if(HouseInfo[h][h_bought] == 0)
{
new str[128];
format(str,sizeof(str),"This Villa has NO Owner.Type /buyhouse to buy it.\nPrice: %i$",HouseInfo[h][h_buyprice]);
HouseInfo[h][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],10.0,0,0);
HouseInfo[h][h_pick] = CreatePickup(1273,0,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[h][h_pick]);
}
else
{
new str[148];
format(str,sizeof(str),"This Villa is already bought.\nType /rent to rent a room in this Villa.\nOwner: %s\nRent Price: %i$",HouseInfo[h][h_owner],HouseInfo[h][h_rentprice]);
HouseInfo[h][h_label] = Create3DTextLabel(str,Weiß,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],10.0,0,0);
HouseInfo[h][h_pick] = CreatePickup(1273,0,HouseInfo[h][h_enterX],HouseInfo[h][h_enterY],HouseInfo[h][h_enterZ],0);
printf("PickUP ID: %i",HouseInfo[h][h_pick]);
}
}
}
}
return 1;
}
stock LoadHouses()
{
mysql_pquery(Handle, "SELECT * FROM houses ORDER BY ID ASC","LoadHouses_Data");
return 1;
}
Ich danke im Voraus. -
Ja die ID wie müsste ich dieses _:label hier hinzufügen?:
printf("Label ID: %i",EditedHouse[playerid][eh_label]); -
Weiß zufällig jemand wie man einen 3DTextLabel printed?
Danke im Voraus -
Danke viel mals es hat geklappt.
-
Guten Tag,
ich habe das Problem, dass seit ich folgenden Code eingefügt habe der Compiler abstürzt habe es schon mit Kompatibilitätsmodus Windows Vista probiert, klappt denn noch nicht.
Ich habe den Code schon auf Klammerschließung überprüft und konnte keine nicht geschlossene Klammer finden.
Code:C
Alles anzeigenif(dialogid == DIALOG_EDIT_HOUSE) { if(response) { switch(listitem) { case 0: { format(str,sizeof(str),""#cWeiß"House ID:\t"#cOrange"%i"#cWeiß"\nHouse Interior:\t"#cOrange"%i"#cWeiß"\nHouse Owner:\t"#cOrange"%s"#cWeiß"\nHouse BuyPrice:\t"#cOrange"%i"#cWeiß"$\nHouse SellPrice:\t"#cOrange"%i"#cWeiß"$\nHouse Bought:\t"#cOrange"%i"#cWeiß"\nHouse Locked:\t"#cOrange"%i"#cWeiß"\nHouse Money:\t"#cOrange"%i"#cWeiß"$\nHouse Type:\t"#cOrange"%i"#cWeiß"\nHouse VirtualWorld:\t"#cOrange"%i"#cWeiß"", EditedHouse[playerid][eh_ID],EditedHouse[playerid][eh_int],EditedHouse[playerid][eh_owner],EditedHouse[playerid][eh_buyprice],EditedHouse[playerid][eh_bought],EditedHouse[playerid][eh_locked],EditedHouse[playerid][eh_money],EditedHouse[playerid][eh_type],EditedHouse[playerid][eh_vw]); ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE,DIALOG_STYLE_TABLIST,""#cOrange"TRP"#cWeiß" - Edit House",str,"Edit","Close"); return 1; } case 1: { if(EditedHouse[playerid][eh_type] == 1) { ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_INTERIOR,DIALOG_STYLE_LIST,""#cOrange"TRP"#cWeiß" - Edit House Interior","1\n2","Confirm","Back"); return 1; } if(EditedHouse[playerid][eh_type] == 2) { ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_INTERIOR,DIALOG_STYLE_LIST,""#cOrange"TRP"#cWeiß" - Edit House Interior","8\n3\n6\n5","Confirm","Back"); return 1; } if(EditedHouse[playerid][eh_type] == 3) { ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_INTERIOR,DIALOG_STYLE_LIST,""#cOrange"TRP"#cWeiß" - Edit House Interior","12\n5\n7","Confirm","Back"); return 1; } if(EditedHouse[playerid][eh_type] == 4) { SendClientMessage(playerid,Weiß,"["#cTuerkis"Edit House System"#cWeiß"] You can't change the Interior of this House."); format(str,sizeof(str),""#cWeiß"House ID:\t"#cOrange"%i"#cWeiß"\nHouse Interior:\t"#cOrange"%i"#cWeiß"\nHouse Owner:\t"#cOrange"%s"#cWeiß"\nHouse BuyPrice:\t"#cOrange"%i"#cWeiß"$\nHouse SellPrice:\t"#cOrange"%i"#cWeiß"$\nHouse Bought:\t"#cOrange"%i"#cWeiß"\nHouse Locked:\t"#cOrange"%i"#cWeiß"\nHouse Money:\t"#cOrange"%i"#cWeiß"$\nHouse Type:\t"#cOrange"%i"#cWeiß"\nHouse VirtualWorld:\t"#cOrange"%i"#cWeiß"", EditedHouse[playerid][eh_ID],EditedHouse[playerid][eh_int],EditedHouse[playerid][eh_owner],EditedHouse[playerid][eh_buyprice],EditedHouse[playerid][eh_bought],EditedHouse[playerid][eh_locked],EditedHouse[playerid][eh_money],EditedHouse[playerid][eh_type],EditedHouse[playerid][eh_vw]); ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE,DIALOG_STYLE_TABLIST,""#cOrange"TRP"#cWeiß" - Edit House",str,"Edit","Close"); return 1; } } case 2: { if(EditedHouse[playerid][eh_bought] == 1) { ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_OWNER,DIALOG_STYLE_INPUT,""#cOrange"TRP"#cWeiß" - Edit House","","Confirm","Back"); return 1; } else { SendClientMessage(playerid,Weiß,"["#cTuerkis"Edit House System"#cWeiß"] This House isn't bought so you can't change the Owner."); return 1; } } case 3: { ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_BUYPRICE,DIALOG_STYLE_INPUT,""#cOrange"TRP"#cWeiß" - Edit House","","Confirm","Back"); return 1; } case 4: { SendClientMessage(playerid,Weiß,"["#cTuerkis"Edit House System"#cWeiß"] You can't edit the Sellprice."); return 1; } case 5: { ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_BOUGHT,DIALOG_STYLE_LIST,""#cOrange"TRP"#cWeiß" - Edit House","Bought\nNot Bought","Confirm","Back"); return 1; } case 6: { ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_LOCKED,DIALOG_STYLE_LIST,""#cOrange"TRP"#cWeiß" - Edit House","Lock\nUnlock","Confirm","Back"); return 1; } case 7: { ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_MONEY,DIALOG_STYLE_INPUT,""#cOrange"TRP"#cWeiß" - Edit House","","Confirm","Back"); return 1; } case 8: { ShowPlayerDialog(playerid,DIALOG_EDIT_HOUSE_TYPE,DIALOG_STYLE_LIST,""#cOrange"TRP"#cWeiß" - Edit House","Type 1 - Apartment\nType 2 - Family House\nType 3 - Villa\nType 4 - Madd Dog Villa","Confirm","Back"); SendClientMessage(playerid,Weiß,"["#cTuerkis"Edit House System"#cWeiß"] Remember!!! Don't forget to change the Interior too!"); return 1; } case 9: { SendClientMessage(playerid,Weiß,"["#cTuerkis"Edit House System"#cWeiß"] You can't change the Virtual World."); return 1; } return 1; } } else { return 0; } }
Danke im Voraus.
-
Kann man wohl machen, habe jetzt die andere Variante gewählt. Trotz dessen steht im Block 4 noch eine Reihe mehr als in Block 3 welche nicht ausgegeben wird.
-
Kleiner Denkfehler. Wieso wird mir der Text für ALevel 3 ausgegeben obwohl ich 4 oder höher hab?
C
Alles anzeigencase 4: { SendClientMessage(playerid,Weiß,"["#cTuerkis"System"#cWeiß"] All Admin Commands are listed below."); if(SpielerInfo[playerid][pALevel] == 1) { SendClientMessage(playerid,Weiß,"["#cTuerkis"System"#cWeiß"]/kick,/prison,/amessage,/gotopos,/goto,/bringto,/spawn"); return 1; } else if(SpielerInfo[playerid][pALevel] == 2) { SendClientMessage(playerid,Weiß,"["#cTuerkis"System"#cWeiß"]/kick,/prison,/amessage,/gotopos,/goto,/bringto,/spawn,/toggleooc,/kill,/sethp,/setarmor,/clfp,/cc,/ban,/tban,/freeze"); return 1; } else if(SpielerInfo[playerid][pALevel] == 3) { SendClientMessage(playerid,Weiß,"["#cTuerkis"System"#cWeiß"]/kick,/prison,/amessage,/gotopos,/goto,/bringto,/spawn,/toggleooc,/kill,/sethp,/setarmor,/clfp,/cc,/ban,/tban,/freeze"); SendClientMessage(playerid,Weiß,"["#cTuerkis"System"#cWeiß"]/takemoney,/givemoney,/veh,/weapon,/restart,/repair,/slap,/explode,/setskin,/imessage"); return 1; } else if(SpielerInfo[playerid][pALevel] >= 4) { SendClientMessage(playerid,Weiß,"["#cTuerkis"System"#cWeiß"]/kick,/prison,/amessage,/gotopos,/goto,/bringto,/spawn,/toggleooc,/kill,/sethp,/setarmor,/clfp,/cc,/ban,/tban,/freeze"); SendClientMessage(playerid,Weiß,"["#cTuerkis"System"#cWeiß"]/takemoney,/givemoney,/veh,/weapon,/restart,/repair,/slap,/explode,/setskin,/imessage"); SendClientMessage(playerid,Weiß,"["#cTuerkis"System"#cWeiß"]/actor,/setactorpos,/getactorpos,/makeadmin,/fcreate,/fdelete,/pcreate,/pdelete,/setfrak,/setint,/hcreate,/hdelete,/validints"); return 1; }
-
Es soll wohl auf meinem PC laufen, da ich es ja früher genau so hatte und dies auch gerne weiter so hätte, aber trotzdem danke für die versuchte Hilfe.
-
Guten Nabend,
ich habe im moment das Problem dass ich mein altes Skript bzw. meinen Server nochmal ansehen wollte doch, da ich meine Windows Version von 7 auf 10 erweitert habe scheint xampp/phpmyadmin nicht mehr richtig zu funktionieren. Immer beim versuch die Seite: localhost:81/phpmyadmin zu öffnen kommt diese Meldung:Code
Alles anzeigenObjekt nicht gefunden! Der angeforderte URL konnte auf dem Server nicht gefunden werden. Sofern Sie den URL manuell eingegeben haben, überprüfen Sie bitte die Schreibweise und versuchen Sie es erneut. Sofern Sie dies für eine Fehlfunktion des Servers halten, informieren Sie bitte den Webmaster hierüber. Error 404 localhost Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.14
Ich habe mich bereits ein bisschen schlau gelesen und die xampp Konfig bearbeitet, damit es auf den Port 81 "listened" und nicht auf 80. Aufgrund dessen, dass wenn ich versuche Apache mit den Port 80 zu starten gibt xampp mir die Fehlermeldung dass dieser Port schon in benutzung ist. Habe dann nachgeguckt von was dieser genutzt wird und es hat sich herausgestellt PiD 3(System) nutzt diesen Port, nun weiß ich unglücklicherweise nicht mehr wie ich vorgehen muss.
Danke im voraus. -
Nabend,
Ich hätt kurz die Frage warum der Actor nicht sitzen bleibt sondern steht wenn ich in den selben Interior komme.
ApplyActorAnimation(CityHallActor,"BEACH","ParkSit_M_loop",4.1,0,0,0,0,0);
Danke im Voraus//EDIT::
Habs gefunden musste nach 4.1 die 0 auf 1 setzen.