Search Results
Quote: Originally Posted by TheToretto Well your server isn\'t going to crash the whole day, just add a command for the server owner to save all players\' stats. Without kicking them or c...
2,593
Or you could set a flag for that vehicle and destroy it under OnVehicleSpawn in case the flag was set.
2,224
You're adding your entered location to every index of your GPS array, overwriting every previously added location. You have to find a free spot and only add it to that free spot, then abort the loop. ...
185
Can you put a print statement between the lines and post those as well, so we can see what the values are that are being inserted into the query? You can do that to debug your query and see what truel...
109
Also some tip is to read the important notes here: https://sampwiki.blast.hk/wiki/TextDrawCreate It says the text cannot be empty or your server may crash. Use the underscore to at least have somethi...
152
My guess would be that this 3D Text Label is being displayed and updated by a 1 second timer. And using OnPlayerUpdate to detect if the player's game is being updated. When a player presses ESC, the m...
89
Run a 1 second timer to be accurate, then check if "minute" is 0 or 30 and a flag is 0. If so, execute your stuff and set the flag to 1. To reset the flag, add a second if-statement to check if "minu...
416
When working with tqueries, you need to load your data using callback functions. You can't read the data right after sending the query because there is no result yet. PHP код: stock LoadPlayer...
194
You can also create a pickup that exists always (ID 1) but not handle that pickup using OnPlayerPickUpPickup. Instead, create a dynamic circular area using Incognito's streamer around the pickup and c...
131
If a hacker does a brute-force attack, it gets done using the normal OnPlayerConnect callback? He won't be inputting every password combo by hand, but lets the computer enter it, a few thousand times ...
1,430
I also have AdBlock on my browser and if I'm looking for information about something and I get to a website which wants me to disable my adblock, I'll happily push the backspace button and find anothe...
929
Also, if people want to use your include (which would use MySQL), and they don't know how to use it, then they should use something else. You can't be bothered with the fact someone might not know how...
1,011
A silly question, but why are you storing a float in a string to begin with? String manipulations are always slower than processing the same value in a float or integer.
234
Did you use the same ID's in your filterscript and gamemode? I always use ID's 1-999 in my gamemode and 1000-1999 for first filterscript, 2000-2999 for second filterscript and so on. Then ID's can't o...
211
https://sampwiki.blast.hk/wiki/SetPlayerScore The return value of SetPlayerScore is 1 for success and 0 for failure. So you're setting "level" to 0 or 1 based on success or failure of using SetPlayer...
295
After setting the virtual world of the player and vehicle, try to use PutPlayerInVehicle and then reposition the player (SetPlayerPos) to the coordinates he should be standing. That's how you show ve...
158
If you want to use that array per player to store 5 objects each per player: Code: new objects[MAX_PLAYERS][5]; cmd:object(playerid, params[]) { objects[playerid][0] = createplayerobjectxxx ...
182
You're lucky the axm size isn't bigger than 5Mb. If you take the array-size into account: 3500 indices x (256 cells for one field, 256 cells for another field) x 4 bytes per cell = 3500 x 512 x 4 = 7...
208
I can get why you want to kick cheaters fast, but using OnPlayerUpdate is overkill. This callback is called at least 30 times per second FOR EVERY PLAYER. If you have 250 players online, you're execut...
1,154
Also huge switch case statements bring alot of compile-time: Code: switch (somevar) { case 0 .. 4999: { // Do something } case 5000 .. 9999: { // Do something } case 1...
1,110