Jump to content

KoBBy

Membru
  • Posts

    13
  • Joined

  • Last visited

Posts posted by KoBBy

  1. La 1/16/2018 la 11:30, MiritaXD a spus:

     

    
    	function LoadGarages() {
        new Cache: db = mysql_query(SQL, "SELECT * FROM `garages`");
        new x, result[126];
         for(new i, j = cache_get_row_count (); i != j; ++i) {
            garages ++;
               cache_get_field_content(i, "ID", result); x = strval(result), garageInfo[garages][gID] = x;
               cache_get_field_content(i, "Owner", result); format(garageInfo[x][gOwner], 32, result);
             cache_get_field_content(i, "UserID", result); garageInfo[x][gUserID] = strval(result);
            cache_get_field_content(i, "Price", result); garageInfo[x][gPrice] = strval(result);
    	        garageInfo[x][gPos][0] = cache_get_field_content_float(i, "X"); 
               garageInfo[x][gPos][1] = cache_get_field_content_float(i, "Y");
               garageInfo[x][gPos][2] = cache_get_field_content_float(i, "Z"); 
            garageInfo[x][gAngle] = cache_get_field_content_float(i, "Angle"); 
    	           garageInfo[x][gVirtualID] = x;    
    	           garageInfo[x][gPickup] = CreateDynamicPickup(1277, 23, garageInfo[x][gPos][0], garageInfo[x][gPos][1], garageInfo[x][gPos][2]);
               garage_label(x);     
        }
        printf("Garages loaded: %d", garages);
        cache_delete(db);
        return 1;
    }

     

    Ma refer la codul care sa il bag in PHPMYADMIn

  2. Salut, am facut multe editari pe GM Burned, iar acum cand vreau sa il pornesc nu continua de la:

    [20:52:32]  ======================================= 
    [20:52:32]  |                                     | 
    [20:52:32]  |        YSI version 3.09.0684        | 
    [20:52:32]  |        By Alex "Y_Less" Cole        | 
    [20:52:32]  |                                     | 
    [20:52:32]  ======================================= 

    Nu da nici o eroare, am si crashdetect. 

    Am incercat si cu gamemode-ul din arhiva si se intampla la fel dupa ce ii dau compilare... Am schimbat si YSI si la fel.

     

  3. Acum 56 minute, RazvaN. a spus:
    
    case DIALOG_LOGIN2: {
    			if(!response) return Kick(playerid);
    			if(strlen(inputtext)) {
    				OnPlayerLogin(playerid, inputtext);
    			}
    ///
    		case DIALOG_LOGIN3: {
    			if(!response) return Kick(playerid);
    			if(strlen(inputtext)) {
    				OnPlayerLogin(playerid, inputtext);
    			}

    Am rezolvat problema, acum cand intru pe server, dau login si dupa imi apare protocolul de inregistrare.

  4. Acum 3 minute, AlexBo$$ a spus:

    Cu placere, sa fi sanatos :).

    Vreo idee cum le pot rezolva?

    (11420) : error 035: argument type mismatch (argument 2)
    (11437) : error 035: argument type mismatch (argument 2)
    (33227) : error 025: function heading differs from prototype
    (33227) : error 025: function heading differs from prototype

    Liniile:

    		case DIALOG_LOGIN2: {
    			if(!response) return Kick(playerid);
    			if(strlen(inputtext)) {
    				new tmppass[64];
    				mysql_real_escape_string(inputtext, tmppass);
    				OnPlayerLogin(playerid,MD5_Hash(tmppass)); // linia problema
    			}
    ///
    		case DIALOG_LOGIN3: {
    			if(!response) return Kick(playerid);
    			if(strlen(inputtext)) {
    				new tmppass[64];
    				mysql_real_escape_string(inputtext, tmppass);
    				OnPlayerLogin(playerid,MD5_Hash(tmppass)); // ljnia problema
    			}
    ///
    function OnPlayerLogin(playerid,password[]) {  // Linia problema 
    	new playername2[MAX_PLAYER_NAME];
        GetPlayerName(playerid, playername2, sizeof(playername2));
        new qstr[100];
        new result[456];
        format(qstr,100,"SELECT * FROM users WHERE `name`='%s' AND `password`='%s'",playername2,password);
        mysql_query(SQL,qstr);
        mysql_store_result();	
        if(mysql_num_rows() > 0) {
          	if(mysql_retrieve_row()) {
    			GameTextForPlayer(playerid, "~y~Loading account...", 20000, 4);
    			PlayerTextdraws(playerid);

    Aceste erori au aparut dupa ce am adaugat #include <accs_system>

×
×
  • Create New...

Important Information

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. For more details you can also review our Terms of Use and Privacy Policy.