| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 7,931
» Latest member: taljzed
» Forum threads: 2,405
» Forum posts: 12,321
Full Statistics
|
| Online Users |
There are currently 154 online users. » 0 Member(s) | 150 Guest(s) Bing, Google, Applebot, Yandex
|
| Latest Threads |
(PC/Mobil) PrimeTurk CnR ...
Forum: Advertisements
Last Post: Shacous
2026-02-12, 04:08 PM
» Replies: 0
» Views: 50
|
(PC/Mobil) PrimeTurk CnR ...
Forum: Turkish
Last Post: Shacous
2026-02-12, 04:04 PM
» Replies: 0
» Views: 41
|
Consulta warning mismatch...
Forum: Programaci?n
Last Post: bttwsky
2026-02-12, 03:46 PM
» Replies: 0
» Views: 45
|
problem dialog clan membe...
Forum: Pawn Scripting
Last Post: sanmartinjorquerapablo
2026-02-12, 02:15 AM
» Replies: 3
» Views: 199
|
Hobby War Server (Open to...
Forum: Advertisements
Last Post: blackwolf4278
2026-02-11, 12:22 AM
» Replies: 0
» Views: 53
|
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: DevonH
2026-02-08, 05:53 PM
» Replies: 12
» Views: 1,501
|
open.mp ready DayZ gamemo...
Forum: Gamemodes
Last Post: Bombo
2026-02-08, 07:50 AM
» Replies: 0
» Views: 150
|
samp-essentials
Forum: Libraries
Last Post: 1NS
2026-02-07, 12:51 PM
» Replies: 0
» Views: 131
|
Unban
Forum: Chat
Last Post: stryzo125
2026-02-06, 11:59 PM
» Replies: 2
» Views: 333
|
It has been a while
Forum: Chat
Last Post: Mauzen
2026-02-06, 08:36 PM
» Replies: 0
» Views: 119
|
|
|
| Post your code snippets here |
|
Posted by: DTV - 2019-04-14, 11:04 PM - Forum: Pawn Scripting
- Replies (19)
|
 |
I remember seeing a thread like this on SA-MP forums so it'd be nice to share with each other little tricks to making our lives easier with pawn, I'll start:
Actually don't know what this is formally called, but you can use it to skip parts of code when needed (good in a situation where the ending part of code is always the same but you don't need to copy/paste that code in every if/switch statement)
Code: someFunc(params) {
? ? if(params) {
? ? ? ? SendClientMessage(playerid,-1,"Not skipped!");
? ? ? ? return 1;
? ? }
? ? else { goto skipBlock; } //this is how you'd call for the code to skip to `skipBlock`
? ? skipBlock: //this is how you'd create it
? ? SendClientMessage(playerid,-1,"Skipped!");
? ? return 1;
}
|
|
|
|
| [SUGGESTION] Translation of the forum |
|
Posted by: KMarkireN - 2019-04-14, 10:28 PM - Forum: Chat
- Replies (2)
|
 |
Greetings everyone,
I only suggest that when this community had a large number of members it could be an option to configurate the language of the website, for example to be more confortable to spanish users, only that, I hope this project will have a greatest success.
PD: If my english isn't the best sorry, I'm a chilean guy who had interested in this new community xd.
|
|
|
|
| Rounding float to make it divisible by specified value. |
|
Posted by: Xray - 2019-04-14, 09:12 PM - Forum: Pawn Scripting
- Replies (7)
|
 |
Hi, I am developing a building system based on?a map grid. I?figured to use this grid (only xy axis based) I would only need to use a simple algorithm where I devide the current player position by the grid size.
Lets say I want to get the nearest grid in range of?a player, I need to round the player's position till it's devisible by the grid size to get the X Y position from that grid.
Could anyone explain me how to create a function that rounds?the player position to the nearest value where it is devisible by a specified value?
|
|
|
|
| About Open-MP |
|
Posted by: G0NZ4L0 - 2019-04-14, 09:08 PM - Forum: Questions and Suggestions
- Replies (10)
|
 |
I want to give a suggestion for the Open-MP platform, which is that instead of every time we want to enter another server we have to leave the GTA SA game and start it again and that is why I explain, that the list of servers show already when we are in the game (as well as MTA) so that every time we connect to a server we do not have to leave and enter GTA SA
I know that some people think it's lazy or something because of it, but it's not really because you imagine those who play in an old computer that the game delays loading and finishing you have problems in a moment of connection and you have to be opening and closing the GTA connecting to the same server to play as normal as all other players, so I suggest this suggestion about the Open-MP launcher.
|
|
|
|
|