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: SyS
Forum: Tutorials 17/02/2019, 03:41 PM
Replies: 7
Views: 498
Posted By SyS
Re: Returning strings and arrays

Really informative.I always wondered how could the local address be valid after the called function ends it's execution.This article cleared it for me.
Forum: Scripting Help 05/02/2019, 02:34 PM
Replies: 2
Views: 72
Posted By SyS
Re: warning 202: number of arguments does not match definition

Check the parameters of SendClientMessage.The functions accepts only 3 parameters.
Refer: https://wiki.sa-mp.com/wiki/SendClientMessage
Forum: Plugin Development 26/01/2019, 07:17 AM
Replies: 9
Views: 1,217
Posted By SyS
Re: Telegram Connector

It's true.But still forwarding message to @get_id_bot is easier way and idk why it didn't work for you.
Forum: Plugin Development 26/01/2019, 02:18 AM
Replies: 9
Views: 1,217
Posted By SyS
Re: Telegram Connector

There are couple of tricks to get chat id of a private channel.Here's one you can do in pawn itself.

Add your bot as admin in your channel.
Make channel public and set a user name (username is...
Forum: Scripting Help 23/01/2019, 12:39 PM
Replies: 6
Views: 150
Posted By SyS
Re: Function not calling

You are performing INSERT query no result is returned
So basically your function is calling but it get stopped at if(!num_rows)return 1;

public OnDoorsLoad()
{
new...
Forum: Scripting Help 23/01/2019, 11:44 AM
Replies: 6
Views: 150
Posted By SyS
Re: Function not calling

what's mysql_function_query (Show the definition)? Also show OnDoorsLoad
Forum: Scripting Help 23/01/2019, 11:25 AM
Replies: 9
Views: 181
Posted By SyS
Re: Area.

First check if OnPlayerGiveDamage is been called in this script. It won't won't be called if one of your filterscripts returns 1 in OnPlayerGiveDamage
Secondly you don't have to check if the player...
Forum: Scripting Help 22/01/2019, 06:42 AM
Replies: 4,621
Views: 569,127
Posted By SyS
Re: Little coding questions - For general minor queries 5

If it's a single constant there is no difference.But if it was an expression for example

#define EIGHT_PLUS_TWO 8+2

and

#define EIGHT_PLUS_TWO (8+2)

are different.
Forum: Plugin Development 22/01/2019, 06:08 AM
Replies: 9
Views: 1,217
Posted By SyS
Re: Telegram Connector

New version (v0.1.0)
https://github.com/Sreyas-Sreelal/tgconnector/releases/tag/0.1.0

Channel updates are now serialized correctly.
New callback OnTGChannelPost has been added.
Forum: Plugin Development 21/01/2019, 09:34 AM
Replies: 9
Views: 1,217
Posted By SyS
Telegram Connector

TgConnector

https://travis-ci.org/Sreyas-Sreelal/tgconnector.svg?branch=master (https://travis-ci.org/Sreyas-Sreelal/tgconnector)...
Forum: Plugin Development 21/01/2019, 01:36 AM
Replies: 21
Views: 2,118
Posted By SyS
Forum: Scripting Help 13/01/2019, 03:32 PM
Replies: 4
Views: 95
Posted By SyS
Re: Refuel command.

I believe

if(IsPlayerInRangeOfPoint(playerid, 5.0, 572.5297+11400,-2759.7271-10000,13.9872) && IsPlayerInRangeOfPoint(playerid, 5.0, 12368.1885,-11937.6396,5.5338) &&...
Forum: Plugin Development 13/01/2019, 05:31 AM
Replies: 36
[Plugin] PawnScraper
Views: 4,433
Posted By SyS
Re: PawnScraper

New Version (v0.2.0)
https://github.com/Sreyas-Sreelal/pawn-scraper/releases/tag/0.2.0

Changes

Added CreateHeader,DeleteHeader natives
Changed function signatures of HttpGet and...
Forum: Scripting Help 03/01/2019, 02:00 AM
Replies: 4
Views: 147
Posted By SyS
Re: Please! need some help

Ahh I misread question, my bad.
Forum: Scripting Help 02/01/2019, 09:32 AM
Replies: 4
Views: 147
Posted By SyS
Re: Please! need some help

strcmp has a parameter to ignore case

strcmp(const string1[], const string2[], bool:ignorecase=false, length=cellmax)

set it to true..
for example

if(!strcmp(stringvar,"test",true)){

}
Forum: Scripting Help 02/01/2019, 01:49 AM
Replies: 1
Views: 80
Posted By SyS
Re: array index out of bounds

Check the declaration of arrays.The array index that you accessing might be larger than the highest valid entry of the array.
Also in the function UpdateThePutis you are using variable i as index...
Forum: Scripting Help 30/12/2018, 03:41 AM
Replies: 1
Views: 89
Posted By SyS
Re: [Help] Giving error

First of all that code is unreadable.Secondly org variable is not an array but you trying to use subscript operators([ and ] ) with it.
Forum: Scripting Help 28/12/2018, 07:01 AM
Replies: 6
Views: 163
Posted By SyS
Re: How do I SCM when this timer hits 0?

Since you are going to use SetTimerEx and you are not showing rest of time to wait,you don't have to use gettime,instead use an array say CarRepairLock


//global array or just add as an enum...
Forum: Scripting Help 28/12/2018, 05:16 AM
Replies: 6
Views: 163
Posted By SyS
Re: How do I SCM when this timer hits 0?

You have to set a timer that will call the public function OnPlayerRepairTimerZero after the desired time interval.

https://wiki.sa-mp.com/wiki/SetTimerEx
Forum: Scripting Help 27/12/2018, 11:21 AM
Replies: 1
Views: 70
Posted By SyS
Re: [IMPORTANT PROB] error 033: array must be indexed (variable "eText")

An array as a whole cannot be used in a expression.You must indicate the required element of the array by specifying it's index.
Forum: Scripting Help 27/12/2018, 11:15 AM
Replies: 5
Views: 150
Posted By SyS
Re: Server Problem - OnPlayerDeath

You should check if killerid is valid or not before using it as an index.When a player kills himself the callback is called with INVALID_PLAYER_ID value for killerid parameter.

Refer:...
Forum: Scripting Help 27/12/2018, 08:19 AM
Replies: 4
Views: 115
Posted By SyS
Re: HELP ME

[READ BEFORE POSTING]Asking Good Questions (https://forum.sa-mp.com/showthread.php?t=574725)
Forum: Includes 26/12/2018, 10:19 AM
Replies: 46
Views: 3,257
Posted By SyS
Forum: Scripting Help 24/12/2018, 02:45 PM
Replies: 2
Views: 92
Posted By SyS
Re: SQLite question

If a column has same name as a reserved keyword in SQL or contains a space, you need to quote it using back ticks ( ` ).

%q escapes special characters in order to avoid SQL injection ...
Forum: Screenshots and Videos 24/12/2018, 02:33 PM
Replies: 4
Views: 234
Posted By SyS
Showing results 1 to 25 of 500

 

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


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