07.09.2009, 14:08
Hi Community,
I'm currently working on a Property Script and I have found a
Bug/Mistake or something that I can't fix :/
So I need help with this.
This doesn't work:
The complete Function:
What is there wrong ?
- LJ
I'm currently working on a Property Script and I have found a
Bug/Mistake or something that I can't fix :/
So I need help with this.
This doesn't work:
pawn Код:
if(dini_Isset(PropertyFile(p), "OldOwner") && strcmp(Playername(playerid),dini_Get(PropertyFile(p),"OldOwner"),true) == 0)
pawn Код:
stock CheckOldPropertyOwner(playerid)
{
new string[256];
for (new p = 0; p < mProps; p++)
{
if(dini_Isset(PropertyFile(p), "OldOwner") && strcmp(Playername(playerid),dini_Get(PropertyFile(p),"OldOwner"),true) == 0)
{
GivePlayerMoney(playerid, dini_Int(PropertyFile(p), "OldOwnerMoney"));
format(string, sizeof(string), "== %s wurde dir abgekauft ! Du erhдlst dafьr %d$", dini_Get(PropertyFile(p), "Name"),dini_Int(PropertyFile(p), "OldOwnerMoney"));
SendClientText(playerid, string);
dini_Unset(PropertyFile(p), "OldOwner");
dini_Unset(PropertyFile(p), "OldOwnerMoney");
}
}
return 1;
}
- LJ