Is that right? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is that right? (
/showthread.php?tid=607424)
Is that right? -
Lajko1 - 19.05.2016
Код:
stock EventPicked()
{
for(new i = 0;i < sizeof(EventVoteType); i++)
{
if(i != (sizeof(EventVoteType) - 1))
{
if(EventVoteType[compareWithNext] < EventVoteType[i+1])
{
compareWithNext = i+1;
}
}
}
return EventVoteType[compareWithNext];
}
Am I using this code right - like this?
Код:
if(EventPicked() == EventVoteType[0])
{
//yadayada
}