SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: SyS
Forum: Scripting Help 29/10/2019, 06:38 PM
Replies: 1
Views: 73
Posted By SyS
Re: Mysql Help

You should provode more details in your question
Forum: Scripting Help 29/10/2019, 06:33 PM
Replies: 14
Views: 301
Posted By SyS
Re: Checking if no one's player-specific variable is equal to value

Just push the lotto numbers into an array with playerid as index .Get the random lotto number from this array and announce the corresponding playerid as the winner.
Or use y_iterate
Forum: Plugin Development 21/07/2019, 03:34 AM
Replies: 17
Views: 4,237
Posted By SyS
Re: Telegram Connector

You may have different version of openssl or different architecture. (you need 32 bit libs not 64)
Try using arch linux build. It's compiled against openssl.11.If that didn't work try building the...
Forum: Scripting Help 17/07/2019, 01:49 PM
Replies: 8
Views: 177
Posted By SyS
Re: STOCK Problem!

You should provide more details.What you were expecting to happen? What you getting now?And properly ident and enclose the code in [php] or [code] tags so that others can read it.
Forum: Scripting Help 14/07/2019, 06:36 AM
Replies: 1
Views: 128
Posted By SyS
Re: scripts error problems

You are using old version of y_iterate that does not have vehicle iterator, update it to solve the issue.

https://github.com/pawn-lang/YSI-Includes
Forum: Plugin Development 14/05/2019, 06:14 AM
Replies: 17
Views: 4,237
Posted By SyS
Re: Telegram Connector

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

updated to latest sdk
added optional parameter thread_limit for natives TGConnect and TGConnectFromEnv
Forum: Scripting Help 09/05/2019, 04:31 PM
Replies: 1
Views: 127
Posted By SyS
Re: array index out of bounds

your last constant (lobbyPassword) in enum is 0 so when you declare the array LobbyInfo the upper block of 2nd index will be 1.Or in other words, the sizeof lobby enum is 1 as sizeof any enumerator...
Forum: Scripting Help 19/04/2019, 05:19 AM
Replies: 2
Views: 120
Posted By SyS
Re: Question

Show us what all you tried
Forum: Scripting Help 14/04/2019, 03:49 AM
Replies: 6
Views: 297
Posted By SyS
Re: string into array

I'm not sure what you trying to achieve.. But my best guess would be
Are you trying to convert hexadecimal value in string to integer?
Forum: Includes 11/04/2019, 04:41 PM
Replies: 10
Views: 1,838
Posted By SyS
Forum: Scripting Help 05/02/2019, 03:34 PM
Replies: 2
Views: 110
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, 08:17 AM
Replies: 17
Views: 4,237
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, 03:18 AM
Replies: 17
Views: 4,237
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, 01:39 PM
Replies: 6
Views: 221
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, 12:44 PM
Replies: 6
Views: 221
Posted By SyS
Re: Function not calling

what's mysql_function_query (Show the definition)? Also show OnDoorsLoad
Forum: Scripting Help 22/01/2019, 07:42 AM
Replies: 4,127
Views: 601,360
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, 07:08 AM
Replies: 17
Views: 4,237
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, 10:34 AM
Replies: 17
Views: 4,237
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, 02:36 AM
Replies: 23
Views: 5,325
Posted By SyS
Forum: Scripting Help 13/01/2019, 04:32 PM
Replies: 4
Views: 156
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, 06:31 AM
Replies: 34
[Plugin] PawnScraper
Views: 5,348
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 02/01/2019, 02:49 AM
Replies: 1
Views: 125
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, 04:41 AM
Replies: 1
Views: 136
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, 08:01 AM
Replies: 6
Views: 225
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, 06:16 AM
Replies: 6
Views: 225
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
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 11:35 PM.


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