Beiträge von Sharpadox

    Ich weis. Das ist die Zahl die in der DB eingetragen ist. Wie will es der Herr gerne??


    Gruss: Sonic


    Wie jetzt "Wie will es der Herr gerne" :D ??


    Ich will das Kills durch Tode geteilt werden und dann richtig ausgelesen werden 8|


    zB..


    [table='3']
    [*]Kills
    [*]Tode
    [*]K/D
    [*]13
    [*]6
    [*]2.17*
    [/table]


    * Gerundet von [2.166666666]

    Hey,


    ich habe ein DM-Server und lasse per Textdraw die Stats auslesen.
    Aber meine K/D wird gerunded. Wieso?
    Ich habe "Morde: 13" und "Tode: 5" aber meine K/D ist dann "K/D: 2.00"


    Codeschnipsel:

    Spoiler anzeigen
    //K/D
    new kdstr[128];
    new Float:kd = kills/tode;
    format(kdstr,sizeof(kdstr),"K/D-Rate: %.2f",kd);
    TextDrawSetString(StatKD[i],kdstr);

    Hey,


    ich habe mir für einen DM-Server ein TextDraw für die Stats erstellt.
    Aber er wird nicht angezeigt. Bei dem ersten Spieler der connected ist,
    da wurde es angezeigt, aber jetzt wird bei mir nichtsmehr angezeicht
    bis auf das "Stats" was über den Stats steht..


    Code:

    Spoiler anzeigen
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    StatGeld[i] = TextDrawCreate(506.000000, 180.000000, "");
    TextDrawBackgroundColor(StatGeld[i], 255);
    TextDrawFont(StatGeld[i], 2);
    TextDrawLetterSize(StatGeld[i], 0.270000, 1.000000);
    TextDrawColor(StatGeld[i], -10066177);
    TextDrawSetOutline(StatGeld[i], 0);
    TextDrawSetProportional(StatGeld[i], 1);
    TextDrawSetShadow(StatGeld[i], 1);
    TextDrawUseBox(StatGeld[i], 1);
    TextDrawBoxColor(StatGeld[i], 255);
    TextDrawTextSize(StatGeld[i], 607.000000, 0.000000);

    StatKills[i] = TextDrawCreate(506.000000, 190.000000, "");
    TextDrawBackgroundColor(StatKills[i], 255);
    TextDrawFont(StatKills[i], 2);
    TextDrawLetterSize(StatKills[i], 0.260000, 1.000000);
    TextDrawColor(StatKills[i], -10066177);
    TextDrawSetOutline(StatKills[i], 0);
    TextDrawSetProportional(StatKills[i], 1);
    TextDrawSetShadow(StatKills[i], 1);
    TextDrawUseBox(StatKills[i], 1);
    TextDrawBoxColor(StatKills[i], 255);
    TextDrawTextSize(StatKills[i], 607.000000, 0.000000);

    Spoiler anzeigen
    StatTode[i] = TextDrawCreate(506.000000, 200.000000, "");
    TextDrawBackgroundColor(StatTode[i], 255);
    TextDrawFont(StatTode[i], 2);
    TextDrawLetterSize(StatTode[i], 0.270000, 1.000000);
    TextDrawColor(StatTode[i], -10066177);
    TextDrawSetOutline(StatTode[i], 0);
    TextDrawSetProportional(StatTode[i], 1);
    TextDrawSetShadow(StatTode[i], 1);
    TextDrawUseBox(StatTode[i], 1);
    TextDrawBoxColor(StatTode[i], 255);
    TextDrawTextSize(StatTode[i], 607.000000, 0.000000);

    StatName[i] = TextDrawCreate(508.000000, 168.000000, "");
    TextDrawBackgroundColor(StatName[i], 255);
    TextDrawFont(StatName[i], 2);
    TextDrawLetterSize(StatName[i], 0.200000, 1.000000);
    TextDrawColor(StatName[i], -993737473);
    TextDrawSetOutline(StatName[i], 0);
    TextDrawSetProportional(StatName[i], 1);
    TextDrawSetShadow(StatName[i], 1);

    StatStats[i] = TextDrawCreate(502.000000, 158.000000, "[ ] Stats");
    TextDrawBackgroundColor(StatStats[i], 255);
    TextDrawFont(StatStats[i], 0);
    TextDrawLetterSize(StatStats[i], 0.500000, 1.000000);
    TextDrawColor(StatStats[i], -1);
    TextDrawSetOutline(StatStats[i], 0);
    TextDrawSetProportional(StatStats[i], 1);
    TextDrawSetShadow(StatStats[i], 1);

    StatKD[i] = TextDrawCreate(530.000000, 222.000000, "");
    TextDrawBackgroundColor(StatKD[i], 255);
    TextDrawFont(StatKD[i], 2);
    TextDrawLetterSize(StatKD[i], 0.160000, 0.799999);
    TextDrawColor(StatKD[i], -993737473);
    TextDrawSetOutline(StatKD[i], 0);
    TextDrawSetProportional(StatKD[i], 1);
    TextDrawSetShadow(StatKD[i], 1);

    StatScore[i] = TextDrawCreate(506.000000, 210.000000, "");
    TextDrawBackgroundColor(StatScore[i], 255);
    TextDrawFont(StatScore[i], 2);
    TextDrawLetterSize(StatScore[i], 0.230000, 1.100000);
    TextDrawColor(StatScore[i], -10066177);
    TextDrawSetOutline(StatScore[i], 0);
    TextDrawSetProportional(StatScore[i], 1);
    TextDrawSetShadow(StatScore[i], 1);
    TextDrawUseBox(StatScore[i], 1);
    TextDrawBoxColor(StatScore[i], 255);
    TextDrawTextSize(StatScore[i], 607.000000, 0.000000);
    }

    Spoiler anzeigen
    //OnPlayerSpawn
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    TextDrawShowForPlayer(i, StatStats[i]);
    TextDrawShowForPlayer(i, StatName[i]);
    TextDrawShowForPlayer(i, StatGeld[i]);
    TextDrawShowForPlayer(i, StatKills[i]);
    TextDrawShowForPlayer(i, StatTode[i]);
    TextDrawShowForPlayer(i, StatKD[i]);
    TextDrawShowForPlayer(i, StatScore[i]);
    }

    Hey,


    ich bin gerade dabei ein GangFight System zu erstellen.
    Aber wie kann ich abfrage, welcher Fraktion die Zone gehört in der man
    sich befindet?
    Hier sind meine Codes:


    Spoiler anzeigen
    #define MAX_ZONES 7
    enum GangZones
    {
    Zone,
    Besitzer
    }
    new GZInfo[MAX_ZONES][GangZones];

    Spoiler anzeigen
    //OnGameModeInit
    GZInfo[1][Zone] = GSArea = GangZoneCreate(2203.125, -1980.46875, 2531.25, -1734.375);
    GZInfo[2][Zone] = BallasArea = GangZoneCreate(1951.171875, -1939.453125, 2097.65625, -1751.953125);
    GZInfo[3][Zone] = YakuzaArea = GangZoneCreate(2291.015625, 2226.5625, 2419.921875, 2414.0625);
    GZInfo[4][Zone] = RifaArea = GangZoneCreate(-2197.265625, -287.109375, -2009.765625, -70.3125);
    GZInfo[5][Zone] = VagosArea = GangZoneCreate(2724.609375, -1494.140625, 2906.25, -1259.765625);
    GZInfo[6][Zone] = LCNArea = GangZoneCreate(-1869.140625, 1189.453125, -1611.328125, 1300.78125);

    Spoiler anzeigen
    //Hier werden die besitzer gesetzt
    GZInfo[1][Besitzer] = 8; //Grove Street
    GZInfo[2][Besitzer] = 9; //Ballas
    GZInfo[3][Besitzer] = 10; //Yakuza
    GZInfo[4][Besitzer] = 11; //S.F. Rifa
    GZInfo[5][Besitzer] = 12; //Vagos
    GZInfo[6][Besitzer] = 13; //LCN

    Spoiler anzeigen
    //Das wird zB benötigt für die Farbe der GangZone
    stock FrakFarbe(fraktionid)
    {
    new farbcode;
    switch(fraktionid)
    {
    case 8:{farbcode=0x00D90064;} // GROVE STREET
    case 9:{farbcode=0xA40AFF64;} // BALLAS
    case 10:{farbcode=0xFFFFFF64;} // YAKUZA
    case 11:{farbcode=0x00FFFF64;} // S.F. RIFA
    case 12:{farbcode=0xFFFF0064;} // VAGOS
    case 13:{farbcode=0x0000FF64;} // LCN
    }
    return farbcode;
    }


    - Ich weiß nicht ob ich Fehler oder sonstiges drinnen habe.
    Kann mir bitte jemand sagen, was falsch ist?
    - Und wir kann ich nun abfragen, welcher Fraktion die Zone
    gehört?

    Hey,


    wieso kann ich den /news Befehl nur in einem einzigen Car benutzen statt in alles NewsCar's?


    Code:

    Spoiler anzeigen
    ocmd:news(playerid,params[])
    {
    if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    for(new i=0; i<sizeof(NewsCar); i++)
    {
    if(GetPlayerVehicleID(playerid) == NewsCar[i])
    {
    new text[128],nr[128];
    if(sscanf(params,"s",text)) return SendClientMessage(playerid,Grau,"[Benutze]: /news [Text]");
    format(nr,sizeof(nr),"NR %s: %s",GetName(playerid),text);
    SendClientMessageToAll(Orange,nr);
    return 1;
    }
    Fehler(playerid,"Du bist in keinem News Fahrzeug!");
    return 1;
    }
    }
    Fehler(playerid,"Du bist in keinem News Fahrzeug!");
    return 1;
    }
    Fehler(playerid,"Du bist kein News Reporter!");
    return 1;
    }


    Vehicles:

    Spoiler anzeigen
    //NEWS REPORTER
    NewsCar[0]=AddStaticVehicle(582,-314.7514,1515.3643,75.4135,0.0,0,0); // newsVan
    NewsCar[1]=AddStaticVehicle(582,-317.8429,1515.3643,75.4135,0.0,0,0); // newsVan
    NewsCar[2]=AddStaticVehicle(582,-320.9344,1515.3643,75.4135,0.0,0,0); // newsVan
    NewsCar[3]=AddStaticVehicle(582,-324.0259,1515.3643,75.4135,0.0,0,0); // newsVan
    NewsCar[4]=AddStaticVehicle(582,-327.1174,1515.3643,75.4135,0.0,0,0); // newsVan
    NewsCar[5]=AddStaticVehicle(582,-330.2089,1515.3643,75.4135,0.0,0,0); // newsVan
    NewsCar[6]=AddStaticVehicle(582,-333.3004,1515.3643,75.4135,0.0,0,0); // newsVan
    NewsCar[7]=AddStaticVehicle(582,-336.3919,1515.3643,75.4135,0.0,0,0); // newsVan
    NewsCar[8]=AddStaticVehicle(582,-339.4834,1515.3643,75.4135,0.0,0,0); // newsVan
    NewsCar[9]=AddStaticVehicle(582,-342.5749,1515.3643,75.4135,0.0,0,0); // newsVan
    NewsCar[10]=AddStaticVehicle(582,-345.6664,1515.3643,75.4135,0.0,0,0); // newsVan
    NewsCar[11]=AddStaticVehicle(488,-309.9134,1569.4065,75.5367,275.5628,0,0); // Heli
    NewsCar[12]=AddStaticVehicle(488,-302.1933,1561.5715,75.5366,277.8422,0,0); // Heli
    NewsCar[13]=AddStaticVehicle(488,-294.7991,1552.8628,75.5390,272.5410,0,0); // Heli

    Mach es so:


    stock Login(playerid,key[])
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    if(!strcmp(key,dini_Get(Spielerdatei,"Passwort"),false))
    {
    SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
    SendClientMessage(playerid,DunkelBlau,"Erfolgreich Eingeloggt");
    }
    else
    {
    SendClientMessage(playerid,Rot,"Falsches Passwort.");
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Dein Account wurde gefunden.","Login","Abbrechen");
    return 1;
    }
    return 1;
    }

    Wtf, tatsächlich wird es plötzlich gespeichert -.- ..
    Eben hat der es aber nicht :x, seitdem ich debug reingemacht habe gehts ? oO
    Fallst du mir nicht glauben solltest, kannst du Fabi.StaR fragen, denn wir haben
    zusammen getestet.

    Code
    [10:36:56]  [10:36:56] ---------------------------[10:36:56] MySQL Debugging activated (10/21/12)[10:36:56] ---------------------------[10:36:56]  [10:37:53] >> mysql_reconnect( Connection handle: 1 )[10:37:53] CMySQLHandler::Disconnect() - Connection was closed.[10:37:53] CMySQLHandler::Connect() - Connection was successful.[10:37:53] CMySQLHandler::Connect() - Auto-Reconnect has been enabled.[10:37:53] >> mysql_real_escape_string( Connection handle: 1 )[10:37:53] CMySQLHandler::EscapeString(Narushi); - Escaped 7 characters to Narushi.[10:37:53] >> mysql_query( Connection handle: 1 )[10:37:53] CMySQLHandler::Query(SELECT * FROM `accountsdm` WHERE `Name` = 'Narushi') - Successfully executed.[10:37:53] >> mysql_store_result( Connection handle: 1 )[10:37:53] CMySQLHandler::StoreResult() - Result was stored.[10:37:53] >> mysql_num_rows( Connection handle: 1 )[10:37:53] CMySQLHandler::NumRows() - Returned 1 row(s)[10:37:53] >> mysql_free_result( Connection handle: 1 )[10:37:53] CMySQLHandler::FreeResult() - Result was successfully free'd.[10:37:53] >> mysql_real_escape_string( Connection handle: 1 )[10:37:53] CMySQLHandler::EscapeString(Narushi); - Escaped 7 characters to Narushi.[10:37:53] >> mysql_query( Connection handle: 1 )[10:37:53] CMySQLHandler::Query(SELECT * FROM `accountsdm` WHERE `Name` = 'Narushi') - Successfully executed.[10:37:53] >> mysql_store_result( Connection handle: 1 )[10:37:53] CMySQLHandler::StoreResult() - Result was stored.[10:37:53] >> mysql_num_rows( Connection handle: 1 )[10:37:53] CMySQLHandler::NumRows() - Returned 1 row(s)[10:37:53] >> mysql_free_result( Connection handle: 1 )[10:37:53] CMySQLHandler::FreeResult() - Result was successfully free'd.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Narushi); - Escaped 7 characters to Narushi.[10:37:55] >> mysql_query( Connection handle: 1 )[10:37:55] CMySQLHandler::Query(SELECT `passwort` FROM `accountsdm` WHERE `Name` = 'Narushi') - Successfully executed.[10:37:55] >> mysql_store_result( Connection handle: 1 )[10:37:55] CMySQLHandler::StoreResult() - Result was stored.[10:37:55] >> mysql_fetch_row_format( Connection handle: 1 )[10:37:55] CMySQLHandler::FetchRow() - Return: 202CB962AC59075B964B07152D234B70[10:37:55] >> mysql_free_result( Connection handle: 1 )[10:37:55] CMySQLHandler::FreeResult() - Result was successfully free'd.[10:37:55] >> mysql_reconnect( Connection handle: 1 )[10:37:55] CMySQLHandler::Disconnect() - Connection was closed.[10:37:55] CMySQLHandler::Connect() - Connection was successful.[10:37:55] CMySQLHandler::Connect() - Auto-Reconnect has been enabled.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(accountsdm); - Escaped 10 characters to accountsdm.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Geld); - Escaped 4 characters to Geld.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Narushi); - Escaped 7 characters to Narushi.[10:37:55] >> mysql_query( Connection handle: 1 )[10:37:55] CMySQLHandler::Query(SELECT `Geld` FROM `accountsdm` WHERE `Name` = 'Narushi') - Successfully executed.[10:37:55] >> mysql_store_result( Connection handle: 1 )[10:37:55] CMySQLHandler::StoreResult() - Result was stored.[10:37:55] >> mysql_fetch_int( Connection handle: 1 )[10:37:55] CMySQLHandler::FetchRow() - Return: 2800[10:37:55] >> mysql_free_result( Connection handle: 1 )[10:37:55] CMySQLHandler::FreeResult() - Result was successfully free'd.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(accountsdm); - Escaped 10 characters to accountsdm.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Level); - Escaped 5 characters to Level.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Narushi); - Escaped 7 characters to Narushi.[10:37:55] >> mysql_query( Connection handle: 1 )[10:37:55] CMySQLHandler::Query(SELECT `Level` FROM `accountsdm` WHERE `Name` = 'Narushi') - Successfully executed.[10:37:55] >> mysql_store_result( Connection handle: 1 )[10:37:55] CMySQLHandler::StoreResult() - Result was stored.[10:37:55] >> mysql_fetch_int( Connection handle: 1 )[10:37:55] CMySQLHandler::FetchRow() - Return: 8[10:37:55] >> mysql_free_result( Connection handle: 1 )[10:37:55] CMySQLHandler::FreeResult() - Result was successfully free'd.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(accountsdm); - Escaped 10 characters to accountsdm.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Morde); - Escaped 5 characters to Morde.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Narushi); - Escaped 7 characters to Narushi.[10:37:55] >> mysql_query( Connection handle: 1 )[10:37:55] CMySQLHandler::Query(SELECT `Morde` FROM `accountsdm` WHERE `Name` = 'Narushi') - Successfully executed.[10:37:55] >> mysql_store_result( Connection handle: 1 )[10:37:55] CMySQLHandler::StoreResult() - Result was stored.[10:37:55] >> mysql_fetch_int( Connection handle: 1 )[10:37:55] CMySQLHandler::FetchRow() - Return: 8[10:37:55] >> mysql_free_result( Connection handle: 1 )[10:37:55] CMySQLHandler::FreeResult() - Result was successfully free'd.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(accountsdm); - Escaped 10 characters to accountsdm.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Tode); - Escaped 4 characters to Tode.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name.[10:37:55] >> mysql_real_escape_string( Connection handle: 1 )[10:37:55] CMySQLHandler::EscapeString(Narushi); - Escaped 7 characters to Narushi.[10:37:55] >> mysql_query( Connection handle: 1 )[10:37:55] CMySQLHandler::Query(SELECT `Tode` FROM `accountsdm` WHERE `Name` = 'Narushi') - Successfully executed.[10:37:55] >> mysql_store_result( Connection handle: 1 )[10:37:55] CMySQLHandler::StoreResult() - Result was stored.[10:37:55] >> mysql_fetch_int( Connection handle: 1 )[10:37:55] CMySQLHandler::FetchRow() - Return: 2[10:37:55] >> mysql_free_result( Connection handle: 1 )[10:37:55] CMySQLHandler::FreeResult() - Result was successfully free'd.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(accountsdm); - Escaped 10 characters to accountsdm.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(Geld); - Escaped 4 characters to Geld.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(Narushi); - Escaped 7 characters to Narushi.[10:38:00] >> mysql_query( Connection handle: 1 )[10:38:00] CMySQLHandler::Query(UPDATE `accountsdm` SET `Geld` = '2800' WHERE `Name` = 'Narushi') - Successfully executed.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(accountsdm); - Escaped 10 characters to accountsdm.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(Level); - Escaped 5 characters to Level.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(Narushi); - Escaped 7 characters to Narushi.[10:38:00] >> mysql_query( Connection handle: 1 )[10:38:00] CMySQLHandler::Query(UPDATE `accountsdm` SET `Level` = '8' WHERE `Name` = 'Narushi') - Successfully executed.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(accountsdm); - Escaped 10 characters to accountsdm.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(Morde); - Escaped 5 characters to Morde.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(Narushi); - Escaped 7 characters to Narushi.[10:38:00] >> mysql_query( Connection handle: 1 )[10:38:00] CMySQLHandler::Query(UPDATE `accountsdm` SET `Morde` = '8' WHERE `Name` = 'Narushi') - Successfully executed.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(accountsdm); - Escaped 10 characters to accountsdm.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(Tode); - Escaped 4 characters to Tode.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name.[10:38:00] >> mysql_real_escape_string( Connection handle: 1 )[10:38:00] CMySQLHandler::EscapeString(Narushi); - Escaped 7 characters to Narushi.[10:38:00] >> mysql_query( Connection handle: 1 )[10:38:00] CMySQLHandler::Query(UPDATE `accountsdm` SET `Tode` = '2' WHERE `Name` = 'Narushi') - Successfully executed.

    Wieso speichert es nicht ab..


    Spoiler anzeigen
    stock LoadPlayer(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
    GivePlayerMoney(playerid,mysql_GetInt("accountsdm", "Geld", "Name", PlayerInfo[playerid][pName]));
    SetPlayerScore(playerid, mysql_GetInt("accountsdm", "Level", "Name", PlayerInfo[playerid][pName]));
    PlayerInfo[playerid][pKills] = mysql_GetInt("accountsdm","Morde","Name",PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pDeaths] = mysql_GetInt("accountsdm","Tode","Name",PlayerInfo[playerid][pName]);
    }
    return 1;
    }
    stock SavePlayer(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    if(GetPVarInt(playerid,"Eingeloggt") == 1)
    {
    GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
    mysql_SetInt("accountsdm", "Geld", GetPlayerMoney(playerid), "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accountsdm", "Level", GetPlayerScore(playerid), "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accountsdm", "Morde", PlayerInfo[playerid][pKills], "Name", PlayerInfo[playerid][pName]);
    mysql_SetInt("accountsdm", "Tode", PlayerInfo[playerid][pDeaths], "Name", PlayerInfo[playerid][pName]);
    }
    }
    return 1;
    }

    Mal davon abgesehen, dass der Bereich hier „Showroom“ ( „Zeigegebiet“/„Darstellungsbereich“ ) heißt sollte klar sein, dass bei einer Servervorstellung wohl nie ein Pastebin-Link vorhanden sein werden wird... ( Doppeltes Perfekt ? )


    Was ist denn mit der Band Wasn, die du in deinem Beitrag erwähnt hast ?


    Ouh Sorry, war mir nicht sicher, da es so kurz war..
    Sorry falls mein Post abfällig rüberkam ^^ wollte nur fragen oó