Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 7,247
» Latest member: JamesT
» Forum threads: 2,378
» Forum posts: 12,290
Full Statistics
|
Online Users |
There are currently 345 online users. » 0 Member(s) | 342 Guest(s) Yandex, Bing, Google
|
|
|
How to fix dark skin issue on SAMP class selection in pawn? |
Posted by: goldprince - 2021-02-14, 04:28 PM - Forum: Programming
- Replies (5)
|
 |
Hello Everyone,
? ? ? ? ? ? ? ? ? ? ? ? ? ?I'm working on a SAMP server using pawn language, but I've started facing an issue since I started work on SAMP player skin selection class. The issue is when a player request's a class all skins becomes darker.
Code: #include <a_samp>
main() {
}
public OnGameModeInit() {
SetWeather(10);
SetWorldTime(12);
AddPlayerClass(1, -1479.434082, 920.448730, 71.350372, 288.652161, 0, 0, 0, 0, 0, 0);
AddPlayerClass(2, -1479.434082, 920.448730, 71.350372, 288.652161, 0, 0, 0, 0, 0, 0);
AddPlayerClass(3, -1479.434082, 920.448730, 71.350372, 288.652161, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerRequestClass(playerid, classid) {
SetPlayerPos(playerid, -1479.434082, 920.448730, 71.350372);
SetPlayerFacingAngle(playerid, 288.652161);
SetPlayerCameraPos(playerid, -1474.420288, 922.672607, 72.009903);
SetPlayerCameraLookAt(playerid, -1475.333984, 922.266418, 71.999748);
return 1;
}
Screenshot Of The Issue:
![[Image: ApgJX.jpg]](https://i.stack.imgur.com/ApgJX.jpg)
Screenshot Of The Expected Results:
![[Image: 23ttM.jpg]](https://i.stack.imgur.com/23ttM.jpg)
As you can see in the first screenshot the player skin is darker then normal.
What I have tried:?
I have tried rearranging the code, like calling SetPlayerCameraPos() before SetPlayerPos().
I have also tried using a timer to add a delay before setting player pos and camera pos.
I have also tried using TogglePlayerSpectating()?method to make sure every things gets loaded with player's camera.
But still same result.
If you know any solution for this problem please share.
Thank You,
|
|
|
Trucking mission issue |
Posted by: JohnnyMP - 2021-02-13, 07:17 PM - Forum: Pawn Scripting
- Replies (3)
|
 |
Hello guys,?
i starded making some trucking missions in my server and all i got for now is that when player types /work server checks few things like is player wanted or is player in truck with trailer attached and then it picks random mission and put mission load cp for player.
My question is next : How to make player able to choose from few closest Load points to his position ?
If anyone played on Convoy Trucking im trying to make same thing because its kinda bad if u are in LS and u start ur truck mission there but u get ur load point in SF.
|
|
|
Weird problem with cmd |
Posted by: morem - 2021-02-13, 11:09 AM - Forum: Support
- Replies (4)
|
 |
Hi,
I have a problem with/handsup cmd.
When a player is?freeze and use /handsup cmd, the player got unfreeze
The Weirdest?thing for me is I don't have any cmd like this!
Does anyone have any idea?
|
|
|
[Ayuda] Urgente |
Posted by: Kaiser - 2021-02-13, 04:39 AM - Forum: Programaci?n
- Replies (1)
|
 |
Tengo un error al iniciar el servidor en un host, la GM es con MySQL, y creo que parece haber un error de conexi?n, o realmente no s? que podr?a ser en verdad, aqu? dejo lo que marca en el log al encender el servidor, cuando enciendo el servidor desde XAMPP me va perfecto sin errores, pero por el host me manda tremenedo error.
Code: Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[22:09:20]
[22:09:20] Server Plugins
[22:09:20] --------------
[22:09:20]? Loading plugin: mysql.so
[22:09:20]? Failed (libmysqlclient_r.so.16: cannot open shared object file: No such file or directory)
[22:09:20]? Loading plugin: sscanf.so
[22:09:20]
[22:09:20]? ===============================
[22:09:20]? ? ? sscanf plugin loaded.? ?
[22:09:20]? ? ? ? ? Version:? 2.8.3? ? ? ?
[22:09:20]? (c) 2018 Alex "Y_Less" Cole?
[22:09:20]? ===============================
[22:09:20]? Loaded.
[22:09:20]? Loading plugin: crashdetect.so
[22:09:20]? CrashDetect v4.18.1 is OK.
[22:09:20]? Loaded.
[22:09:20]? Loading plugin: streamer.so
[22:09:20]
*** Streamer Plugin v2.9.4 by Incognito loaded ***
[22:09:20]? Loaded.
[22:09:20]? Loaded 3 plugins.
[22:09:20]
[22:09:20] Filterscripts
[22:09:20] ---------------
[22:09:20]? Loading filterscript 'MAPEOS.amx'...
[22:09:20]? Loading filterscript 'random.amx'...
[22:09:21]? Loading filterscript 'Multinombres.amx'...
[22:09:21]
--------------------------------------
[22:09:21] Multinombres by Woorlich y yor
[22:09:21] --------------------------------------
[22:09:21]? Loaded 3 filterscripts.
[22:09:21] [debug] Run time error 19: "File or function is not found"
[22:09:21] [debug]? mysql_connect
[22:09:21] [debug]? mysql_errno
[22:09:21] [debug]? mysql_tquery
[22:09:21] [debug]? mysql_format
[22:09:21] [debug]? mysql_query
[22:09:21] [debug]? cache_get_row_count
[22:09:21] [debug]? cache_get_row
[22:09:21] [debug]? cache_get_row_int
[22:09:21] [debug]? cache_delete
[22:09:21] [debug]? cache_get_data
[22:09:21] [debug]? cache_get_field_content_int
[22:09:21] [debug]? cache_get_field_content
[22:09:21] [debug]? cache_get_field_content_float
[22:09:21] [debug]? cache_insert_id
[22:09:21] [debug]? mysql_escape_string
[22:09:21] [debug] Run time error 19: "File or function is not found"
[22:09:21] [debug]? mysql_connect
[22:09:21] [debug]? mysql_errno
[22:09:21] [debug]? mysql_tquery
[22:09:21] [debug]? mysql_format
[22:09:21] [debug]? mysql_query
[22:09:21] [debug]? cache_get_row_count
[22:09:21] [debug]? cache_get_row
[22:09:21] [debug]? cache_get_row_int
[22:09:21] [debug]? cache_delete
[22:09:21] [debug]? cache_get_data
[22:09:21] [debug]? cache_get_field_content_int
[22:09:21] [debug]? cache_get_field_content
[22:09:21] [debug]? cache_get_field_content_float
[22:09:21] [debug]? cache_insert_id
[22:09:21] [debug]? mysql_escape_string
[22:09:21] Script[gamemodes/Gamemode.amx]: Run time error 19: "File or function is not found"
[22:09:21] Number of vehicle models: 0
[22:10:29] [connection] 201.156.222.114:64199 requests connection cookie.
[22:10:30] [connection] incoming connection: 201.156.222.114:64199 id: 0
[22:10:30] [debug] Run time error 19: "File or function is not found"
[22:10:30] [debug]? mysql_connect
[22:10:30] [debug]? mysql_errno
[22:10:30] [debug]? mysql_tquery
[22:10:30] [debug]? mysql_format
[22:10:30] [debug]? mysql_query
[22:10:30] [debug]? cache_get_row_count
[22:10:30] [debug]? cache_get_row
[22:10:30] [debug]? cache_get_row_int
[22:10:30] [debug]? cache_delete
[22:10:30] [debug]? cache_get_data
[22:10:30] [debug]? cache_get_field_content_int
[22:10:30] [debug]? cache_get_field_content
[22:10:30] [debug]? cache_get_field_content_float
[22:10:30] [debug]? cache_insert_id
[22:10:30] [debug]? mysql_escape_string
[22:10:30] [join] King_Schultz has joined the server (0:201.156.222.114)
[22:10:30] [debug] Run time error 19: "File or function is not found"
[22:10:30] [debug]? mysql_connect
[22:10:30] [debug]? mysql_errno
[22:10:30] [debug]? mysql_tquery
[22:10:30] [debug]? mysql_format
[22:10:30] [debug]? mysql_query
[22:10:30] [debug]? cache_get_row_count
[22:10:30] [debug]? cache_get_row
[22:10:30] [debug]? cache_get_row_int
[22:10:30] [debug]? cache_delete
[22:10:30] [debug]? cache_get_data
[22:10:30] [debug]? cache_get_field_content_int
[22:10:30] [debug]? cache_get_field_content
[22:10:30] [debug]? cache_get_field_content_float
[22:10:30] [debug]? cache_insert_id
[22:10:30] [debug]? mysql_escape_string
[22:10:33] [debug] Run time error 19: "File or function is not found"
[22:10:33] [debug]? mysql_connect
[22:10:33] [debug]? mysql_errno
[22:10:33] [debug]? mysql_tquery
[22:10:33] [debug]? mysql_format
[22:10:33] [debug]? mysql_query
[22:10:33] [debug]? cache_get_row_count
[22:10:33] [debug]? cache_get_row
[22:10:33] [debug]? cache_get_row_int
[22:10:33] [debug]? cache_delete
[22:10:33] [debug]? cache_get_data
[22:10:33] [debug]? cache_get_field_content_int
[22:10:33] [debug]? cache_get_field_content
[22:10:33] [debug]? cache_get_field_content_float
[22:10:33] [debug]? cache_insert_id
[22:10:33] [debug]? mysql_escape_string
[22:10:39] [debug] Run time error 19: "File or function is not found"
[22:10:39] [debug]? mysql_connect
[22:10:39] [debug]? mysql_errno
[22:10:39] [debug]? mysql_tquery
[22:10:39] [debug]? mysql_format
[22:10:39] [debug]? mysql_query
[22:10:39] [debug]? cache_get_row_count
[22:10:39] [debug]? cache_get_row
[22:10:39] [debug]? cache_get_row_int
[22:10:39] [debug]? cache_delete
[22:10:39] [debug]? cache_get_data
[22:10:39] [debug]? cache_get_field_content_int
[22:10:39] [debug]? cache_get_field_content
[22:10:39] [debug]? cache_get_field_content_float
[22:10:39] [debug]? cache_insert_id
[22:10:39] [debug]? mysql_escape_string
[22:10:39] [part] King_Schultz has left the server (0:1)
|
|
|
Bug when player freezes |
Posted by: RhaegarX - 2021-02-12, 08:18 PM - Forum: Support
- Replies (11)
|
 |
I am developing a stealing system, in which when stealing the player is frozen [TogglePlayerControllable (playerid, false);].
However, when the player is frozen he becomes immortal, not taking any damage.
Can anyone tell me how to fix this bug?
|
|
|
Problems loading plugins in ubuntu |
Posted by: McZulian - 2021-02-11, 10:45 PM - Forum: Support
- Replies (2)
|
 |
Hi! I'm McZulian (sorry if my english is kinda bad, i'm argentinean)
I'm trying to create a SAMP plugin using an ubuntu VPS becouse the gamehost forced me to use MySQL R41 and my gamemode uses R39 and i can't update it.
I did everything, i have an ftp connection to the server, phpmyadmin running well and everything. But when i try to run the server, it runs, but my gamemode does not work. And it does not load any of the plugins i have.
This is my server log
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team
[22:20:28] filterscripts = ""? (string)
password = ""? (string)
Server Plugins
--------------
Loading plugin: sscanf
? Failed (plugins/sscanf: cannot open shared object file: No such file or directory)
Loading plugin: mysql
? Failed (plugins/mysql: cannot open shared object file: No such file or directory)
Loading plugin: streamer
? Failed (plugins/streamer: cannot open shared object file: No such file or directory)
Loading plugin: nativechecker
? Failed (plugins/nativechecker: cannot open shared object file: No such file or directory)
Loading plugin: Whirlpool
? Failed (plugins/Whirlpool: cannot open shared object file: No such file or directory)
Loaded 0 plugins.
Filterscripts
---------------
? Loaded 0 filterscripts.
Script[gamemodes/roleplay.amx]: Run time error 19: "File or function is not found"
Number of vehicle models: 0
i'm using South Central as a base gamemode
I did everything in my knowledge and still didn't get it to work. In my pc, using windows it works just fine, no problems there. But when i go to a linux server, everything goes to hell
|
|
|
|