Das hier ist ein SA:MP Forum und kein MTA Forum, siehs ein..
Such dir ein MTA Forum
Beiträge von Sharpadox
-
-
Nicht umbedingt Zombies, aber Geister, Monster und evtl. paar Zombies ..
Supernatural
-
Ansicht etwas schlecht, aber was ich sehe sieht mir stark nach
7/10 aus
-
8/10
- Ansich nicht schlecht die Fenster so hoch zu platzieren, jedoch sind die Wände größtenteils kahl und schaut irgendwie komisch aus.
- Sonst noch bisschen mehr Deko schaut noch zu fad aus
Ich hätte es ja anders gemacht, aber wie schon gesagt, ich mappe diese Map nicht weiter..
Ich veröffentliche diese (fast) leere Haus, damit evtl. einige es benutzen und weitermappen können.Wegen der Wand: Find ich auch bisschen, aber hab keine bessere gefunden^^
-
Die sind alles dreidimensional hab es geändert..
Errors waren immernoch da, aber habs behoben -
Wieso werden meine Cars und so nicht abgespeichert? Ich werde nichtmal in die Tabelle ingetragen oO
Speichern
Spoiler anzeigen stock SavePCars(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
mysql_SetString("PrivatCars", "Name", GetName(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetString("PrivatCars", "Autoname1", PrivatCar[playerid][1][CarName], "Name", PlayerInfo[playerid][pName]);
mysql_SetString("PrivatCars", "Autoname2", PrivatCar[playerid][2][CarName], "Name", PlayerInfo[playerid][pName]);
mysql_SetString("PrivatCars", "Autoname3", PrivatCar[playerid][3][CarName], "Name", PlayerInfo[playerid][pName]);
mysql_SetString("PrivatCars", "Autoname4", PrivatCar[playerid][4][CarName], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("PrivatCars", "modelid1", PrivatCar[playerid][1][modelid], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("PrivatCars", "modelid2", PrivatCar[playerid][2][modelid], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("PrivatCars", "modelid3", PrivatCar[playerid][3][modelid], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("PrivatCars", "modelid4", PrivatCar[playerid][4][modelid], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarX1", PrivatCar[playerid][1][pcX], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarX2", PrivatCar[playerid][2][pcX], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarX3", PrivatCar[playerid][3][pcX], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarX4", PrivatCar[playerid][4][pcX], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarY1", PrivatCar[playerid][1][pcY], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarY2", PrivatCar[playerid][2][pcY], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarY3", PrivatCar[playerid][3][pcY], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarY4", PrivatCar[playerid][4][pcY], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarZ1", PrivatCar[playerid][1][pcZ], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarZ2", PrivatCar[playerid][2][pcZ], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarZ3", PrivatCar[playerid][3][pcZ], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarZ4", PrivatCar[playerid][4][pcZ], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarA1", PrivatCar[playerid][1][pcA], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarA2", PrivatCar[playerid][2][pcA], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarA3", PrivatCar[playerid][3][pcA], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("PrivatCars", "CarA4", PrivatCar[playerid][4][pcA], "Name", PlayerInfo[playerid][pName]);
}
}
return 1;
}Laden:
Spoiler anzeigen stock LoadPCars(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
PrivatCar[playerid][][PlayerName] = mysql_GetString("accounts","Name","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][1][CarName] = mysql_GetString("accounts","Autoname1","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][2][CarName] = mysql_GetString("accounts","Autoname2","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][3][CarName] = mysql_GetString("accounts","Autoname3","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][4][CarName] = mysql_GetString("accounts","Autoname4","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][1][modelid] = mysql_GetInt("accounts","modelid1","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][2][modelid] = mysql_GetInt("accounts","modelid2","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][3][modelid] = mysql_GetInt("accounts","modelid3","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][4][modelid] = mysql_GetInt("accounts","modelid4","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][1][pcX] = mysql_GetFloat("accounts","CarX1","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][2][pcX] = mysql_GetFloat("accounts","CarX2","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][3][pcX] = mysql_GetFloat("accounts","CarX3","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][4][pcX] = mysql_GetFloat("accounts","CarX4","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][1][pcY] = mysql_GetFloat("accounts","CarY1","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][2][pcY] = mysql_GetFloat("accounts","CarY2","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][3][pcY] = mysql_GetFloat("accounts","CarY3","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][4][pcY] = mysql_GetFloat("accounts","CarY4","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][1][pcZ] = mysql_GetFloat("accounts","CarZ1","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][2][pcZ] = mysql_GetFloat("accounts","CarZ2","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][3][pcZ] = mysql_GetFloat("accounts","CarZ3","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][4][pcZ] = mysql_GetFloat("accounts","CarZ4","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][1][pcA] = mysql_GetFloat("accounts","CarA1","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][2][pcA] = mysql_GetFloat("accounts","CarA2","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][3][pcA] = mysql_GetFloat("accounts","CarA3","Name", PlayerInfo[playerid][pName]);
PrivatCar[playerid][4][pcA] = mysql_GetFloat("accounts","CarA4","Name", PlayerInfo[playerid][pName]);
}
}Autokauf:
Spoiler anzeigen case DIALOG_AUTOKAUF:
{
if(response)
{
for(new i=0; i<sizeof(SellCar); i++)
{
if(GetPlayerVehicleID(playerid)==SellCar[i][vehid])
{
if(PrivatCar[playerid][CarKey[playerid]][HaveKey] > 0)
{
Fehler(playerid,"Für diesen Schlüssel besitzt du bereits ein Fahrzeug. Benutze /carkey");
return 1;
}
/*
CarName[64],
PlayerName[64],
modelid,
Float:pcX[4],
Float:pcY[4],
Float:pcZ[4],
Float:pcA[4]*/
new preis = SellCar[i][Preis];
GivePlayerMoney(playerid,-preis);
CreateVehicle(SellCar[i][modelid],553.5764,-1263.9396,16.9468,307.2815,1,1,60000);
PrivatCar[playerid][CarKey[playerid]][CarName] = SellCar[i][CarName];
PrivatCar[playerid][CarKey[playerid]][PlayerName] = GetName(playerid);
PrivatCar[playerid][CarKey[playerid]][modelid] = SellCar[playerid][modelid];
PrivatCar[playerid][CarKey[playerid]][pcX] = 553.5764;
PrivatCar[playerid][CarKey[playerid]][pcY] = -1263.9396;
PrivatCar[playerid][CarKey[playerid]][pcZ] = 16.9468;
PrivatCar[playerid][CarKey[playerid]][pcA] = 307.2815;
PrivatCar[playerid][CarKey[playerid]][HaveKey] = 1;
SavePCars(playerid);
RemovePlayerFromVehicle(playerid);
formatEx(playerid,Gelb,"Du hast dir erfolgreich für %i$ einen %s gekauft",preis,SellCar[i][CarName]);
return 1;
}
}
}
else
{
SendClientMessage(playerid,Grau,"Du hast den Kauf abgebrochen!");
RemovePlayerFromVehicle(playerid);
return 1;
}
return 1;
} -
Also es sieht so aus::
Spoiler anzeigen PrivatCar[playerid][CarKey[playerid]][pcX[CarKey[playerid]]] = 553.5764; //Betroffene Zeile
PrivatCar[playerid][CarKey[playerid]][pcY[CarKey[playerid]]] = -1263.9396;
PrivatCar[playerid][CarKey[playerid]][pcZ[CarKey[playerid]]] = 16.9468;
PrivatCar[playerid][CarKey[playerid]][pcA[CarKey[playerid]]] = 307.2815;Errors:
Spoiler anzeigen C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 028: invalid subscript (not an array or too many subscripts): "pcX"
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : warning 215: expression has no effect
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 001: expected token: ";", but found "]"
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 029: invalid expression, assumed zero
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : fatal error 107: too many error messages on one lineSpoiler anzeigen Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhaseSpoiler anzeigen 4 Errors.
-
Falsch .. MAX_PLAYER_NAME
Aber trotzdem danke
Immernoch 4 Erros
Spoiler anzeigen C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 028: invalid subscript (not an array or too many subscripts): "pcX"
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : warning 215: expression has no effect
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 001: expected token: ";", but found "]"
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 029: invalid expression, assumed zero
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : fatal error 107: too many error messages on one lineSpoiler anzeigen Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhaseSpoiler anzeigen 4 Errors.
-
Also mein Code sieht jetzt so aus:
Spoiler anzeigen PrivatCar[playerid][CarKey[playerid]][CarName] = SellCar[i][CarName];
PrivatCar[playerid][CarKey[playerid]][PlayerName] = GetName(playerid);
PrivatCar[playerid][CarKey[playerid]][modelid] = SellCar[playerid][modelid];
PrivatCar[playerid][CarKey[playerid]][pcX[CarKey[playerid]] = 553.5764;
PrivatCar[playerid][CarKey[playerid]][pcY[CarKey[playerid]] = -1263.9396;
PrivatCar[playerid][CarKey[playerid]][pcZ[CarKey[playerid]] = 16.9468;
PrivatCar[playerid][CarKey[playerid]][pcA[CarKey[playerid]] = 307.2815;Errors nurnoch 5:
Spoiler anzeigen C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : error 047: array sizes do not match, or destination array is too small
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 028: invalid subscript (not an array or too many subscripts): "pcX"
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : warning 215: expression has no effect
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 001: expected token: ";", but found "]"
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 029: invalid expression, assumed zero
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : fatal error 107: too many error messages on one lineSpoiler anzeigen Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhaseSpoiler anzeigen 5 Errors.
Mein Enum oO:
Spoiler anzeigen #define MAX_KEYS 5
enum PrivatCars
{
CarName[64],
PlayerName[64],
modelid,
Float:pcX,
Float:pcY,
Float:pcZ,
Float:pcA
}
new PrivatCar[MAX_PLAYERS][MAX_KEYS][PrivatCars];
-
Jetzt habe ich Warnings weg, aber Errors sind immernoch da -.-
Spoiler anzeigen C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3435) : error 091: ambiguous constant; tag override is required (symbol "CarName")
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3435) : error 047: array sizes do not match, or destination array is too small
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : warning 213: tag mismatch
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : error 032: array index out of bounds (variable "PrivatCar")
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : error 047: array sizes do not match, or destination array is too small
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3437) : error 091: ambiguous constant; tag override is required (symbol "modelid")
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3437) : error 047: array sizes do not match, or destination array is too small
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 028: invalid subscript (not an array or too many subscripts): "pcX"
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : warning 215: expression has no effect
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 001: expected token: ";", but found "]"
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 029: invalid expression, assumed zero
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : fatal error 107: too many error messages on one lineSpoiler anzeigen Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhaseSpoiler anzeigen 10 Errors. -
-
new PrivatCar[MAX_PLAYERS][SpielerDaten];
Du hast "SpielerDaten" es soll aber "PrivatAutoDaten"
new PrivatCar[MAX_PLAYERS][PrivatAutoDaten];
-
Zeig mal deinen Enum ;D
-
Heyho ihr Brotfische,
Ich habe da ein Problem; Ich versuche PrivatCars abzuspeichern nach dem Autokauf aber bekomme
10 Errors, was soll ich tun?Code:
Spoiler anzeigen PrivatCar[playerid][CarName] = SellCar[i][CarName];
PrivatCar[playerid][PlayerName] = GetName(playerid);
PrivatCar[playerid][modelid] = SellCar[playerid][modelid];
PrivatCar[playerid][CarKey[playerid]][Float:pcX[CarKey[playerid]] = 553.5764;
PrivatCar[playerid][CarKey[playerid]][Float:pcY[CarKey[playerid]] = -1263.9396;
PrivatCar[playerid][CarKey[playerid]][Float:pcZ[CarKey[playerid]] = 16.9468;
PrivatCar[playerid][CarKey[playerid]][Float:pcA[CarKey[playerid]] = 307.2815;Errors:
Spoiler anzeigen C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3435) : error 091: ambiguous constant; tag override is required (symbol "CarName")
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3435) : error 047: array sizes do not match, or destination array is too small
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : warning 213: tag mismatch
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : error 032: array index out of bounds (variable "PrivatCar")
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3436) : error 047: array sizes do not match, or destination array is too small
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3437) : error 091: ambiguous constant; tag override is required (symbol "modelid")
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3437) : error 047: array sizes do not match, or destination array is too small
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 028: invalid subscript (not an array or too many subscripts): "pcX"
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : warning 215: expression has no effect
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 001: expected token: ";", but found "]"
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : error 029: invalid expression, assumed zero
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3438) : fatal error 107: too many error messages on one lineSpoiler anzeigen Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhaseSpoiler anzeigen 10 Errors.
-
Ja kann man :>
-
Achsoo du hast an meinem Enum ein vehid hinzugefügt, dann stimmt es ja
Aber wieso wird mein Car beim Kauft nicht gespawnt?
Spoiler anzeigen buycar = SellCar[i][modelid];
CreateVehicle(buycar,553.5764,-1263.9396,16.9468,307.2815,1,1,60000); -
Zitat
//Beim Erstellen
for(new i=0; i<sizeof(SellCar); i++)
{
SellCar[i][vehid]=AddStaticVehicle(SellCar[i][modelid],SellCar[i][carX],SellCar[i][carY],SellCar[i][carZ],SellCar[i][carA],1,1);
}soll bei vehid nicht modelid hin ??
-
Ich empfehle:
Versuche mal eine Army Base in Los Santos zu machen..
Alle machen immer nur SF und LV.. LS wäre mal was neues -
Ich finde die Map schlich und gewöhnlich..
Ich gebe dir 5/10 Punkten
-
for(new i=0; i<sizeof(SellCar); i++)
{
AddStaticVehicle(SellCar[i][modelid],SellCar[i][carX],SellCar[i][carY],SellCar[i][carZ],SellCar[i][carA],1,1);
}