SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 129
Search took 0.01 seconds.
Search: Posts Made By: Anwix
Forum: Client Support 07/07/2010, 11:19 AM
Replies: 19
Views: 16,556
Posted By Anwix
Re: SA-MP at 1920x1080

Thanks!
Been wanting to play at 1920x1080 for a long time.
Forum: Help Archive 21/06/2010, 12:22 PM
Replies: 9
Views: 1,734
Posted By Anwix
Re: Possible memory leak?

I've managed to get rid of my heap stack warnings, and still waiting to test it.
After the next day:



We had a full server last night, so every variable/array was most likely filled, but...
Forum: Help Archive 20/06/2010, 03:46 PM
Replies: 9
Views: 1,734
Posted By Anwix
Re: Possible memory leak?

As i said i'm only using 1 plugin which is mysql from gstylez (updated to the latest version)

I also forgot to mention i have #pragma dynamic in my script (its currently as low as possible, i do...
Forum: Help Archive 20/06/2010, 03:35 PM
Replies: 9
Views: 1,734
Posted By Anwix
Re: Possible memory leak?

Hi Joe, thanks for the reply.

Now, i currently am only using 2 timers that updates arrays (syncing the clock for everyone, and player ranks (how long they have played))
I've checked over the rest...
Forum: Help Archive 20/06/2010, 03:07 PM
Replies: 9
Views: 1,734
Posted By Anwix
Possible memory leak?

When i first start up my server it uses around 10-15 MB of ram and stays around that area even with a good 25-30 players online.
But, after a couple of hours the ram will increase to up to 70-80MB...
Forum: Help Archive 21/05/2010, 05:13 PM
Replies: 8
Views: 4,304
Posted By Anwix
Re: (Error ID: 2006, MySQL server has gone away)

A quick way would be to set a timer that checks the connection of the mysql every 5-10minutes.


forward CheckMySQL();
public CheckMySQL()
{
if (!mysql_ping())
{
...
Forum: Help Archive 20/05/2010, 05:00 PM
Replies: 4
Views: 1,503
Posted By Anwix
Making trailers occupied vehicles?

I'm making some sort of trucking mini-mission and was wondering if its possible to make trailers occupied (as they are unoccupied) so the health can decrease.
The player will loose money for any...
Forum: Help Archive 18/05/2010, 06:38 PM
Replies: 11
Views: 1,042
Posted By Anwix
Re: MySQL Help!

You can quickly fix it by using functions with each query that will check if you are connected still.


stock MySQL()
{
if (!mysql_ping())
{
print("Reconnecting to database.");
...
Forum: Help Archive 18/05/2010, 06:05 PM
Replies: 12
Views: 2,067
Posted By Anwix
Re: Unban cmd

You have to edit the code he sent you to get it working...
Forum: Help Archive 18/05/2010, 05:39 PM
Replies: 11
Views: 1,042
Posted By Anwix
Re: MySQL Help!

before running the query check if you are still connected to the database.


CMD:test1(playerid, params[])
{
if (mysql_ping())
{
new string[256];
format(string,sizeof(string),"INSERT...
Forum: Help Archive 17/05/2010, 05:35 PM
Replies: 2
Views: 3,091
Posted By Anwix
Re: How to update 3D text label

When the player types /buyprop (or your own buy property command) you should use:

Update3DTextLabelText(Text3D:id, color, text[])
Forum: Help Archive 09/04/2010, 11:49 PM
Replies: 1
Views: 612
Posted By Anwix
Re: skin help

if (classid == 106 || classid == skinid || classid == skinid) {
Forum: Help Archive 29/03/2010, 06:20 PM
Replies: 6
Views: 864
Posted By Anwix
Re: Could you please help me?

public vcheck(playerid)
{
if (IsPlayerInAnyVehicle(playerid))
{
new vehicleid = GetPlayerVehicleID(playerid);
new Float:VehHealth;
GetVehicleHealth(vehicleid, VehHealth);

...
Forum: Help Archive 29/03/2010, 06:08 PM
Replies: 6
Views: 864
Posted By Anwix
Re: Could you please help me?

// OnGameModeInit
for (new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
SetTimerEx("vcheck", 500, 1, "i", playerid);
}

// Anywhere
forward vcheck(playerid);
public vcheck(playerid)
{
Forum: Help Archive 27/03/2010, 03:22 PM
Replies: 10
Views: 2,189
Posted By Anwix
Re: anti-spam

try changing


format(LastMessage[playerid], sizeof(LastMessage[]), text);


to


format(LastMessage[playerid], sizeof(LastMessage[]), "%s", text);
Forum: Help Archive 27/03/2010, 01:31 PM
Replies: 6
Views: 694
Posted By Anwix
Re: Little bit of help :D

case 0:
{
if(gTeam(playerid) == 2) {
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "Police Arms","Shotgun\nSMG\nM4\nArmour", "Submit", "Cancel");
}
}
Forum: Filterscripts 27/03/2010, 12:57 PM
Replies: 20
Views: 13,678
Posted By Anwix
Re: [FS] Simple Vehicle Light's System

Pastebin link added!

http://pastebin.com/dFCs7Y5n
Forum: Help Archive 26/03/2010, 12:41 AM
Replies: 11
Views: 1,792
Posted By Anwix
Re: Help OnPlayerCommandText

Press TAB on your keyboard to indent your code.
Forum: Filterscripts 25/03/2010, 07:59 PM
Replies: 20
Views: 13,678
Posted By Anwix
Re: [FS] Simple Vehicle Light's System

Thanks guys, and i only know this will work when your headlights come on automatically (defaul san andreas) which is around 9-6.
Forum: Help Archive 25/03/2010, 04:51 PM
Replies: 3
Views: 528
Posted By Anwix
Re: Can you help me please.

for 60 variables use


new Text[60];


then use


Text[0] = ..........
Forum: Filterscripts 25/03/2010, 03:59 PM
Replies: 20
Views: 13,678
Posted By Anwix
Re: [FS] Simple Vehicle Light's System

Yea, this only works in night time, thats something todo with San Andreas, im not actually sure if you can turn on the lights in daytime.
Forum: Help Archive 25/03/2010, 03:44 PM
Replies: 8
Views: 2,086
Posted By Anwix
Re: Pvars...

Could you post the warnings please :D
Forum: Help Archive 25/03/2010, 03:18 PM
Replies: 8
Views: 2,086
Posted By Anwix
Re: Pvars...

Just realised what i did wrong.

Try this:


//at top of script
#define TEAM_COPS 1
#define TEAM_CRIMINALS 2

forward SetPlayerTeamFromClass(playerid, classid);
Forum: Help Archive 25/03/2010, 02:49 PM
Replies: 17
Views: 1,738
Posted By Anwix
Re: [HELP]Checking if player has picked 2 or more pickups!

This should work much better, untested.


new TotalPickedUp[MAX_PLAYERS];
new HasPlayerGotBoth[MAX_PLAYERS];
new Pickup[2];

public OnGameModeInit()
{
Pickup[0] = CreatePickup(1550, 3,...
Forum: Help Archive 25/03/2010, 02:32 PM
Replies: 25
Views: 1,737
Posted By Anwix
Re: How to

Use DCMD its much easier.
Showing results 1 to 25 of 129

 

All times are GMT. The time now is 07:52 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.