Author Topic: how much functions does a squirrel do?  (Read 2873 times)

0 Members and 1 Guest are viewing this topic.

Offline scripter_pawn

  • Street Thug
  • *
  • Posts: 30
    • View Profile
how much functions does a squirrel do?
« on: November 27, 2011, 01:17:05 am »
Code: [Select]
function onScriptLoad()
{
local pix = ReadIniInteger("pick.ini","id","nr");
local vy1 = 1;
while( vy1 < pix )
{
local vx1 = ReadIniString("pick.ini",vy1.tostring(),"x");
local vx2 = ReadIniString("pick.ini",vy1.tostring(),"y");
local vx3 = ReadIniString("pick.ini",vy1.tostring(),"z");
print("x -"+vx1+vx2+vx3);
CreatePickup( 407, Vector( vx1, vx2, vx3 ) );
vy1++;
}
}
ini :
[id]
nr = 5
[1]
x = 155.311
y = -1389.43
z = 10.432
[2]
x = 157.429
y = -1384.29
z = 10.432
[3]
x = 159.262
y = -1377.71
z = 10.432
[4]
x = 161.314
y = -1372.22
z = 10.432
Why doesn't it show the pickups on the map ? ? ?

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: how much functions does a squirrel do?
« Reply #1 on: November 27, 2011, 05:31:49 pm »
the best shit is this
Quote
ReadIniString("pick.ini",vy1.toString(),"x");
try to convert to this

Quote
ReadIniInteger("pick.ini",vy1.toInteger(),"x");
ReadIniInteger("pick.ini",vy1.toInteger(),"y");
ReadIniInteger("pick.ini",vy1.toInteger(),"z);
« Last Edit: November 27, 2011, 05:58:46 pm by BIG[H] »
Outdoor city server Administrator, FS server owner!

Offline scripter_pawn

  • Street Thug
  • *
  • Posts: 30
    • View Profile
Re: how much functions does a squirrel do?
« Reply #2 on: November 27, 2011, 06:00:21 pm »
still dont work

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: how much functions does a squirrel do?
« Reply #3 on: November 27, 2011, 10:49:01 pm »
How many functions does a squirrel do? Well just as many as any normal rodent, they eat, sleep, breath, exercise, piss, shit, all that usual stuff.

http://en.wikipedia.org/wiki/Squirrel