Ich habe Links von vielen Scripten nur keinen von einem Namenlosen Script.
Beiträge von phN
-
-
Cooles Projekt, Netter Typ nur zum empfehlen.
-
Unser Forum ist derzeitig leider Down, wir bzw Slayer: stehen mit dem Hoster im Kontakt
-
Iphone 4 und Iphone 6
-
Neue Tastatur, Razer Blackwiddow Chroma.
Ne 2. Grafikkarte,6144MB Gainward GeForce GTX 980ti
SLi ich komme

-
Das sollte so nicht Möglich sein, da die meines Wissen's nach nicht baugleich sind.
-
Wir suchen weiterhin einen Mapper und Designer.
-
Kann die Dienste von ihm nur Empfehlen.
Ich selbst habe zwar nicht von ihm, das ist jedoch Menschlich einer der korrektesten. -
Sorry aber die Werbung ist doch wohl als Witz gemeint oder?
Keine Bilder - .forumprofi forum.
Ich kann euch leider nur 0/30pkt geben. -
Send uns mal den Ganzen Public bzw Funktion, da kann man nicht durchblicken sry.
-
SendClientMessage(playerid,0x800000AA,"Brief: Hey %s . Hab mal für dich ein Geschenk.");
Das kannst du nicht einfach so Verwenden.
Das %s ist in dem Fall nur der Platz halter für den Ausgelesenen Namen,
Welchen du in der Formatierten nachricht über gibst:new name[MAX_PLAYER_NAME], string[60+MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"Brief: Hey %s . Hab mal für dich ein Geschenk.",name);
SendClientMessage(playerid,0x800000AA,string); -
Kann geclosed werden.
-
Ohne Code können wir dir nicht helfen.
-
Nice
ZitatGeld durch Geldprozess 76,470€
-
Alles anzeigen
Ok, du lädst da alle wieder neu.
Versuche es so:
ocmd:SetOwner(playerid,params[])
{
new Fraktion,string[123],ftext[60],query[500];
if(sInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid,CMD_COLOR,"***INFO: Das ist ein Adminbefehl, du bist kein Admin.");
if(sscanf(params,"i",Fraktion)) return SendClientMessage(playerid,CMD_COLOR,"Bentuze: /SetOwner[Fraktions ID]");
if(Fraktion == 0 || Fraktion == 1 || Fraktion == 2)
{
for (new GangZoneLoad = 1; GangZoneLoad < GFCount+1; GangZoneLoad++)
{
if(IsPlayerInArea(playerid,GFInfo[GangZoneLoad][xMin],GFInfo[GangZoneLoad][yMin],GFInfo[GangZoneLoad][xMax],GFInfo[GangZoneLoad][yMax]))
{
GFInfo[GangZoneLoad][OwnerID] = Fraktion;
GangZoneHideForAll(GFInfo[GangZoneLoad][gID]);
GangZoneShowForAll(GFInfo[GangZoneLoad][gID], GetZoneColorOfFaction(GFInfo[GangZoneLoad][OwnerID]));
mysql_format(Data,query,sizeof(query),"UPDATE gangfight SET Ownerid='%d' WHERE id='%d'",Fraktion,GangZoneLoad);
printf("%s",query);
mysql_tquery(Data, query, "", "");
format(string,sizeof(string),"Gangfight:\nOwner:%s\nBenutze '/ctf' zum einnehmen!",GetFactionName(GFInfo[id][OwnerID]));
Update3DTextLabelText(GFInfo[id][Owner], 0x008080FF, "New text.");
format(string,sizeof(string),"Fraktions Gebiet gesetzt. Das Gebiet gehört nun der Fraktion %s.",GetFactionName(GFInfo[GangZoneLoad][OwnerID]));
SendClientMessage(playerid,COLOR_GREEN,string);
SetPVarInt(playerid, "NichtInGFZone", 1);
break;
}
else SetPVarInt(playerid, "NichtInGFZone",1337);
}
if(GetPVarInt(playerid, "NichtInGFZone") == 1337) return SendClientMessage(playerid, -1, "Du bist in keiner Gangzone");
}
else SendClientMessage(playerid,-1, "Nur von Fraktion 0-3 ist eine gültige Eingabe!");
return 1;
}
Danke es funktioniert.
Könntest du mir bitte verraten woran jetzt der Fehler lag? -
stock ToLoadGangfight(id)
{
new query[256];
mysql_format(Data, query, 128, "SELECT * FROM gangfight WHERE `id` = '%d'", id);
mysql_function_query(Data, query, true, "OnGFLoad", "d", id);
return 1;
}
Dazu dann:
public OnGFLoad(id)
{
new rows, fields,string[64],tmp[128];
cache_get_data(rows, fields);
GFInfo[id][xMin] = cache_get_row_float(0,0);
GFInfo[id][xMax] = cache_get_row_float(0,2);
GFInfo[id][yMax] = cache_get_row_float(0,3);
GFInfo[id][yMin] = cache_get_row_float(0,1);
GFInfo[id][ctfX] = cache_get_row_float(0,4);
GFInfo[id][ctfY] = cache_get_row_float(0,5);
GFInfo[id][ctfZ] = cache_get_row_float(0,6);
GFInfo[id][OwnerID] = cache_get_row_int(0,7);
GFInfo[id][Time] = cache_get_row_int(0,8);
GFInfo[id][GfCooldown] = cache_get_row_int(0,9);
GFInfo[id][KillsOwner] = cache_get_row_int(0,10);
GFInfo[id][KillsAttacker] = cache_get_row_int(0,11);
GFInfo[id][Attacker] = cache_get_row_int(0,12);
GFInfo[id][gActive] = cache_get_row_int(0,15);
GFInfo[id][gID] = cache_get_row_int(0,13);
cache_get_row(0,14, tmp);format(GFInfo[id][Name], 128, "%s", tmp);
new string2[128];
printf("%d | %s(%d)",id,GetFactionName(GFInfo[id][OwnerID]),GFInfo[id][OwnerID]);
//printf("%d\n - %f - %f - %f - %f - OnGFLoad(%d)\nBesitzer: %s\nFarbe:%s\n%f - %f - %f ",GFInfo[id][gID],GFInfo[id][xMin],GFInfo[id][xMax],GFInfo[id][yMax],GFInfo[id][yMin],id,string,gz,GFInfo[id][ctfX],GFInfo[id][ctfY],GFInfo[id][ctfZ]);
GFInfo[id][gID] = GangZoneCreate(GFInfo[id][xMin],GFInfo[id][yMin],GFInfo[id][xMax],GFInfo[id][yMax]);
GFInfo[id][gPick] = CreatePickup(1314,1,GFInfo[id][ctfX],GFInfo[id][ctfY],GFInfo[id][ctfZ],0);
format(string2,sizeof(string2),"Gangfight:\nOwner:%s\nBenutze '/ctf' zum einnehmen!",GetFactionName(GFInfo[id][OwnerID]));
printf("%s",string2);
GFInfo[id][Owner] = Create3DTextLabel(string2,0x008080FF,GFInfo[id][ctfX],GFInfo[id][ctfY],GFInfo[id][ctfZ],10.0,0);
//GFInfo[id][GZ] = GangZoneCreate(119.084594, -214.033096, 343.084594, -62.033096);
return 1;
}
Das wars das sind jetzt insgesammt alle Funktionen die zum Laden Fungieren. -
public MySQLCreateGF()
{
new rows, fields;
cache_get_data(rows, fields);
GFCount = rows;
printf("Es müssen %d Gangfight Gebiete geladen werden!",GFCount);
for (new GangZoneLoad = 1; GangZoneLoad < GFCount+1; GangZoneLoad++){
ToLoadGangfight(GangZoneLoad);
}
print("SERVER START:: Gangfight Gebiete geladen!");
return 1;
} -
Die Farben werden immernoch so komisch/vermischen sich..
Wir saßen da auch schon zu 2. über einer Stunde dran und ich bin so langsam am verzweifeln.. -
Wie zeigst du dem Spieler die Gangzonen an? Das fehlt in dem Code. Hast du das bei OnPlayerConnect? Poste dazu bitte auch den Code.
Ich habe das bei OnPlayerSpawn:
public OnPlayerSpawn(playerid)
{
for (new GangZoneLoad = 1; GangZoneLoad < GFCount+1; GangZoneLoad++)
{
GangZoneShowForPlayer(playerid,GFInfo[GangZoneLoad][gID],GetZoneColorOfFaction(GFInfo[GangZoneLoad][OwnerID]));
}
return 1;
}Tut mir leid das du mir alles aus der Nase ziehen musst bin bisschen übermüdet.
-
Alles anzeigen
Es wurde so gut wie nix kopiert!!!
nur das gangfight weil ich kein gangfight kann!!!
und hölen forscher (minenarbeiter) hat shani gemacht fuer andere dinge wie unfertigen pizza job etc habe ich bezahlt habe mehr als 300 euro fuers script investiert!!!
Und Trodzdem hast du sachen verwendet welche du nicht erstellt hast, und die Ersteller haben keine Credits bekommen.