Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Help check Exl(NewOption) on Main.cpp  (Visto 1050 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline lstuan Posteado: May 03, 2023, 02:45:04 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 36
  • Gracias recibida: 19
  • ao
Hello
I have a question I hope you can help me with
1. I want to check Exl item (NewOption) on Main.cpp has any code suitable?
I want if the Exl weapon (NewOption) the export will show something like ( text)!
- It's the same as checking ItemLevel with here
int CSItemOption::parseInt(char* chars)
{
   int sum = 0;
   int len = strlen(chars);
   for (int x = 0; x < len; x++)
   {
      int n = chars[len - (x + 1)] - '0';
      sum = sum + powInt(n, x);
   }
   return sum;
}
int CSItemOption::powInt(int x, int y)
{
   for (int i = 0; i < y; i++)
   {
      x *= 10;
   }
   return x;
}
Hope you will help me.

Gracias:


Offline NghienMU #1 Posteado: May 05, 2023, 03:50:55 AM

  • 0 puntos por ventas
  • *
  • Rank: Liga mayor
  • Posts: 197
  • Gracias recibida: 63
  • vn

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
4 Replies
7481 Views
Last post September 28, 2019, 04:58:06 PM
by Ryuno
6 Replies
3935 Views
Last post March 16, 2018, 02:28:40 PM
by draganus
7 Replies
6567 Views
Last post August 30, 2022, 11:35:30 PM
by matiaslawwliet
1 Replies
612 Views
Last post April 30, 2023, 12:23:00 PM
by webmonkey
0 Replies
385 Views
Last post May 03, 2023, 02:42:39 AM
by lstuan