Witam, tak sobie kodzę i zastanawia mnie czy te dwa kody robią to samo...
public add_progress(id, amount)
{
if(iPlayerQuestProgress[id] += amount >= ArrayGetCell(gIleRazy, iPlayerQuestID[id]))
Nagroda(id);
}
add_progress(id, amount)
{
if(iPlayerQuestProgress[id] + amount < ArrayGetCell(gIleRazy, iPlayerQuestID[id]))
iPlayerQuestProgress[id] += amount;
else
Nagroda(id);
}
Pytam z ciekawości czystej, bo nie jestem sam pewien, a nie jestem taki dobry ![]()


Dodatki SourceMod



Temat jest zamknięty










