SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 168
Search took 0.01 seconds.
Search: Posts Made By: ShadowMortar
Forum: Scripting Help 04/04/2020, 09:03 AM
Replies: 4
Views: 70
Posted By ShadowMortar
Re: Iterator vehicles

Here is a tutorial
> https://forum.sa-mp.com/showthread.php?t=570937
Forum: Scripting Help 04/04/2020, 09:01 AM
Replies: 3
Views: 59
Posted By ShadowMortar
Re: Dialog

new PlayerSelectedPlayer[ MAX_PLAYERS ] [ MAX_PLAYERS ];
CMD:listplayers( playerid ) {
new tmp[ 50 ], str[ 300 ], name[ MAX_PLAYER_NAME+1 ], count;
foreach( new i: Player ) { //Loop through all...
Forum: Scripting Help 04/04/2020, 08:49 AM
Replies: 4
Views: 70
Posted By ShadowMortar
Re: Iterator vehicles

Instead of normal for new loops, use foreach.
So use foreach to loop through the iterator and instead of "Iter_Remove", use "Iter_SafeRemove", either way there will be conflicts.
Forum: Scripting Help 03/04/2020, 09:32 PM
Replies: 5
Views: 68
Posted By ShadowMortar
Re: PawnPlus

We can't know if you don't provide any code... We aren't magicians..
Forum: Scripting Help 03/04/2020, 08:43 PM
Replies: 5
Views: 68
Posted By ShadowMortar
Re: PawnPlus

I am guessing that he is trying to say that after he uses tasks from PawnPlus, his server crashes...
However, I'm not experienced in PawnPlus, I know what I would do first, check for warnings on...
Forum: Scripting Help 03/04/2020, 08:38 PM
Replies: 1
Views: 77
Posted By ShadowMortar
Re: how to optimize?

UpdatePlayerData(playerid, reason)
{
if (Player[playerid][IsLoggedIn] == false) return 0;

if (reason == 1)
{
GetPlayerPos(playerid, Player[playerid][X_Pos],...
Forum: Scripting Help 03/04/2020, 01:08 PM
Replies: 2
Views: 64
Posted By ShadowMortar
Re: Problem with mysql inline

Thanks for changing my code completely, but my issue is not that the dynamic entrances aren't loading... Indeed, they do load... But sometimes( NOT ALWAYS ) this warning prints:

[debug] #1...
Forum: Scripting Help 03/04/2020, 12:20 PM
Replies: 2
Views: 64
Posted By ShadowMortar
Problem with mysql inline

Hello, I am having this warning:

[debug] #1 000651b4 in public __MysqlInlineProcessCallback (params_format[]=@00d
e0cf4 "", cb_data[E_CALLBACK_DATA:5]=@00de0ce0, cb_data_size=5) at D:\Downstride...
Forum: Filterscripts 01/04/2020, 12:35 PM
Replies: 2
Views: 128
Posted By ShadowMortar
Re: [FilterScripts pomoc-help]

Wrong section, however:

//================================================== ======================
#include <a_samp>

//DropGun by PeteShag a.k.a Souvlaki
// This is a comment.
// ^^lol a...
Forum: Scripting Help 01/04/2020, 12:29 PM
Replies: 0
Views: 57
Posted By ShadowMortar
Problem with PawnPlus

Hey, I really want to learn PawnPlus, but from day to day I face issues ??? :rolleyes:...
I will provide you the code and could you please tell me what am I doing wrong?

new String:tempQuery,...
Forum: Scripting Help 28/03/2020, 06:09 PM
Replies: 16
Views: 178
Posted By ShadowMortar
Re: MySQL R39-6 reading data from a row

I am not sure if there's any 'way' to make the saving system using > SELECT <.
Are you maybe looking for this:

format( query, sizeof( query ), "SELECT * FROM `TABLE` WHERE `ID` = '%d'", SQLID );...
Forum: Scripting Help 27/03/2020, 03:15 PM
Replies: 6
Views: 157
Posted By ShadowMortar
Re: how to define the killerid/issuerid here

public OnPlayerDeath( playerid, killerid reason ) { // Callback that gets executed after player has been killed/died
if(killerid != INVALID_PLAYER_ID) { // If the player was not killed by...
Forum: Scripting Help 27/03/2020, 01:17 PM
Replies: 4
Views: 84
Posted By ShadowMortar
Re: error 029 invalid expression

I would use CreateDynamic3DTextLabel, so you do not have to use Attach3dTextLabelToPlayer.
So basically:

new Text3D:label[ MAX_PLAYERS ]; //Define dynamic 3D text label

label[ playerid ] =...
Forum: Scripting Help 27/03/2020, 09:13 AM
Replies: 1
Views: 55
Posted By ShadowMortar
Re: help with invalid subscript

HouseInfo is the name of enumator, that's why you are getting an error, ex below:


#define MAX_HOUSES ( 1000 )
enum HouseInfo {
Houseid,
Owned,
Owner[ MAX_PLAYER_NAME+1 ]
};
new hInfo[...
Forum: Screenshots and Videos 27/03/2020, 09:00 AM
Replies: 7
Views: 492
Posted By ShadowMortar
Re: Admin Panel [ TEXTDRAWS ]

I understand this language, and if you look closer, you would see on top "Igraci" which means "Players", then "Admini" which means "Admins", then "Vipovi" which means "Vips", then "Promoteri" which...
Forum: Scripting Help 26/03/2020, 07:51 PM
Replies: 18
Views: 207
Posted By ShadowMortar
Re: Faction System

INT stands for integer ( 0, 1, 2, 3...)
FLOAT is approximate number data type ( 5.3, 99.19, 300.20... )
VARCHAR is character data which can contain numbers, letters and special characters(...
Forum: Scripting Help 26/03/2020, 07:18 PM
Replies: 5
Views: 107
Posted By ShadowMortar
Re: lock /unlock

Sorry, I am not santa claus, I literally made an example with explanation, with the example make what you need :D
Forum: Scripting Help 26/03/2020, 07:14 PM
Replies: 18
Views: 207
Posted By ShadowMortar
Re: Faction System

Run a simple query through phpmyadmin
CREATE TABLE IF NOT EXISTS `organizacije`( `ID` INT(10) NOT NULL UNIQUE, `tip` INT(10) NOT NULL, `int` INT(10), `rank1` VARCHAR(40) NOT NULL, `rank2`...
Forum: Scripting Help 26/03/2020, 10:58 AM
Replies: 4
Views: 107
Posted By ShadowMortar
Re: Tip for fast convert GAMEMODE INI to SQL

Yep, you can try SQLite.
> https://forum.sa-mp.com/showthread.php?t=477025
The download link available:
> https://www.solidfiles.com/v/82M3BqQ8k7GZB
Forum: Scripting Help 26/03/2020, 10:52 AM
Replies: 6
Views: 166
Posted By ShadowMortar
Re: Why this timers doesn't work?

sbs_timer[playerid] = SetTimerEx("sbsTimer", 1200000, false, "d", playerid);
The timer should be called only once in 20 minutes, as you've set the repeating parameter to false....
Forum: Scripting Help 26/03/2020, 10:47 AM
Replies: 5
Views: 92
Posted By ShadowMortar
Re: Anti cheat ?

You can convert it to per player timer if necessarily needed.
Forum: Scripting Help 26/03/2020, 10:43 AM
Replies: 5
Views: 107
Posted By ShadowMortar
Re: lock /unlock

new bool:VehicleLocked[ MAX_VEHICLES ] = { false, ... }; // Variable to check either the vehicle is locked or not

CMD:lockvehicle( playerid ) { // Command which locks the vehicle
new VehicleID =...
Forum: Scripting Help 26/03/2020, 10:26 AM
Replies: 7
Views: 117
Posted By ShadowMortar
Re: Help Comand dialog

What I would do to make my life easier, I will just leave an example, I won't completely convert the system for you.

new tmp[ 200 ], str[ 2048 ];
format( tmp, sizeof( tmp ), "| Nivel:{00CC00}...
Forum: Scripting Help 26/03/2020, 10:19 AM
Replies: 2
Views: 57
Posted By ShadowMortar
Re: MySQL problem

I'm not sure which version of MySQL is required for mysql_function_query. If you don't feel like updating your script, try each with each MySQL version one by one.
>...
Forum: Scripting Help 26/03/2020, 10:14 AM
Replies: 2
Views: 35
Posted By ShadowMortar
Re: dialog response executed even if isn't called

What I've noticed, you're showing the same dialog again, but not returing it, and since you are not returning, the code after "if" gets executed.

case DIALOG_BYEAR:
{
...
Showing results 1 to 25 of 168

 

All times are GMT. The time now is 08:17 PM.


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