Jump to content

Ayaka

Inactive Member
  • Posts

    288
  • Joined

  • Last visited

  • Days Won

    10
  • Feedback

    0%

Posts posted by Ayaka

  1. If you want to turn off all deprecated warnings including them from mysql_* you have to add:

    error_reporting(E_ALL ^ E_DEPRECATED);

    in a global php file (config.php for example).

    Attention: By updating your php version to 7 or higher, your mysql querys will not working anymore. So make sure to update your deprecated code before updating your system (in the future).

    • Love 1
  2. Give it a last try:

    • Type netsh winsock reset and press Enter.
    • Type netsh int ip reset and press Enter.
    • Type ipconfig /release and press Enter.
    • Type ipconfig /renew and press Enter.
    • Type ipconfig /flushdns and press Enter.

    and maybe this netsh advfirewall set allprofiles state off

    because of your hint with the firewall program. (dont forget to turn it on again after check)

    https://support.microsoft.com/en-us/help/10741/windows-10-fix-network-connection-issues

     

  3. vor 10 Minuten schrieb avertuss:

    Still the same c753ae778b257585c194d2e0112959de.png

    ok thats strange, i was so sure that this is working xD

    I would check if this is really the right place to change code. Whats happen if you change the "[" and "]" like:

    "%s<Prestige %d>"

    if the output isn't <Prestige 1>EbeEbe then this function isn't rendering for your output. 

  4. from reading this http://en.cppreference.com/w/cpp/io/c/fprintf i think this is the solution.

    %s is a character string (name) and %d a signed integer (level) so i changed the position in the first snprintf function. Hope this works, never coded in C++. i can only write php but from a logical point of view it should work:

    
    		if (pCharacterInstance->GetPrestigeLevel() < PRESTIGE_MAX)
    			snprintf(szNameTextTail, sizeof(szNameTextTail), "%s[Prestige %d]", pCharacterInstance->GetNameString(), pCharacterInstance->GetPrestigeLevel());
    		else
    			snprintf(szNameTextTail, sizeof(szNameTextTail), "%s[Prestige Master]", pCharacterInstance->GetNameString());

     

  5. First of all: This can't work because ids can only exist once! If you want to do such things you have to give the divs classes!

    So, I would do that with jQuery. It is just a lot easier for beginner than native JavaScript like you did.

    If you want to show/hide divs with its own toggle button (dynamically) you can do it like i did here:

    I used "data" Attribute for trigger the related div. The coole thing is, that you can place your div wherever you want and it works on several divs if you want. Just use the class which is used in the data Attribute for one or more divs.

    Shoud be easy to understand:

    <button class="toggleButton" data-toggle="div1">Show</button>
    <div class="toggleDiv div1">First Container</div>

     

    • Love 1
  6. On 11.3.2017 at 16:27, kingshero said:

    i have new problem plz help me 

    0311 17:20:06073 :: 
    system.py(line:287) RunMainScript
    system.py(line:204) execfile
    prototype.py(line:4) <module>
    system.py(line:151) __hybrid_import
    system.py(line:116) _process_result
    localeInfo.py(line:2) <module>
    system.py(line:151) __hybrid_import
    system.py(line:116) _process_result
    constInfo.py(line:3) <module>

    Run - <type 'exceptions.WindowsError'>:[Error 5] Access is denied: 'C:\\WINDOWS\\system32\\cmd.exe /c %WINDIR%/system32/wbem/wmic csproduct get uuid

    I don't know much about technical in this case but it sounds like a permission problem on windows. You are not allowed to execute cmd.exe. Maybe check administrator privileges? Control Panel > All Control Panel Items > User Accounts > Change UAC settings

    • Love 1
  7. Problem solved. It was the variable type. if someone else will have this problem be sure to convert all variables into integer if your column type is int! 

    /* you can to that this way */
    intval($var);
    /* or like this */
    (int)$var

    PS: Keep in mind that .PolluX was removing the value for vnum in the query, which was AUTO_INCREMENT and part of fixing this issue: 

     

    • Love 1
  8. ok i just didnt read the whole code section but i noticed something wrong so please fix that first:

    $boni0 = ($_POST['boni0']>=0 && $_POST['boni0']<=255) ? $_POST['boni0'] : '0';
    $boni1 = ($_POST['boni1']>=0 && $_POST['boni1']<=255) ? $_POST['boni1'] : '0';
    $boni2 = ($_POST['boni2']>=0 && $_POST['boni2']<=255) ? $_POST['boni2'] : '0';
    $boni3 = ($_POST['boni3']>=0 && $_POST['boni3']<=255) ? $_POST['boni3'] : '0';
    $boni4 = ($_POST['boni4']>=0 && $_POST['boni4']<=255) ? $_POST['boni4'] : '0';
    $boni5 = ($_POST['boni5']>=0 && $_POST['boni5']<=255) ? $_POST['boni5'] : '0';
    $boni6 = ($_POST['boni6']>=0 && $_POST['boni6']<=255) ? $_POST['boni6'] : '0';

    in this if statements is the else part not an integer because you put 0 into '0'. Try it like this:

    $boni0 = ($_POST['boni0']>=0 && $_POST['boni0']<=255) ? $_POST['boni0'] : 0;
    $boni1 = ($_POST['boni1']>=0 && $_POST['boni1']<=255) ? $_POST['boni1'] : 0;
    $boni2 = ($_POST['boni2']>=0 && $_POST['boni2']<=255) ? $_POST['boni2'] : 0;
    $boni3 = ($_POST['boni3']>=0 && $_POST['boni3']<=255) ? $_POST['boni3'] : 0;
    $boni4 = ($_POST['boni4']>=0 && $_POST['boni4']<=255) ? $_POST['boni4'] : 0;
    $boni5 = ($_POST['boni5']>=0 && $_POST['boni5']<=255) ? $_POST['boni5'] : 0;
    $boni6 = ($_POST['boni6']>=0 && $_POST['boni6']<=255) ? $_POST['boni6'] : 0;

    same for $boniv0, $boniv1, $boniv2, $boniv3, $boniv4, $boniv5 and $boniv6

    you can check every input with this to avoid strings:

    var_dump(is_int($var));

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.