Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - aXXo

Pages: 1 2 [3] 4
31
mIRC/pawn Scripting / Re: [help]Money bug.
« on: February 15, 2011, 07:00:00 pm »
This is a bug in Ammunations in mIRC config file.
You cant fix it.

The best way is to make a /c buywep command

32
mIRC/pawn Scripting / Re: help about cars
« on: February 10, 2011, 01:10:54 pm »
It is not possible. Cars get desynced when you leave server.
It will appear at the spawn loc. Unless some other player sits in it while you were away.

33
mIRC/pawn Scripting / Re: [Pawn]SetTime
« on: February 05, 2011, 04:40:50 am »
use RCON commands ingame

/sethr
/setmin
/settimerate

Or you can try using SendRconCommand.
http://famp.ru/wiki/SendRconCommand

Though it doesnt work for me that way, but according to wiki it should :S

34
mIRC/pawn Scripting / Re: [Pawn]Timers
« on: February 05, 2011, 04:35:55 am »
You cannot pass parameters in functions when using timers.

It has to be:
public test()
{
...
return 1;
}

For using timers applicable only on certain variables you have to use SetTimerEx, which doesnt exists in VCMP.

35
mIRC/pawn Scripting / Re: [Pawn]Timers
« on: February 04, 2011, 02:24:38 am »
sometimes when i do a function like

stock test()
{
    SendClientMessageToAll(COLOR_GREEN,"blablabla");
    ServerInfo[0][variable] = 1;
}

SetTimer("test",10000,0");  //<----- This line

it gives me syntax errors
Theres a syntax error in the line i specified.
It should be:
SetTimer("test",10000,false);

true means timer runs infinite times...
false means timer runs only one time.
Integers have no effect in the 3rd parameter, it runs infinite times if u put integers.....better use true/false

36
mIRC/pawn Scripting / Re: Help me plz
« on: January 18, 2011, 04:16:32 pm »
It aint possible in PAWN
Go ingame and type "/settimerate 2". Make sure you logged in through rcon by using "/admin <your rcon password>"
It will start running.

37
mIRC/pawn Scripting / Re: !flip command need to fix
« on: January 15, 2011, 12:31:22 am »
You need to specify the vehicle angle in
SetVehiclePos(vehicleid, Float:X,Float:Y,Float:Z,Float:FacingAngle)

38
mIRC/pawn Scripting / Re: help!!
« on: January 15, 2011, 12:30:00 am »
To start a timer:
Code: [Select]
new MyTimer;
MyTimer=SetTimer("HealAll",1000,true);

It will call the HealAll() function infinite times in 1 second interval.
The timerid for that timer is saved in MyTimer variable.

so on
Code: [Select]
KillTimer(MyTimer);
The timer will stop.

39
mIRC/pawn Scripting / Re: help!!
« on: January 14, 2011, 01:46:03 pm »
TickCount returns the number of seconds elapsed.

For example:

Time1=GetTickCount();
Time2=GetTickCount();

Time2-Time1 will be the seconds elapsed between the execution of the above two statements.

40
mIRC/pawn Scripting / Re: [PAWN]"Warning:Tag mismatch" on float return
« on: March 18, 2010, 03:43:50 pm »
Arright, a function prototype :)

So, is it advisable to have a prototype for every public function?
or just the ones which give tag mismatch?

41
mIRC/pawn Scripting / [PAWN]"Warning:Tag mismatch" on float return
« on: March 18, 2010, 01:11:07 am »
Hi.
Apparantly, im getting a "Warning 213: Tag Mismatch" on the line where im returning a float value in a function.
Function body:
Code: [Select]
public GetDistance(Float:X1,Float:Y1,Float:Z1,Float:X2,Float:Y2,Float:Z2)
{
new Float:X = floatsub(X2,X1);
new Float:Y = floatsub(Y2,Y1);
new Float:Z = floatsub(Z2,Z1);
new Float:Dist = floatsqroot(floatadd(floatadd(floatpower(X,2),floatpower(Y,2)),floatpower(Z,2)));
return Dist;
}

The function is returning a random, wrong value......
Then, i replaced:
Code: [Select]
public GetDistance(Float:X1,Float:Y1,Float:Z1,Float:X2,Float:Y2,Float:Z2)
by

Code: [Select]
public Float:GetDistance(Float:X1,Float:Y1,Float:Z1,Float:X2,Float:Y2,Float:Z2)

The Warning changes to:
Code: [Select]
warning 208: function with tag result used before definition, forcing reparse
Now the function returns an accurate value....
But still...any method to remove the warning?

42
Support / Re: Problem...
« on: March 18, 2010, 12:57:31 am »
I got that when i was running VC + Google earth on my old PC.

Kingston, You probably have too many programs running at same time.

1. Go to "run"  --->
2. Type "msconfig", press enter
3. Click on "Services" tab
4. Check(tick) "Hide all Microsoft services"
5. Do disable all.
6. Press Ok....restart PC.
 
If you think there is some program that you dont wanna close....just uncheck it from the list.


woot i got more ram xD, thanks for the link Windlord :D

43
mIRC/pawn Scripting / Re: List of Bugs with Pawno
« on: March 17, 2010, 04:56:20 pm »
SetWantedLevel does not work.

The GUPS code for /c setwantedlevel seems fine.....I think the problem is with SetWantedLevel(...).....ive also tried the example code in Wiki....the stars wont flash in the HUD.

44
Support / Re: R2 bug?
« on: January 03, 2010, 08:05:20 pm »
I have faced that bug on a test server too.
It happens when you enter the car from the passenger side I think...

Also, to fix it just enter and exit a car as a passenger (using TAB key), then you can enter the car normal as before.

45
Support / Re: help, getting error message when i close
« on: January 02, 2010, 01:16:47 am »
Just keep your "Enter" key pressed when those messages appear.
They will dissappear.

Pages: 1 2 [3] 4