PDA

View Full Version : a simple doubt ...


GeorgNihilus
08-04-2008, 08:26 PM
Hi there :) I'm not sure which function should I use to check how many credits do I have in inventory for K1, I'm using this -which is not working obviously- to find if I have more than 2250 credits but the faction thing is not clear to me ... :(

// it 'should' return true if I have more than 2250 credits in inventory

#include "k_inc_debug"

int StartingConditional()
{
object oPC=GetFirstPC();
int creds;
creds=GetFactionGold(oPC);

if (creds > 2250)
{
return TRUE;
}
return FALSE;
}

I think is always returning false if I'm right ...

thanks on advance guys :yelhelp:

EDIT: Thanks anyway people, I already found it ... :)