SA-MP Forums

Go Back   SA-MP Forums > Search Forums

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

OnDialogResponse
"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,449
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: 716
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: 90
Posted By l0gic
Re: SAMPCTL

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: 735
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: 96
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: 101
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: 609
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: 956
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.

<html>

<head>
<style>
.skin-box {
box-sizing: border-box;
...
Forum: Tools and Files 10/05/2020, 09:48 PM
Replies: 4
Views: 956
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: 192
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: 102
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: 192
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: 297
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: 126
Posted By l0gic
Re: Waste string usage or fine?

this is bad
static const aGender[3][10] = {"Edit", "Male", "Female"};
aGender[Player[playerid][Gender]]
would be much better and also easier.
Forum: Scripting Help 25/04/2020, 12:38 PM
Replies: 1
Views: 83
Posted By l0gic
Re: ! in front of string

https://forum.sa-mp.com/showthread.php?t=481257
Forum: Scripting Help 23/04/2020, 07:40 PM
Replies: 2
Views: 90
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: 202
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: 254
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: 337,459
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: 162
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: 147
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: 208
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: 169
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: 298
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{
Name[20],
Float:Weight,
Chance,
Price
Showing results 1 to 25 of 157

 

All times are GMT. The time now is 07:16 PM.


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