Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 7,514
» Latest member: huwvae
» Forum threads: 2,417
» Forum posts: 12,369
Full Statistics
|
Online Users |
There are currently 556 online users. » 0 Member(s) | 554 Guest(s) Google, Bing
|
|
|
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.
|
|
|
|