Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 262 online users. » 1 Member(s) | 259 Guest(s) Bing, Google, NoxxeR
|
|
|
TogglePlayerSpectating on&off will cause client not work after "F4" |
Posted by: iLuXing - 2024-02-22, 06:52 AM - Forum: Support
- Replies (1)
|
 |
Type: Server and Client
Operating System: Windows
Server Version: omp v1.2.0.2670
Plugins Installed: No
YSI Included: No
Output (Logs): <paste a link to hastebin/pastebin with the logs included> (please remove any sensitive information)
I want player back to class select interface when player spwaned. so i make this code.
TogglePlayerSpectating on&off will cause client not work after "F4" or ForceClassSelection.
it will not back to class selection view and cant do anything only when /quit
![[Image: 8odMIwFY3ihEmjr.png]](https://s2.loli.net/2024/02/22/8odMIwFY3ihEmjr.png)
Make a try:
Code: CMD:test(playerid){
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, true);
TogglePlayerSpectating(playerid, false);
}
|
|
|
Error while compiler |
Posted by: sakazuki - 2024-02-16, 10:39 AM - Forum: Pawn Scripting
- Replies (3)
|
 |
Hello everyone,
I just updated plugins like YSI, sscanf, streamer, mysql, chrono. And when I changed it from YSI\y_timers to YSI_Coding\y_timers.
And when all the things I needed had been changed, when I did the compiler, I found an error, namely:
Code: C:\Users\Administrator\Desktop\samp\pawno\include\a_zones.inc(416) : error 219: local variable "x" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\a_zones.inc(464) : error 219: local variable "x" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\sscanf2.inc(481) : error 219: local variable "size" shadows a variable at a previous level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(712) : error 219: local variable
"y" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_version.inc(581) : error 219: local variable "size"
shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_debug_impl.inc(679) : error 219: local variable "siz
e" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_debug_impl.inc(866) : error 219: local variable "siz
e" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_cell32.inc(576) : error 219: local variable "x" shad
ows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_cell32.inc(606) : error 219: local variable "x" shad
ows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_cell_impl.inc(129) : error 219: local variable "x" s
hadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_cell_impl.inc(155) : error 219: local variable "x" s
hadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_amx_impl.inc(590) : error 219: local variable "size"
shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_amx_impl.inc(633) : error 219: local variable "size"
shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_amx_impl.inc(2803) : error 219: local variable "size
"shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\../y_utils/y_utils_arrays.inc(151) : error 219: local
variable "size" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\../y_utils/y_utils_arrays.inc(186) : error 219: local
variable "size" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\../y_utils/y_utils_arrays.inc(221) : error 219: local
variable "size" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\../y_utils/y_utils_arrays.inc(356) : error 219: local
variable "size" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\../y_utils/y_utils_colour.inc(401) : error 219: local
variable "x" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\../y_utils/y_utils_colour.inc(426) : error 219: local
variable "x" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\../y_utils/y_utils_colour.inc(464) : error 219: local
variable "x" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\samp\pawno\include\amx\amx_memory.inc(131) : error 219: local variable "size" shadows a variable at a preceding lev
El
C:\Users\Administrator\Desktop\samp\pawno\include\amx\amx_memory.inc(139) : error 219: local variable "size" shadows a variable at a preceding lev
El
C:\Users\Administrator\Desktop\samp\pawno\include\amx\amx_header.inc(530) : error 219: local variable "size" shadows a variable at a preceding lev
El
C:\Users\Administrator\Desktop\samp\pawno\include\amx\amx_header.inc(619) : error 219: local variable "size" shadows a variable at a preceding lev
El
C:\Users\Administrator\Desktop\samp\pawno\include\amx\amx_header.inc(629) : error 219: local variable "size" shadows a variable at a preceding lev
El
Compilation aborted.
26 Errors.
Please help me to find this problem. Thank you
|
|
|
Objects disappearing |
Posted by: Worm - 2024-02-12, 06:20 PM - Forum: Support
- No Replies
|
 |
Hi,
I have been facing an issue with the objects for awhile. The objects randomly disappear in-game. I had to re-write the script multiple times and even updated the streamer and downgraded it.
By disappearing, I mean that the object may get randomly destroyed on it's own. I even tried to track it by using a CMD to scan down all of the valid objects in the server and it shows that some objects are not valid anymore (Which means that they got deleted).
Is there anything that can be triggered by the streamer that can cause this? As I don't have anything in the script that can cause the object to be deleted on it's own.
|
|
|
cannot enter more than one player |
Posted by: ayalanicolas176 - 2024-02-10, 03:50 PM - Forum: Support
- No Replies
|
 |
hi, im having a problem with login in my server, we cannot enter more than 1 player, when the second one enters, he's kept in "Connected. Joining the game" and nothing further happens.
I did a debugging log and all the prints i put in OnPlayerConnect function are called correctly thorough but nothing player-related happens
Code: Playerid %d (1) detected, step 1/2/3...
Then, when i disconnect using /q it shows like this
Code: [part] Emmet_Jackson has left the server (1:2)
like i was kicked/banned, i do not know if it has something to do with all this problem but for me its weird cause the id 0 player disconnect reason shows normally.
my config.json:
Code: {
"announce": true,
"artwork": {
"cdn": "",
"enable": true,
"models_path": "models"
},
"long_call_time": 20000,
"chat_input_filter": true,
"enable_query": true,
"game": {
"allow_interior_weapons": true,
"chat_radius": 200.0,
"death_drop_amount": 0,
"gravity": 0.008,
"group_player_objects": false,
"lag_compensation_mode": 1,
"map": "San Andreas",
"mode": "Roleplay",
"nametag_draw_radius": 70.0,
"player_marker_draw_radius": 250.0,
"player_marker_mode": 1,
"time": 12,
"use_all_animations": false,
"use_chat_radius": false,
"use_entry_exit_markers": true,
"use_instagib": false,
"use_manual_engine_and_lights": false,
"use_nametag_los": true,
"use_nametags": true,
"use_player_marker_draw_radius": false,
"use_player_ped_anims": false,
"use_stunt_bonuses": true,
"use_vehicle_friendly_fire": false,
"use_zone_names": false,
"vehicle_respawn_time": 10000,
"weather": 10
},
"language": "Español - Spanish",
"logging": {
"enable": true,
"log_chat": true,
"log_cookies": false,
"log_deaths": true,
"log_queries": false,
"log_sqlite": false,
"log_sqlite_queries": false,
"timestamp_format": "[%Y-%m-%dT%H:%M:%S%z]",
"use_prefix": true,
"use_timestamp": true
},
"max_bots": 0,
"max_players": 50,
"name": "open.mp server",
"network": {
"acks_limit": 3000,
"aiming_sync_rate": 30,
"allow_037_clients": true,
"bind": "",
"cookie_reseed_time": 300000,
"in_vehicle_sync_rate": 30,
"limits_ban_time": 60000,
"message_hole_limit": 3000,
"messages_limit": 500,
"minimum_connection_time": 0,
"mtu": 576,
"multiplier": 10,
"on_foot_sync_rate": 30,
"player_marker_sync_rate": 2500,
"player_timeout": 10000,
"port": 7777,
"public_addr": "",
"stream_radius": 200.0,
"stream_rate": 1000,
"time_sync_rate": 30000,
"use_lan_mode": false
},
"password": "",
"pawn": {
"legacy_plugins": [
"crashdetect.so",
"sscanf.so",
"mysql.so",
"streamer.so"
],
"main_scripts": [
"roleplay"
],
"side_scripts": ["filterscripts/Mapeos"]
},
"rcon": {
"allow_teleport": false,
"enable": false,
"password": "sarp2233"
},
"sleep": 5.0,
"use_dyn_ticks": true,
"website": ""
}
|
|
|
Pawno ayuda para un Gamemode Team Deathmatch |
Posted by: AnonyLer_LataMP-Project - 2024-02-10, 01:27 AM - Forum: Tutorials
- No Replies
|
 |
Yo estoy creando un projecto para un servidor samp
LataMP Latam Multiplayer Project pero como no se casi nada de pawno pido ayuda para crear un sistema de equipos sistema de casas clanes ect para mi server samp quien me ayuda con cualquier cosa porfavor
|
|
|
|