| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 8,075
» Latest member: geuleo
» Forum threads: 2,435
» Forum posts: 12,452
Full Statistics
|
| Online Users |
There are currently 196 online users. » 0 Member(s) | 192 Guest(s) Bing, Applebot, Google, Yandex
|
|
|
| Which one is better? |
|
Posted by: Zow - 2022-01-26, 09:29 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
PHP Code: #define SendErrorMessage(%0, %1) SendClientMessage(%0, COLOR_RED, "[*]{FFFFFF} "%1)
PHP Code: SendErrorMessage(playerid, const msg[]) {
? ? new
? ? ? ? string[145];
? ? format(string, sizeof(string), "[*]"C_WHITE" %s", msg);
? ? return SendClientMessage(playerid, COLOR_RED, string);
}
I just want to know how different
|
|
|
|
| MySQL Query |
|
Posted by: Slade - 2022-01-24, 04:55 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
So basically i've done so many scripts using MySQL, but never had this problem and simply not finding way to solve it because i don't even understand why it happens.
I will explain here, I don't really need to post code since my other scripts with literally same code works great, I also tried to google it, but no luck.
So this is case: I've switched House system on old gamemode from Dini to MySQL. I've switched data by loading with Dini, saving with MySQL. Then i created loading. First I have used TQuery with callback, and got this errors:
Code: [01/24/22 17:50:46] [plugins/mysql] cache_get_value_name_float: no active cache (C:\Users\llc\Documents\GM\gamemodes\YUBGM.pwn:24580)
[01/24/22 17:50:46] [plugins/mysql] cache_get_value_name_float: no active cache (C:\Users\llc\Documents\GM\gamemodes\YUBGM.pwn:24581)
[01/24/22 17:50:46] [plugins/mysql] cache_get_value_name_float: no active cache (C:\Users\llc\Documents\GM\gamemodes\YUBGM.pwn:24582)
This happens for every row in every iteration of cache num rows, table has around 1100 houses.
I've done it also with mysql_query and cache variable, same error appears.
Updated MySQL to latest version.
Changed variable names from?cache_get_value_name_float to?cache_get_value_float but still the same.
Important thing is: I printed second row after every iteration and cache function, and first 2 rows are getting loaded, and all others are not.
So yes i got 2 first selected rows loaded, others are literally ignored in loop.
Any possible solutions ?
|
|
|
|
Desolation Roleplay |
|
Posted by: Awide - 2022-01-21, 05:11 PM - Forum: Gamemodes
- Replies (1)
|
 |
Written 99.5% by me entirely from scratch. Put countless days and?nights into this gamemode.
Featuring NPC zombies, bandits, looting, factions, cities, inventory, item system, housing and businesses. I made it work on both Linux and Windows servers.
I am not willing to provide support nor answer questions. If you need the database (otherwise you cannot use the inventory and looting) PM me (DC: Awide#0896) and I will?consider your offer.
Otherwise, enjoy!
https://github.com/Awide/Desolation-SAMP
|
|
|
|
| Problem with plugin development |
|
Posted by: Davee52 - 2022-01-18, 11:41 AM - Forum: Programming
- No Replies
|
 |
Hy everybody! I followed the instructions in the Plugin Development topic on the site, and I get errors as I include the invoke.hxx . I downloaded it on the link, added the file to the project, and included it in the code, but it gives me these errors:
https://imgur.com/a/Yamr46K
Thank you if you could lead me to success.
|
|
|
|
| Open.mp and Linux support |
|
Posted by: NoxxeR - 2022-01-01, 09:34 PM - Forum: Questions and Suggestions
- Replies (2)
|
 |
As many of you guys know, Microsoft is getting bloatware and bad programs, some really wanna migrate over to the Linux side right away. But you need your good games with you.
Will Open.mp support Linux as well? Like Linux Mint, Debian and Ubuntu? ;)
|
|
|
|
| Add days to current time |
|
Posted by: Torque - 2021-12-28, 06:23 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
I'm saving the last login date/time using Now() in MySQL which sets a string such as?2021-12-28 12:41:53
I want to check if 30 days have passed since the last login. How can I do this in the script? I imagine I would have to use a different method of saving the date in order to check this.
|
|
|
|
| SA-MP 0.3DL Huge Map RPG/TDM Anarchy World |
|
Posted by: TEKNOT - 2021-12-26, 02:15 PM - Forum: Gamemodes
- Replies (2)
|
 |
Hello,
I am publishing this gamemode before i forget about it,
This is a project I have been working on for years before SA-MP died, a huge custom map with sa-mp objects and texture features.
The map contains 2 main islands connected by roads, the islands are connected to San Andreas (San Fierro) by a long bridge, However due to the gamemode (lore) going to San Andreas will make you lose health due to the radiation.
There are 4 biomes/areas Arvyland/Sping Valley/Mudland/Deadland all have different (colors), each area has one main city with the biggest city being the one on the first island, the islands are supposed to be man-made this is why they look "square-ish".
This is using Incognito's streamer, the max limit of 2000 objects in samp 0.3DL is never reached, The gamemode also works on 0.3.7 (without the skins) but the draw distance might look worse due to the lower limit of 1000 max objects on samp 0.3.7.
This was supposed to be somekind of TDM/RPG with the monsters and military faction aimed at DM and the civilian factions to quests/wealth/(storyline)/farming/mining.
The server contains alot of customs skins for the monster factions and also animal skins for the farming feature which I didn't code.
Feel free to use the map or gamemode as you like, I am publishing it because I lost interest overtime.
In case anyone wants to continue in the same lore here is the prologue:
"It is the year 1995, A terrorist attack carried out by a group called 'New Dawn' on the main nuclear plant in Las Venturas
bestowed chaos and uncertainty upon San Andreas as a whole.
The whole country is now submerged under the biggest cloud of radiation since Chernobyl and has
now become unhospitable, for merely venturing within the now deserted streets of San Andreas is equal to charging head-on into a certain death.
The president of the United States and the few survivors who managed to endure and strive the nuclear holocaust have
been evacuated to an unknown man-made archipelago controlled by the army: the Islands of Eagleland, which remained
virtually untouched by the incident. However, the dim radiation contaminating the air and the waters
of the Eagleland archipelago has taken its toll upon fauna and mankind alike: mutated creatures -- maybe animals and even people -- have been
sighted inland, and they're mostly aggressive and dangerous. The government is already taking action against these anomalies in order
to restore what little peace is left for the inhabitants of the archipelago."
Screens:
![[Image: z6xRZ7C.png]](https://i.imgur.com/z6xRZ7C.png)
![[Image: BHsDPP5.png]](https://i.imgur.com/BHsDPP5.png)
![[Image: VKvyfHb.png]](https://i.imgur.com/VKvyfHb.png)
![[Image: ooaobPe.png]](https://i.imgur.com/ooaobPe.png)
![[Image: g3hri9z.png]](https://i.imgur.com/g3hri9z.png)
![[Image: KiSUrYb.png]](https://i.imgur.com/KiSUrYb.png)
![[Image: L326Jt8.png]](https://i.imgur.com/L326Jt8.png)
![[Image: hlK0N3h.png]](https://i.imgur.com/hlK0N3h.png)
![[Image: Flp4kzq.png]](https://i.imgur.com/Flp4kzq.png)
![[Image: dSq2rsc.png]](https://i.imgur.com/dSq2rsc.png)
![[Image: Jetz4V4.png]](https://i.imgur.com/Jetz4V4.png)
![[Image: eMCu6FU.png]](https://i.imgur.com/eMCu6FU.png)
![[Image: bqrHSEy.png]](https://i.imgur.com/bqrHSEy.png)
![[Image: tKTEytp.png]](https://i.imgur.com/tKTEytp.png)
![[Image: 4tizzOw.png]](https://i.imgur.com/4tizzOw.png)
![[Image: JsylgzH.png]](https://i.imgur.com/JsylgzH.png)
![[Image: pzM7Qbh.png]](https://i.imgur.com/pzM7Qbh.png)
![[Image: jCp0Cvj.png]](https://i.imgur.com/jCp0Cvj.png)
![[Image: meIyaYm.png]](https://i.imgur.com/meIyaYm.png)
![[Image: dO1oc3Y.png]](https://i.imgur.com/dO1oc3Y.png)
![[Image: Ockmxir.png]](https://i.imgur.com/Ockmxir.png)
![[Image: kpFwUFK.png]](https://i.imgur.com/kpFwUFK.png)
![[Image: 02j2QHj.png]](https://i.imgur.com/02j2QHj.png)
![[Image: L18KQsp.png]](https://i.imgur.com/L18KQsp.png)
![[Image: Mvo4ZI0.png]](https://i.imgur.com/Mvo4ZI0.png)
![[Image: 3qf4nxH.png]](https://i.imgur.com/3qf4nxH.png)
Download Link: https://mega.nz/file/bDYg3DAb#l7fHIZR4k9...nMz6lvSjO4
|
|
|
|
|