[Ajuda] Contar valores
#5

pawn Код:
SetPVarInt(playerid,"voto1",0);
SetPVarInt(playerid,"voto2",0);

SetPVarInt(playerid,"voto1",GetPVarInt(playerid,"voto1") + 1);
SetPVarInt(playerid,"voto2",GetPVarInt(playerid,"voto2") + 1);

if(GetPVarInt(playerid,"voto1") > GetPVarInt(playerid,"voto2")){
//func
}
if(GetPVarInt(playerid,"voto1") < GetPVarInt(playerid,"voto2")){
//func
}

//podendo usar um else.
Pelo o que eu entendi й isto? outro mйtodo de contagem..
Reply


Messages In This Thread
Contar valores - by CorTheZ_OwneeD - 25.07.2012, 20:19
Re: Contar valores - by Jason` - 25.07.2012, 20:20
Re: Contar valores - by CorTheZ_OwneeD - 25.07.2012, 20:23
Re: Contar valores - by Jason` - 25.07.2012, 20:24
Re: Contar valores - by leonardo1434 - 25.07.2012, 20:25
Re: Contar valores - by Jason` - 25.07.2012, 20:27
Re: Contar valores - by CorTheZ_OwneeD - 25.07.2012, 20:29
Re: Contar valores - by leonardo1434 - 25.07.2012, 20:32
Re: Contar valores - by CorTheZ_OwneeD - 25.07.2012, 20:35
Re: Contar valores - by F_Cinco - 25.07.2012, 20:36

Forum Jump:


Users browsing this thread: 1 Guest(s)