SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Pottus
Forum: Scripting Help 11/12/2019, 09:20 PM
Replies: 2
Views: 76
Posted By Pottus
Re: [SQLite] Don't read the data

You are missing a step.

https://github.com/Pottus/Texture-Studio/blob/master/filterscripts/tstudio/tsmain.pwn

Line 396.
Forum: Scripting Help 10/12/2019, 03:23 AM
Replies: 5
Views: 196
Posted By Pottus
Re: PhoneBook

Use SQLite.... "SELECT * FROM `CONTACTS` where `Name` = 'Players Name'"
Forum: Scripting Help 10/12/2019, 03:20 AM
Replies: 1
Views: 60
Posted By Pottus
Re: Textdraw limits?

You are not using textdraws correctly. You only use player textdraws for textdraws that displayer per-player output otherwise all other textdraws should be global.
Forum: Scripting Help 09/12/2019, 11:34 PM
Replies: 4
Views: 133
Posted By Pottus
Re: 3 Dimensional arrays with enum

What do you mean it won't work? I can see how you are trying to do and you are doing it incorrectly or if you need to do it this way your method needs serious improvements elsewhere.
Forum: Scripting Help 09/12/2019, 06:55 PM
Replies: 4
Views: 133
Posted By Pottus
Re: 3 Dimensional arrays with enum

You are overthinking your problem you have created an extra dimension in your array for absolutely no good reason. Instead move it to your enum like this.

#define MAX_DYNAMIC_OBJECTS 500
#define...
Forum: Scripting Help 08/12/2019, 04:42 AM
Replies: 3
Views: 101
Posted By Pottus
Re: SAMP - Ammunation Shooting Range

You could make a shooting range a shit load better than that in SA-MP so it's more than possible.
Forum: Scripting Help 08/12/2019, 04:39 AM
Replies: 2
Views: 82
Posted By Pottus
Re: What kind of TextDraw to use?

You use player textdraws for per-player output and global for textdraws that never change.
Forum: Filterscripts 07/12/2019, 07:04 PM
Replies: 8
Views: 469
Posted By Pottus
Re: NVS [Beta 1.0] - A dynamic chunk based vehicle streamer!

I got lots more!

- Good bots with advanced path finding
- Apocalypse scenario where LS gets destroyed over the course of 12 hours (survival)
- Animation sequence builder
Forum: Filterscripts 07/12/2019, 06:40 PM
Replies: 8
Views: 469
Posted By Pottus
Re: NVS [Beta 1.0] - A dynamic chunk based vehicle streamer!

Oh well man it's cool anyways, maybe one day if 10,000 vehicles are supported then this would become very useful :)

Here are some ideas for you.

- SA-MP Sandbox (Create your gamemode in game)...
Forum: Filterscripts 07/12/2019, 06:16 PM
Replies: 8
Views: 469
Posted By Pottus
Re: NVS [Beta 1.0] - A dynamic chunk based vehicle streamer!

#define MAP_SIZE 40000 //The map size, don't change! so that creates 17,656 chunks.
However! Realistically a lot of those chunks are going to be completely useless it's more of a 6000x6000 area...
Forum: Scripting Help 05/12/2019, 05:47 PM
Replies: 4
Views: 177
Posted By Pottus
Re: High CPU Usage

You have 4 culprits.

One callback and three functions.

- Callback post all OnPlayerUpdate() code for review
- Post this function PlayerToPoint()
- Post all timer code for per-player /...
Forum: Filterscripts 05/12/2019, 02:21 AM
Replies: 3
Views: 580
Posted By Pottus
Re: Snow Plowing Vehicles / AttachObjectToVehicle

The TS export code was designed to create a FS that you could just load and unload. In 5 minutes a exported script could easily be updated to be an include for a gamemode.

I would recommend that...
Forum: Scripting Help 03/12/2019, 04:42 PM
Replies: 4
Views: 137
Posted By Pottus
Re: How to save damage on player vehicle after player dissconected?

There is more to it when I did this you need an additional check.

forward SaveUserVehicle(playerid, bool:removecar);
public SaveUserVehicle(playerid, bool:removecar)
{...
Forum: Includes 01/12/2019, 03:35 PM
Replies: 4
[Include] Surfing callbacks
Views: 391
Posted By Pottus
Re: Surfing callbacks

GetPlayerSurfingState(playerid)

- Object
- In Air
- Vehicle

GetPlayerSurfingObject(playerid, &objectid, &type)

I feel like you do this is a shallow release that could be a lot better and...
Forum: Scripting Help 01/12/2019, 04:19 AM
Replies: 11
Views: 258
Posted By Pottus
Re: Random Objects and random spawn

Problem is you are trying to do too much with too little and taking the wrong approach.
Forum: Discussion 30/11/2019, 03:46 PM
Replies: 8
Views: 340
Posted By Pottus
Re: Anti-wall hacking

Very easy to catch someone just watch them for a while if they are magically chasing down what they can't see everytime then you know.
Forum: Everything and Nothing 30/11/2019, 04:41 AM
Replies: 8
Views: 889
Posted By Pottus
Re: Is this possible to script?

Yeah Crayder got banned and was maintaining it so the thread was deleted. But hey your vanilla remastered looks interesting maybe you can do a SA-MP remastered.
Forum: Scripting Help 30/11/2019, 04:38 AM
Replies: 5
Views: 182
Posted By Pottus
Re: On press 2,4,6,8

I have seen plenty of servers that just assumes a keyboard configuration ~k~ for the win.
Forum: Everything and Nothing 29/11/2019, 06:00 PM
Replies: 8
Views: 889
Posted By Pottus
Re: Is this possible to script?

If it's not possible make it possible :) "ColAndreas"
Forum: Scripting Help 29/11/2019, 05:57 PM
Replies: 7
Views: 239
Posted By Pottus
Re: object attached

Just get the vehicle position then add the offset for the object you want to edit.
Forum: Scripting Help 28/11/2019, 08:28 AM
Replies: 2
Views: 99
Posted By Pottus
Re: array index out of bounds

Scripting help is for people who know how to script and have a problem, not to debug downloaded scripts that you are not qualified to use nevertheless....

There isn't enough information here but...
Forum: Scripting Help 27/11/2019, 03:11 AM
Replies: 4
Views: 154
Posted By Pottus
Re: help loose identification

public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;

Useless.... of course the player is connected they just updated.
Forum: Tutorials 21/11/2019, 06:29 AM
Replies: 2
Views: 326
Posted By Pottus
Re: How to make a Building System

This is a much older method that works fine when done correctly which you have only half done (we will get to that after) however you can do this without any looping you can just use the streamer...
Forum: Scripting Help 16/11/2019, 12:59 AM
Replies: 2
Views: 123
Posted By Pottus
Re: OnPlayerClickPlayerTextDraw

Looks like you are using textdraws wrong. Do these textdraws actually change their output on a per-player basis? If not you should be using global textdraws.
Forum: Scripting Help 12/11/2019, 08:16 PM
Replies: 28
Views: 513
Posted By Pottus
Re: [HELP] Run time error 4: "Array index out of bounds"

You have a much bigger problem. That will use all textdraw slots.

for(new i = 0; i < MAX_PLAYERS; i++)
{

TAXIMET[i] = TextDrawCreate(378.000000, 360.000000, "Taximetro");
...
Showing results 1 to 25 of 500

 

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


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