Won't read "nobody"
#3

Yes, in the code^:
pawn Код:
if(strcmp(HInfo[houseid][owner], "nobody", true))
{
//...
Why it doesn't work, maybe next code will help you?..

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new houseid, Howner[MAX_HOUSES], Hprice[MAX_HOUSES];
new string[256];
houseid = dini_Int(Huis, "Id");
format(Howner[houseid], 256, dini_Get(Huis, "Owner"));
Hprice[houseid] = dini_Int(Huis, "Price");
if(pickupid == EnterHousePickup[houseid])
{
  if(strcmp(Howner[houseid],"nobody", true))
  {
    format(string, sizeof(string), "~w~Type /buyhouse to buy this house ~h~Price: %d", Hprice[houseid]);
    GameTextForPlayer(playerid, string, 500, 0);
  }
  else
  {
    format(string, sizeof(string), "~w~Owner: %s ~w~Type /enter to enter the house", Howner[houseid]);
    GameTextForPlayer(playerid,string, 500, 0);
  }
}
if(pickupid == ExitHousePickup[houseid])
{
  GameTextForPlayer(playerid,"~w~Type ~r~/exit ~w~to exit the house", 500, 0);
}
return 1;
}
Reply


Messages In This Thread
Won't read "nobody" - by CAR - 20.10.2009, 10:21
Re: Won't read "nobody" - by Mike Garber - 20.10.2009, 12:29
Re: Won't read "nobody" - by CAR - 20.10.2009, 12:55
Re: Won't read "nobody" - by dice7 - 20.10.2009, 14:54
Re: Won't read "nobody" - by CAR - 20.10.2009, 16:01
Re: Won't read "nobody" - by Clank - 20.10.2009, 16:15
Re: Won't read "nobody" - by CAR - 20.10.2009, 16:23

Forum Jump:


Users browsing this thread: 3 Guest(s)