Jump to content

Question

Posted

Salut am facut un sistem de salvare cu sql Setez un skin de ex /Skin 1 mil arata in database cai skin nr 1

Dar cand intru iar pe sv nu mil mai da

[pawn]new DBResult:Result, Query[128], strg[128];

  format( Query, sizeof( Query ), "SELECT `Skin` = '%d' FROM `Skin` WHERE `Name` = '%s'", Name(playerid));

      Result = db_query( Database,  Query );

     

      if ( db_num_rows( Result ))

      {

  new Field[ 30 ];

  db_get_field_assoc(Result, "Skin", Field, 30);

  P_DATA[playerid][skin] = strval( Field );

 

  }

      else

  {

      format(string,sizeof(string),"You have Skin ...");

    ShowPlayerDialog(playerid, DIALOGID_CLANCREATE, DIALOG_STYLE_MSGBOX, "Skin", string, "Next", "Cancel");

}

db_free_result( Result );[/pawn]

e ceva gresit oare:O?

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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.