#1

їCуmo se hace para restarle 1 a una variable de un jugador?

Por ejemplo, restarle 1 a "Medicamentos" cuando use el cmd para consumir los mismos.
Reply
#2

pawn Код:
Medicamentos[playerid]--; //le resta 1 punto
Reply
#3

pawn Код:
Medicamentos[playerid]-10; //le resta 10 .-.
Reply
#4

Quote:
Originally Posted by xDarkuzSx
Посмотреть сообщение
pawn Код:
Medicamentos[playerid]-10; //le resta 10 .-.
No.
pawn Код:
Medicamentos[playerid] -= 10;
Reply
#5

Quote:
Originally Posted by xDarkuzSx
Посмотреть сообщение
pawn Код:
Medicamentos[playerid]-10; //le resta 10 .-.
eso tirarнa warning 215: expression has no effect

seria:
Код:
Medicamentos[playerid] -= 10;
Reply
#6

#fail hahaha xd pues ami no me tiro ningun warning o.o dafuq
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)