Help - CreateBusiness - Sasinosoft Houses 2.0
#1

Hi
I error:
C:\Users\*****\*****\****\gamemodes\***.pwn(2732) : error 035: argument type mismatch (argument 1)
C:\Users\*****\*****\****\gamemodes\***.pwn(2732) : warning 215: expression has no effect
C:\Users\*****\*****\****\gamemodes\***.pwn(2732) : error 001: expected token: ";", but found "]"
C:\Users\*****\*****\****\gamemodes\***.pwn(2732) : error 029: invalid expression, assumed zero
C:\Users\*****\*****\****\gamemodes\***.pwn(2732) : fatal error 107: too many error messages on one line

Have you taken the line that Arvrv:

biz1 = CreateBusiness(biz1, earning, -1618.95, 866.87, 7.69, 225.630997, 1022.479980, 1084.069946, 100000, 7, 0, 1, 37, item_list[1024] = "item1 ($100)");

Can you help?
Thank you
Reply
#2

Send 10 lines before this and 10 lines after.
Reply
#3

Again, this kind of


C:\Users\*****\*****\****\gamemodes\***.pwn(2742) : error 035: argument type mismatch (argument 1)
C:\Users\*****\*****\****\gamemodes\***.pwn(2742) : warning 215: expression has no effect
C:\Users\*****\*****\****\gamemodes\***.pwn(2742) : error 001: expected token: ";", but found "]"
C:\Users\*****\*****\****\gamemodes\***.pwn(2742) : error 029: invalid expression, assumed zero
C:\Users\*****\*****\****\gamemodes\***.pwn(2742) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

We need your code, 10 lines before & 10 lines after your errors.
Reply
#5

for(new i, j = sizeof(atmInfo); i < j; i++) {
atmInfo[i][ObjectID] = CreateObject(OBJECT_TYPE, atmInfo[i][atmX], atmInfo[i][atmY], atmInfo[i][atmZ], atmInfo[i][atmRX], atmInfo[i][atmRY], atmInfo[i][atmRZ], 300.0);

atmInfo[i][atmX] -= (PICKUP_DISTANCE * floatsin(-atmInfo[i][atmRZ], degrees));
atmInfo[i][atmY] -= (PICKUP_DISTANCE * floatcos(-atmInfo[i][atmRZ], degrees));
atmInfo[i][PickupID] = CreateDynamicCP( atmInfo[i][atmX], atmInfo[i][atmY], atmInfo[i][atmZ], 1.00, -1, -1, -1, 5.0);


}
DisableInteriorEnterExits();
// UsePlayerPedAnims();
//KHANE HA ************************************************** *******************
biz1 = CreateBusiness(biz1, earning, -1618.95, 866.87, 7.69, 225.630997, 1022.479980, 1084.069946, 100000, 7, 0, 1, 37, item_list[1024] = "item1 ($100)"); //
//CreateHouse(-1581.30, 867.18, 7.69, 225.630997, 1022.479980, 1084.069946, 574000000, 7, 0, 1); // jolo bank
//CreateHouse(-2442.40, 727.57, 35.02, 225.630997, 1022.479980, 1084.069946, 853000000, 7, 0, 60); //
CreateHouse(-2717.80, -317.59, 7.84, 225.630997, 1022.479980, 1084.069946, 853000000, 7, 0, 2); // 1250
CreateHouse(-2720.90, -320.70, 7.84, 225.630997, 1022.479980, 1084.069946, 853000000, 7, 0, 3); // 1250

CreateHouse(615.59, -2041.53, 11.51, 235.508994, 1189.169897, 1080.339966, 351000000, 3, 0, 4); // 350
CreateHouse(618.59, -2059.94, 12.00, 225.756989, 1240.000000, 1082.149902, 294000000, 2, 0, 5); // 320
CreateHouse(560.21, -2088.05, 11.04, 223.043991, 1289.259888, 1082.199951, 369000000, 1, 0, 6); // 374
CreateHouse(618.92, -2084.27, 12.01, 225.756989, 1240.000000, 1082.149902, 277000000, 2, 0, 7); // 280
CreateHouse(588.79, -2090.51, 11.52, 295.138977, 1474.469971, 1080.519897, 292000000, 15, 0, ; // 290
CreateHouse(513.71, -2089.49, 9.30, 328.493988, 1480.589966, 1084.449951, 220000000, 15, 0, 9); // 220
CreateHouse(510.73, -2070.81, 9.79, 385.803986, 1471.769897, 1080.209961, 193000000, 15, 0, 10); // 190
Reply
#6

Where is line error?
Reply
#7

biz1 = CreateBusiness(biz1, earning, -1618.95, 866.87, 7.69, 225.630997, 1022.479980, 1084.069946, 100000, 7, 0, 1, 37, item_list[1024] = "item1 ($100)"); //
Reply
#8

Can you help me?
Reply
#9

Function CreateBusiness code?
Replace:
item_list[1024] = "item1 ($100)" to: item_list[1024] == "item1 ($100)"
Reply
#10

biz1 = CreateBusiness(biz1, earning, -1618.95, 866.87, 7.69, 225.630997, 1022.479980, 1084.069946, 100000, 7, 0, 1, 37, item_list[1024] = "item1 ($100)"); //
That will be like a infinite loop..
Use mybiz1 = CreateBusiness(biz1
new mybiz1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)