Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: scripter_pawn on November 27, 2011, 01:17:05 am

Title: how much functions does a squirrel do?
Post by: scripter_pawn 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 ? ? ?
Title: Re: how much functions does a squirrel do?
Post by: BIG[H] 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);
Title: Re: how much functions does a squirrel do?
Post by: scripter_pawn on November 27, 2011, 06:00:21 pm
still dont work
Title: Re: how much functions does a squirrel do?
Post by: Force 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