Click Here for a Million Dollars
#1

Hey I have a slight problem, I am doing an RP script with pickups for buildings,

pawn Код:
new temp[25];
    LastCreatedPickup = CreatePickup(1239,23, 1480.9115,-1771.7671,18.7958);
    valstr(temp, LastCreatedPickup);
    format(BizData[Name][LastCreatedPickup], 25, "%s", dini_Get("/LSA/Data/Names.txt", temp));
    format(BizData[Owner][LastCreatedPickup], 25, "%s", dini_Get("/LSA/Data/Owners.txt", temp));
    LastCreatedPickup = CreatePickup(1239,23, 1555.3329,-1675.6576,16.1953);
    valstr(temp, LastCreatedPickup);
    format(BizData[Name][LastCreatedPickup], 25, "%s", dini_Get("/LSA/Data/Names.txt", temp));
    format(BizData[Owner][LastCreatedPickup], 25, "%s", dini_Get("/LSA/Data/Owners.txt", temp));
    LastCreatedPickup = CreatePickup(1239,23, 1568.5784,-1689.9764,6.2188);
    valstr(temp, LastCreatedPickup);
    format(BizData[Name][LastCreatedPickup], 25, "%s", dini_Get("/LSA/Data/Names.txt", temp));
    format(BizData[Owner][LastCreatedPickup], 25, "%s", dini_Get("/LSA/Data/Owners.txt", temp));
    LastCreatedPickup = CreatePickup(1239,23, 1352.4362,-1759.0443,13.5078);
    valstr(temp, LastCreatedPickup);
    format(BizData[Name][LastCreatedPickup], 25, "%s", dini_Get("/LSA/Data/Names.txt", temp));
    format(BizData[Owner][LastCreatedPickup], 25, "%s", dini_Get("/LSA/Data/Owners.txt", temp));
    LastCreatedPickup = CreatePickup(1239,23, 1368.7438,-1279.8066,13.5469);
    valstr(temp, LastCreatedPickup);
    format(BizData[Name][LastCreatedPickup], 25, "%s", dini_Get("/LSA/Data/Names.txt", temp));
    format(BizData[Owner][LastCreatedPickup], 25, "%s", dini_Get("/LSA/Data/Owners.txt", temp));
The only problem is, only the last one is displaying correctly, the others say Ammunation with some random letters in the front, thanks.
Reply
#2

Ask in dini/dudb topic.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)