Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,696
» Latest member: vdvdvdvd541
» Forum threads: 2,354
» Forum posts: 12,301

Full Statistics

Online Users
There are currently 202 online users.
» 0 Member(s) | 197 Guest(s)
Bing, Yandex, Applebot, Baidu, Google

Latest Threads
[Include] OpenGate (Abrir...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
Yesterday, 06:49 PM
» Replies: 0
» Views: 23
OpenGate (Open Proximity ...
Forum: Libraries
Last Post: Crazy_ArKzX
Yesterday, 06:46 PM
» Replies: 0
» Views: 26
LS City Hall
Forum: Maps
Last Post: cosminupgaming
2025-11-12, 04:22 PM
» Replies: 3
» Views: 2,644
Crime Base
Forum: Maps
Last Post: cosminupgaming
2025-11-12, 04:19 PM
» Replies: 2
» Views: 1,244
GTA SA-MP Scripting: Issu...
Forum: General Discussions
Last Post: williamrhein
2025-11-12, 10:16 AM
» Replies: 0
» Views: 31
is it worth creating a se...
Forum: General Discussions
Last Post: cosminupgaming
2025-11-11, 05:30 PM
» Replies: 13
» Views: 18,303
Looking for an English De...
Forum: General Discussions
Last Post: cosminupgaming
2025-11-11, 05:21 PM
» Replies: 2
» Views: 2,802
Awakeninga an old server.
Forum: Support
Last Post: drwnrbbt
2025-11-11, 02:26 PM
» Replies: 0
» Views: 41
Starting a RP Server
Forum: General Discussions
Last Post: JakeFalcone
2025-11-11, 01:58 AM
» Replies: 0
» Views: 43
Wanting to Start a RP Ser...
Forum: Chat
Last Post: JakeFalcone
2025-11-11, 01:56 AM
» Replies: 0
» Views: 52

 
  Loop skipping (Creating only odd numbers)
Posted by: Cherry. - 2021-10-06, 02:41 AM - Forum: Support - Replies (3)

Hey.



I have a command of creating houses.

The loop is creating houses just like 1,3,5,7,9,11..etc.



I tried to investigate the problem in the loop and I can't see anything wrong.

Somebody?knows? Here's the code..







Code:
COMMAND:housecreate(playerid, params[])

{

new houseid, price, Float:X, Float:Y, Float:Z, UID, text[128];

if(sscanf(params,"ii",houseid, price)) return usage(playerid, "USAGE: /HouseCreate [Class] [Value]");

if(houseid < 1 || houseid > 4) return error(playerid, "Invalid house ID.");

new found = 0;

for(new i = 1; i < MAX_HOUSES; i)

{

if(HouseInfo[i][hID] == 0 && found == 0)

{

? ? found;

? ? UID = i;

format(text, sizeof(text), "House id is %d", UID);

SendClientMessage(playerid, -1, text);

}

}

new count = 0;

for(new i = 0; i < sizeof(HouseCoordinates); i)

{

? ? if(count == 0)

? ? {

? ? ? ? if(HouseCoordinates[i][Class] == houseid)

? ? ? ? {

? ? ? ? count;

HouseInfo[UID][hXi] = HouseCoordinates[i][mbX];

HouseInfo[UID][hYi] = HouseCoordinates[i][mbY];

HouseInfo[UID][hZi] = HouseCoordinates[i][mbZ];

HouseInfo[UID][hIntIn] = HouseCoordinates[i][HouseInt];

}

}

}

HouseInfo[UID][hID] = UID;

HouseInfo[UID][hValue] = price;

HouseInfo[UID][hClass] = houseid;

HouseInfo[UID][hIntOut] = GetPlayerInterior(playerid);

HouseInfo[UID][hVwOut] = GetPlayerVirtualWorld(playerid);

HouseInfo[UID][hVwIn] = MAX_INTS  UID;

GetPlayerPos(playerid, X, Y, Z);

HouseInfo[UID][hXo] = X;

HouseInfo[UID][hYo] = Y;

HouseInfo[UID][hZo] = Z;

new query[516], owner[25];

format(owner, sizeof(owner), "None");

mysql_format(handlesql, query, sizeof(query),"INSERT INTO `houses`(`ID`, `Xo`, `Yo`, `Zo`, `Xi`, `Yi`, `Zi`, `IntOut`, `IntIn`, `VwOut`, `Owner`, `Value`) VALUES (%d, %f, %f, %f, %f, %f, %f, %d, %d, %d, '%e', %d)",

UID, X, Y, Z, HouseInfo[UID][hXi], HouseInfo[UID][hYi], HouseInfo[UID][hZi], HouseInfo[UID][hIntOut], HouseInfo[UID][hIntIn], HouseInfo[UID][hVwOut],

owner, price);

mysql_pquery(handlesql, query);

HouseInfo[UID][hIcon] = CreateDynamicCP(HouseInfo[UID][hXo], HouseInfo[UID][hYo], HouseInfo[UID][hZo], 1.5, HouseInfo[UID][hVwOut], -1, -1, 20.0);

HouseInfo[UID][hIconi] = CreateDynamicCP(HouseInfo[UID][hXi], HouseInfo[UID][hYi], HouseInfo[UID][hZi], 1.5, HouseInfo[UID][hVwIn], -1, -1, 20.0);

UpdateHouseText(UID);

Iter_Add(HouseIterator, UID);

return 1;

}


  Write plugins
Posted by: Paulthas01 - 2021-10-02, 01:28 PM - Forum: Support - No Replies

Existe um post local falando sobre como escrever plug-ins para o samp?


  Project
Posted by: offr0ad - 2021-10-02, 12:32 PM - Forum: General Discussions - Replies (2)

How far is open.mp from launch?

Currently it seems like there isn't any userbase at all and even the biggest names in samp scene have closed their servers.


  open.RP - open-sourced RolePlay GameMode
Posted by: Logan - 2021-09-29, 03:34 PM - Forum: Gamemodes - No Replies

open.RP?GitHub repository



Gamemode is 10% translated from ex-Yu(Croatian, Serbian, Bosnian), database is normalized with Codd standards, statements are completely rewritten(there are few old mysql_query left), it uses sampctl, and it has only 2 legacy libraries left.?



It consists of modules, the structure is very well palpable from main.pwn



It has many unique systems such as inactive account checkup(checks if user has less than (5 or?10, don't remember exactly) hours of play per month, or if user hasn't logged in for a month, and it strips him from houses, apartments, businesses, and complexes.?



Also, it has 2 basketball courts with basketball feature, it counts 2 or 3 points per score, depending on the distance you shot from.



Pretty much everything is very dynamic: houses, garages, businesses, vehicles; and admin commands are flawlessly developed.?



Flaws: you have to translate the gamemode to English, you need to implement anticheat(I recommend something like nexAC, that you can just use as a sampctl package and callback on your own will)



It also has amazing feature of EXP's that I personally developed: you get to give 1 EXP point to other player after 2 hours of gameplay. The other player had to receive at least one payday to be able to receive EXP point. On regular play mode, you get to give just one per day, if Happy Hours are activated: every 2 hours. You can buy various perks InGame with EXP such as: level up, unlimited furniture slots and very rich VIP packages.



It has a ton of useful systems: Admin System and all systems related to it(ban, ipban, accounts to IP, etc), Vehicle System(Buying a vehicle in car ownership, dynamic amount of slots for weapons & drugs, depending on the model of the vehicle), GPS, Advertisement System, Business & House?Furniture(both interior and exterior) system,?everything and beyond for law enforcement factions, very good drug system, weapons system and MANY MANY more of it.?



Some of the videos from the older version of gamemode?



I don't have time anymore to contribute to the project, and it would be a darn shame for such a legendary gamemode to rot or gets forgotten. If you're interesting on taking the project over, please don't hesitate to contact me on PM.


  Can't see objects from distance.
Posted by: Cherry. - 2021-09-22, 01:46 AM - Forum: Support - Replies (2)

Hello.



I have an issue with my server, Players can't see objects from distance, they must be SO close to them.

Tried the entire versions of streamer and still the same issue...



What can be the issue except of streamer?


Information Migracija foruma
Posted by: daddy. - 2021-09-19, 07:41 PM - Forum: Ex-Yu - Replies (9)

Izgleda da je migracija foruma uspje?no izvr?ena.



Javite nam?ukoliko naidete na bilo koji problem.



(prevedena poruka od Southclaws-a)


  How to compile a GM on linux?
Posted by: hiwyn - 2021-09-18, 03:56 PM - Forum: Support - Replies (4)

How to compile a GM on linux?

Is it possible to do on VSCODE?


  help pls
Posted by: HelloItsTGT - 2021-08-07, 07:29 AM - Forum: Support - No Replies

alright so im having problems with getting samp running and all that

and i dont know what to do im new to doing this type of stuff pls help my discord is smeesh#3066


  motorcycle tire does not repair
Posted by: Jhames - 2021-08-06, 12:28 PM - Forum: Support - No Replies

Hello everybody, How are you??

I have two commands in which one punctures the tire of the vehicle in which the player is close and the other does the repair, the commands are working perfectly in all vehicles, except for the motorcycles. can anybody help me ?



Code: https://pastebin.com/ppUnTEMY


  [HELP] - motorcycle tire does not repair
Posted by: Jhames - 2021-08-06, 12:59 AM - Forum: Pawn Scripting - No Replies

Hello everybody, How are you?



I have two commands in which one punctures the tire of the vehicle in which the player is close and the other does the repair, the commands are working perfectly in all vehicles, except for the motorcycles. can anybody help me ?



Code:?https://pastebin.com/ppUnTEMY