SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 156
Search took 0.01 seconds.
Search: Posts Made By: l0gic
Forum: Tutorials 26/06/2020, 01:45 PM
Replies: 5
Views: 449
Posted By l0gic
Re: Creating Menus/Dialog Box's

"Returning 0 in this callback will pass the dialog to another script in case no matching code were found in your gamemode's callback.
It is always called first in filterscripts so...
Forum: Scripting Help 12/06/2020, 07:18 PM
Replies: 7
Views: 5,512
Posted By l0gic
Re: Weed Bush?!

I think he should use 0.3-ZL version, it has every object and GTAV graphics.
Forum: Scripting Help 30/05/2020, 05:45 PM
Replies: 26
Views: 744
Posted By l0gic
Re: Server is crashing

it can be caused by crashing objects.
Forum: Scripting Help 24/05/2020, 01:10 PM
Replies: 2
Views: 107
Posted By l0gic

Basic commands for sampctl
sampctl package init
sampctl package build
sampctl package install

Good include for starting
sampctl p install pBlueG/SA-MP-MySQL
sampctl p install...
Forum: Filterscripts 23/05/2020, 11:01 AM
Replies: 6
[FilterScript] Buff System
Views: 806
Posted By l0gic
Re: Buff System

Maybe delete this thing and just practise yourself coding, when you are good enough, you can post something good.
Currently this whole thing is useless and doesn't do anything.

With this script i...
Forum: Scripting Help 21/05/2020, 06:36 AM
Replies: 2
Views: 106
Posted By l0gic
Re: MySQL and GM support needed

Maybe something simplier for beginning, i know you have download somegame and dont have any idea what mysql even does, so maybe just practise sql queries, saving loading, updateing and then you...
Forum: Scripting Help 17/05/2020, 12:48 PM
Replies: 2
Views: 108
Posted By l0gic
Re: Maths for camera lookat vector

Maybe this will help.
Arrow keys increse n value and SetPlayerCameraLookAt into coordinates.

userPosInFront(pid, &Float:x, &Float:y, &Float:z, Float:a=0.0, Float:dis=2.5){
Forum: Tutorials 12/05/2020, 08:58 PM
Replies: 2
Views: 697
Posted By l0gic
Re: An In-Depth philosophy to creating a SA-MP Server.

new message[256];
so much string space for such a message?

new Float: X, Float: Y, Float: Z;
GetPlayerPos(playerid, X, Y, Z);
new Float: velocityX, Float: velocityY,...
Forum: Tools and Files 10/05/2020, 10:07 PM
Replies: 4
Views: 1,071
Posted By l0gic
Re: Simple Skin Browser HTML & PHP

This code is much cleaner and understandable for user to implement and change to his preference.


.skin-box {
box-sizing: border-box;
Forum: Tools and Files 10/05/2020, 09:48 PM
Replies: 4
Views: 1,071
Posted By l0gic
Re: Simple Skin Browser HTML & PHP

this code is bad like really really bad.
loading skins with php is already very slow and out of date.
its better to load only skin and not whole page so javascript is right way.
writing styling...
Forum: Scripting Help 07/05/2020, 08:41 PM
Replies: 8
Views: 199
Posted By l0gic
Re: The best player (MySQL/R40)

GetBestPlayer(const category[]){
new s[90];
format(s, 90, "select username from players order by %s desc limit 1", category);
new Cache:cq = mysql_query(serverCon, s), value;
s =...
Forum: Scripting Help 07/05/2020, 08:35 PM
Replies: 4
Views: 107
Posted By l0gic
Re: error 001: expected token: ")", but found "{"

because you currently are building system what doesn't make any sense.
Forum: Scripting Help 06/05/2020, 08:28 PM
Replies: 8
Views: 199
Posted By l0gic
Re: The best player (MySQL/R40)

Would be most easiest solution for this problem.

GetBestPlayer(const category[]){
new s[90],
name[20] = "(missing)";
format(s, 90, "select username from players order by %s...
Forum: Scripting Help 04/05/2020, 05:08 PM
Replies: 14
Views: 302
Posted By l0gic
Re: Speedometer

its very very simple, you create speedometer numbers with for example zamroht textdraw editor add moving symbol and create algotihm what moves this object.
Forum: Scripting Help 29/04/2020, 07:52 PM
Replies: 6
Views: 129
Posted By l0gic
Re: Waste string usage or fine?

this is bad
static const aGender[3][10] = {"Edit", "Male", "Female"};
would be much better and also easier.
Forum: Scripting Help 25/04/2020, 12:38 PM
Replies: 1
Views: 86
Posted By l0gic
Re: ! in front of string
Forum: Scripting Help 23/04/2020, 07:40 PM
Replies: 2
Views: 93
Posted By l0gic
Re: save FS data in mysql?

dont do that, don't use filterscripts at all.
Forum: Scripting Help 22/04/2020, 01:17 AM
Replies: 5
Views: 210
Posted By l0gic
Re: How can I get the floatsin floatcos of this?

well it can get too complicated so just check if vehicle is near spikes, simple and easy, wont take much resources also.
Forum: Scripting Help 21/04/2020, 03:37 PM
Replies: 11
Views: 263
Posted By l0gic
Re: Players No Found

Maybe you dont have player with id 8 or sscanf plguin is out of date.
Forum: Includes 21/04/2020, 01:45 PM
Replies: 1,356
Views: 340,795
Posted By l0gic
Re: Nex-AC - Anticheat system

well it could have some speed benefits etc with big playerbase, because so many checks on the background with many players doesnt seem very good idea, but again writing everything into cpp will take...
Forum: Scripting Help 20/04/2020, 10:31 PM
Replies: 4
Views: 167
Posted By l0gic
Re: Fishing on a boat

you can make very simple fishing system with boat.
just check if boat is near player and then player has possible to fish.
Forum: Scripting Help 19/04/2020, 11:59 PM
Replies: 3
Views: 162
Posted By l0gic
Re: Player Timing Out | 0.3 DL

its caused by crash causing object.
Forum: Scripting Help 19/04/2020, 11:52 PM
Replies: 7
Views: 213
Posted By l0gic
Re: Owned Vehicles DB

maybe this will help

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 699) { if(response) { showDealershipDialogCategory(playerid, listitem); } }...
Forum: Scripting Help 19/04/2020, 10:50 AM
Replies: 7
Views: 171
Posted By l0gic
Re: How is it possible ?

dont to those stupid checks
just create variable

new PlayerMoney[MAX_PLAYERS];
PlayerMoney[playerid] += 100; // for adding money to player
PlayerMoney[playerid] -= 100; // for taking money from...
Forum: Scripting Help 18/04/2020, 09:41 AM
Replies: 6
Views: 304
Posted By l0gic
Re: Problem fish

This version is more optimized and has more funcinality.

#define MAX_FISH_TYPES 4
#define MAX_FISH_WEIGHT 10.0

enum eFish{
Showing results 1 to 25 of 156


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

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