biz help
#1

hey there im woundering how to make it so i can go like the follwoing


public OnGameModeInit()
{

AddBiz(0,Float,Float:y,Float:z,Float,Float:y,F loat:z);
return 1;
}
The first number is for the biz number so like i can call it back when i whant...
ok now the first 3 floats are the enter biz icon
Then The Next 3 floats are to exit the biz icon

So like i need to creat that but i also need it so i can call that back like so.....

public onplayerpickup(playerid,pickupid)
{
if(Biz(0) == playerid)
{

}
return 1;
}
so if someone could help me out with that that would be great thx for ur time
and if its not to hard is there a way to get the 2 floats apart like so...
AddBiz(0,Float,Float:y,Float:z,Floatx,Float:yx ,Float:zx);
Reply
#2

Check the TUT for creating houses in my signature, it's pretty much the same as what you are asking for.
Reply
#3

hey thx for this just a few more things im woundering how i could go about adding products like /buystock and /buyitems so if you could help that would be great im useing dcmd by the way


ok now im getting these errors from this part of script

C:\Users\lizzy\Desktop\Script PAWNO\Script Pawno v 1.3\gamemodes\c&r.pwn(665) : error 028: invalid subscript (not an array or too many subscripts): "BizInfo"
C:\Users\lizzy\Desktop\Script PAWNO\Script Pawno v 1.3\gamemodes\c&r.pwn(665) : warning 215: expression has no effect
C:\Users\lizzy\Desktop\Script PAWNO\Script Pawno v 1.3\gamemodes\c&r.pwn(665) : error 001: expected token: ";", but found "]"
C:\Users\lizzy\Desktop\Script PAWNO\Script Pawno v 1.3\gamemodes\c&r.pwn(665) : error 029: invalid expression, assumed zero
C:\Users\lizzy\Desktop\Script PAWNO\Script Pawno v 1.3\gamemodes\c&r.pwn(665) : fatal error 107: too many error messages on one line

Код:
public OnPlayerPickUpPickup(playerid, pickupid) //Pickup callback
{
  for(new J; J<MAX_BIZ; J++) //Loops through all houses
  {
    if(pickupid == PickupID[J]) //If the pickupid is one of our house ones
    {
      new str[75];
      if(BizInfo[J][Owned] == 1)
      {
        format(str, sizeof(str), "~r~Biz Info~n~~g~Owner: ~w~%s", BizInfo[J][BizOwner]);
      }
      if(BizInfo[J][Owned] == 0)
      {
        format(str, sizeof(str), "~r~Biz Info~n~~g~Owner: ~w~Nobody");
        SendClientMessage(playerid, 0x67F6F6AA, "This house is up for sale! Type /buy to buy it");
      }
      new str2[100];
      format(str2, sizeof(str2), "~g~Cost price:~w~ %d ~n~~g~Sell Price:~w~ %d", BizInfo[J][HouseCost], BizInfo[J][BizSell]);
      new str3[150];
      format(str3, sizeof(str3), "%s~n~%s", str, str2);
      GameTextForPlayer(playerid, str3, 3500, 3);
      return 1;
    }
  }
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)