[Pedido] Divisao
#1

Um comando para dividir o level do player em 2, pode ser simples mas tenho duvida quanto a isso.
Tentei assim:

PHP код:
Level GetPlayerScore(playerid);
Level 2
SУ QUE NEM DEU. rзrз
Reply
#2

pawn Код:
Level = GetPlayerScore(playerid) / 2;
Tente assim.
Reply
#3

Nem funcionou
Reply
#4

O cуdigo postado pelo FallweN estб correto. Poste o cуdigo todo.
Reply
#5

Nгo tem, eu queria criar mesmo kkkk
Reply
#6

pawn Код:
new
    n1 = 20,
    n2 = 10,
    q
;

q = n1 / n2;

printf( "%d", q );
Saнda:
Код:
2
Reply
#7

Tente usando variбveis do tipo float.
pawn Код:
new float:Level;

Level = GetPlayerScore(playerid) / 2;

printf("%f", Level);
Reply
#8

Vou tentar
Reply
#9

RESOLVIDO
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)