| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 384 online users. » 0 Member(s) | 381 Guest(s) Bing, Google, Baidu
|
|
|
Best way to load data from db using sscanf |
|
Posted by: shane adevaratu - 2021-01-01, 01:48 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
I'm trying to improve the efficiency of the script when logging in and I have a question.
Is there a better method compared to the example below,?to load the data from the database?
Code: cache_get_value_name( 0, "Table", result_70 ); format( str_70, sizeof str_70, result_70 );
sscanf( str_70, "p<|>iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii",
playerVariable[ playerid ][ pTable ][ 0 ], playerVariable[ playerid ][ pTable ][ 1 ], playerVariable[ playerid ][ pTable ][ 2 ],
playerVariable[ playerid ][ pTable ][ 3 ], playerVariable[ playerid ][ pTable ][ 4 ], playerVariable[ playerid ][ pTable ][ 5 ],
playerVariable[ playerid ][ pTable ][ 6 ], playerVariable[ playerid ][ pTable ][ 7 ], playerVariable[ playerid ][ pTable ][ 8 ],
playerVariable[ playerid ][ pTable ][ 9 ], playerVariable[ playerid ][ pTable ][ 10 ], playerVariable[ playerid ][ pTable ][ 11 ],
playerVariable[ playerid ][ pTable ][ 12 ], playerVariable[ playerid ][ pTable ][ 13 ], playerVariable[ playerid ][ pTable ][ 14 ],
playerVariable[ playerid ][ pTable ][ 15 ], playerVariable[ playerid ][ pTable ][ 16 ], playerVariable[ playerid ][ pTable ][ 17 ],
playerVariable[ playerid ][ pTable ][ 18 ], playerVariable[ playerid ][ pTable ][ 19 ], playerVariable[ playerid ][ pTable ][ 20 ],
playerVariable[ playerid ][ pTable ][ 21 ], playerVariable[ playerid ][ pTable ][ 22 ], playerVariable[ playerid ][ pTable ][ 23 ],
playerVariable[ playerid ][ pTable ][ 24 ], playerVariable[ playerid ][ pTable ][ 25 ], playerVariable[ playerid ][ pTable ][ 26 ],
playerVariable[ playerid ][ pTable ][ 27 ], playerVariable[ playerid ][ pTable ][ 28 ], playerVariable[ playerid ][ pTable ][ 29 ],
playerVariable[ playerid ][ pTable ][ 30 ], playerVariable[ playerid ][ pTable ][ 31 ], playerVariable[ playerid ][ pTable ][ 32 ],
playerVariable[ playerid ][ pTable ][ 33 ], playerVariable[ playerid ][ pTable ][ 34 ], playerVariable[ playerid ][ pTable ][ 35 ],
playerVariable[ playerid ][ pTable ][ 36 ], playerVariable[ playerid ][ pTable ][ 37 ], playerVariable[ playerid ][ pTable ][ 38 ],
playerVariable[ playerid ][ pTable ][ 39 ], playerVariable[ playerid ][ pTable ][ 40 ], playerVariable[ playerid ][ pTable ][ 41 ],
playerVariable[ playerid ][ pTable ][ 42 ], playerVariable[ playerid ][ pTable ][ 43 ], playerVariable[ playerid ][ pTable ][ 44 ],
playerVariable[ playerid ][ pTable ][ 45 ], playerVariable[ playerid ][ pTable ][ 46 ], playerVariable[ playerid ][ pTable ][ 47 ],
playerVariable[ playerid ][ pTable ][ 48 ], playerVariable[ playerid ][ pTable ][ 49 ] );
In database: Varchar, Lenght 70, As defined 0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
|
|
|
|
| In-Game Map Editor |
|
Posted by: Torque - 2020-12-29, 10:28 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Hey guys, I'm looking for a map editor plugin/filterscript to use in-game, with the ability to remove stock objects and generate a script.
Much regards, Such thanks.
|
|
|
|
Server crashes when loading Whirlpool plugin |
|
Posted by: Hannes - 2020-12-29, 10:53 AM - Forum: Support
- Replies (1)
|
 |
Type: Server
Operating System: Windows
Server Version: 0.3.7 R2
Plugins Installed: Yes
Plugins (If above is yes): Whirlpool
YSI Included:?No
Output (Logs): https://pastebin.com/vSYMCUpn
Hello!
I've never had an issue with running these plugins before, however when I try to start my server it crashes and outputs the text in the pastebin?to the server log file.
These problems have started occurring after I reinstalled my computer (same version of Windows), and the exact same server folder has never been an issue to run previously.
The same issue occurs if I try to download a new server .rar and install a few plugins which work, but when I try it with Whirlpool, it crashes.
Whirlpool appears to be the only plugin that is making it crash, however I'd like to get it to work properly rather?than having to replace it with a different type of encryption.
I have ran the AIO batch file to install x86 and x64 of?2005 through 2019 of Visual C redistributables, however to no avail (same crash). I have also tried installing the latest?.NET Framework and DirectX end-user runtimes however both of these appeared to have already been installed, probably through the Windows version.
I wanted to check?the SA-MP forums, as I saw a few threads appearing to be about the same issue?when I tried googling, regardless, I didn't get very far, and?this seems to be the new place of things so I'll try my luck here.
|
|
|
|
| Ayuda con un sistema |
|
Posted by: Lp_ - 2020-12-29, 07:26 AM - Forum: Programaci?n
- Replies (2)
|
 |
Buenas como andan, estoy creando un sistema de emisoras en mi servidor y tengo una facci?n la cual es cnn y quer?a colocarle que los mensajes de cnn se vean solo cuando este dentro del auto escuchando la emisora numero 1, tenia una funci?n para algo as??pero no la entend? mucho, cualquier tipo de ayuda me servir?a y se lo agradecer?a mucho
|
|
|
|
| [DA-RP - Dark Ages: Medieval Roleplay] Merchant Village (Sneak Peek) |
|
Posted by: Wolfgang - 2020-12-28, 04:08 PM - Forum: Videos and Screenshots
- Replies (4)
|
 |
Quote: "As an effort to enrichen the world and give players exposition to the server's lore and setting, we have come up with a work-in-progress NPC system. These NPCS can be interacted with and react through dialogues;?have day-light and night-time routines as well as specific scripted behaviors (i.e peasants walking on streets, guards patrolling certain areas etc.)"
|
|
|
|
|