Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 237 online users. » 0 Member(s) | 235 Guest(s) Bing, Google
|
Latest Threads |
Error
Forum: Pawn Scripting
Last Post: -N0FeaR-
Yesterday, 12:05 PM
» Replies: 0
» Views: 13
|
GTA Multigames [ MultiMod...
Forum: Advertisements
Last Post: Undead
Yesterday, 07:37 AM
» Replies: 0
» Views: 17
|
Atlanta DeathMatch
Forum: Advertisements
Last Post: NixaSha
Yesterday, 01:19 AM
» Replies: 0
» Views: 19
|
will open.mp supports hig...
Forum: Questions and Suggestions
Last Post: NoxxeR
2025-04-23, 07:10 PM
» Replies: 2
» Views: 402
|
black screen
Forum: Support
Last Post: geppetog
2025-04-23, 05:34 PM
» Replies: 0
» Views: 32
|
Discord server - Ban Appe...
Forum: Chat
Last Post: joshcoconutard
2025-04-22, 06:42 PM
» Replies: 0
» Views: 48
|
I know Kalcor left the bu...
Forum: Questions and Suggestions
Last Post: NoxxeR
2025-04-22, 02:22 PM
» Replies: 4
» Views: 170
|
Sponsors and Donations
Forum: Questions and Suggestions
Last Post: NoxxeR
2025-04-20, 05:48 AM
» Replies: 0
» Views: 54
|
Best practices for conver...
Forum: Tech
Last Post: Mido
2025-04-19, 09:53 PM
» Replies: 1
» Views: 134
|
What got you into SA-MP a...
Forum: Chat
Last Post: alecnia
2025-04-17, 01:17 AM
» Replies: 1
» Views: 179
|
|
|
Auto Translate chat |
Posted by: billz - 2020-06-04, 01:25 PM - Forum: Filterscripts
- Replies (2)
|
 |
THE FILTERSCRIPT IS INCREDIBLY MESSY - BUT IT WAS MADE FOR TESTING PURPOSES TO EVEN SEE IF IT WOULD EVEN WORK
This basically contains a php file which gets the translation data from?mymemory.translated.net. It also replaces all the weird foreign characters with normal ones.
The example I've shared translates ES to EN and EN to ES. However, with the api you have no limitations of which languages you want to translate.
[Video: https://www.youtube.com/watch?v=Auf4zXZcqfc]
test.php
https://pastebin.com/raw/YsAQkH3q
example.pwn
https://pastebin.com/raw/Q4tZ1Zrg
like I said... VERY MESSY and stupid.
how to basically use the api:
PHP Code: #include <a_samp>
#include <a_http>
new lang1 = "en";
new lang2 = "it";
public OnPlayerText(playerid, text[])
{
new languageHttpString[512];
format(languageHttpString, sizeof languageHttpString, "localhost/test.php?text=%s&lang1=%s&lang2=%s", text, lang1, lang2);
strreplace(languageHttpString, " ", "");
HTTP(playerid, HTTP_GET, languageHttpString, "", "HttpConvert");
}
forward HttpConvert(playerid, response_code, data[]);
public HttpConvert(playerid, response_code, data[])
{
printf("%s", data[0]);
//printf("response code %d", response_code);
return 1;
}
strreplace by slice?https://pastebin.com/raw/x6Gea0Nq
|
|
|
A proper fix for attachments |
Posted by: BrunoBM16 - 2020-05-31, 05:55 PM - Forum: Libraries
- No Replies
|
 |
? Proper attachment fix
This is a proper fix for SA-MP's attachments. What this does, is hide attachments only for the player aiming with a sniper, heat seeker, rocket launcher or camera, unlike other fixes which hide the attachments for everyone.
? Usage
Pretty simply, just include it on your script and you can start using it. There is no functions in this library?which are required for you to use in your mode, this is plug 'n' play.
? Dependencies
- Pawn.RakNet:?https://github.com/urShadow/Pawn.RakNet
? Simply install to your project
PHP Code: sampctl package install BrunoBM16/samp-attachments-fix
|
|
|
Unsigned integers |
Posted by: EvilShadeZ - 2020-05-31, 12:57 PM - Forum: Questions and Suggestions
- Replies (4)
|
 |
I have had a few times where I've been running in the signed integer limit and thought it would be beneficial to have unsigned ones.
They could have their own tag just like floating-point variables have their 'Float' tag.
If this was implemented, functions such as format would have to have their own specifiers i.e '%u' and have their own math operator implementations probably.
|
|
|
Trading System [Stocks Type] - Meta Trade v4 Inspired - UNIQUE |
Posted by: Steven - 2020-05-30, 01:13 PM - Forum: Filterscripts
- Replies (4)
|
 |
Trading - Meta Trader v4 Type System
Well this is a Trading system in which you can trade, the rules are pretty simple!
1. Trade Types:
?- BUY: When you are buying, The POINT must go UP means the point must be greater than the point when you bought your trade.
- SELL: When you are selling, The POINT must go DOWN means the point must be less than the point when you bought.
2. Earning:
It will depend on how much difference is there in the Points, the current one and the one you bought at. Lets say the difference is 5, so the money you put on trade is multiplied and given to you. Same for the loss. If its -5 so ...
CMD: ?
Code: - /trade [Amount] [Buy / Sell]: to trade
COMMAND:trade
Params:
1. Money (Amount)
2. Buy / Sell (String)
- /tradechart - to show you the chart
- /stoptrade - to stop the trade process.
Well you can check for yourself and comment...
Link: https://github.com/jmrchelani/samp-trading
NOTE: The include is modified and added 2 new functions required for this FS. So make sure you have it.
SS:
|
|
|
[SOLVED] (warning) literal array/string passed to a non-const parameter |
Posted by: cosine - 2020-05-26, 04:26 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
As the title said,
Right now im using the new compiler and sampctl, and having this problem with warning PHP Code: (warning) literal array/string passed to a non-const parameter
There's so much line getting warning, and most of them is pointing to the line with function ShowPlayerDialog.
This is one of them.
PHP Code: showDialogResepsionis(playerid){
? ?return ShowPlayerDialog(playerid, DIALOG_RESPSIONIS_PEMERINTAH, DIALOG_STYLE_LIST, "Pilihan tindakan pengurusan data", "KTP", "Pilih", "Batal");
}
Note : I have update to YSI 5.x and here is my depedencies
PHP Code: "dependencies": [
"sampctl/samp-stdlib",
"Southclaws/samp-logger",
"pawn-lang/YSI-Includes",
"zeex/samp-plugin-crashdetect:v4.19.4",
"pawn-lang/[email protected]",
"samp-incognito/samp-streamer-plugin:v2.9.4",
"Southclaws/progress2",
"pBlueG/SA-MP-MySQL:R41-4",
"Southclaws/zcmd",
"maddinat0r/sscanf:v2.8.3",
"BigETI/pawn-memory:2.0.1"
],
|
|
|
Funciones de MySQL R41-4. |
Posted by: keloke - 2020-05-26, 08:34 AM - Forum: Programaci?n
- Replies (1)
|
 |
Hola a todos.
En la actualizaci?n de versi?n MySQL de una gamemode a la R41-4, me encuentro con el problema de que ha cambiado demasiado.
?Alguien me podr?a a ayudar, en indicarme cu?les son las funciones de las versiones anteriores en la nueva?
Ejemplo random
MYSQL R39 es bla bla bla, en MySQL 41-4 es bla bla bla
Gracias!
|
|
|
Steven's Dynamic House System [MySQL] |
Posted by: Steven - 2020-05-24, 03:16 PM - Forum: Filterscripts
- No Replies
|
 |
Well, I was lurking around with scripting and scripted a filterscript. It is a Dynamic House system. Hope you like it:
Features:
- Totally Dynamic MYSQL R41
- Drugs storage
- Money storage
-- I did this in one day btw, so any errors please tell me, i didnt find any bug btw.
CMDS:
- /ahouse - for admin to create or edit house
- /house for? the owner
I havent took screenshots and its just simple so no ss:
AND I know ppl will say this is same thing others have posted so yeah maybe but this is basic for someone to learn or Maybe I myself will learn by posting here.
Criticism is highly appreciated.
CODE: (Pastenbin is dead in Pakistan)
https://controlc.com/c80b761c
|
|
|
[AYUDA] Necesito adaptar esto |
Posted by: BIOS - 2020-05-24, 03:18 AM - Forum: Programaci?n
- Replies (7)
|
 |
Buenas, Resulta que quiero poner este objeto en mi veh?culo de trabajo pero no se como hacerlo, si me mostrar?an un ejemplo se los agradecer?a.
El objeto:
[c?digo] nuevo myobject = CreateObject (19433,0,0, -1000,0,0,0,100);
AttachObjectToVehicle (myobject, GetPlayerVehicleID (playerid), -0.000000, -1.875000,0.375000,0.000000,121.499954, -91.799980); [/ code]
El veh?culo en el cual quiero montar el objeto:
[c?digo] nuevo San_Andreas_Vehicles [] [San_Andreas_Vehicles_Info] =
{
// taxi ls
{VEHICLE_TYPE_WORK, WORK_TAXI, 0, 420, 1792.5676, -1868.2953, 13.2887, 0.0000, 6, 1, 0},
}[/c?digo]
|
|
|
|