Jump to content
  • 0

Adunare si Inmultire?


Question

Posted

Am facut un sistem de scoala,si vreau ca de la teste sa iti dea o medie din notele care le-ai luat la teste.

Se poate face de ex:

[pawn]Nota1+Nota2+Nota3=Medie[/pawn]

Si sa fac sa se imparta media la 3?

Daca nu se poate trebuie sa fac cu toate posibilitatie..daca Nota1=10 Nota2=10 Nota3=10..Medie=10..si tot asa cu toate notele:))

gXvsYS

1 answer to this question

Recommended Posts

Posted

[pawn]new total;

new total2;

total = Nota1[playerid] + Nota2[playerid] + Nota3[playerid];

total2 = total / 3;

PlayerInfo[playerid][pMedie] = total2;

[/pawn]

Nu garantez...

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.