25.07.2012, 20:25
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.