Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 299 online users. » 0 Member(s) | 296 Guest(s) Google, Bing, Applebot
|
Latest Threads |
[MAP PACK] 5 NEW LS BUILD...
Forum: Videos and Screenshots
Last Post: Apollo4430
2 hours ago
» Replies: 1
» Views: 3,323
|
Open.mp / SAMP Query
Forum: Releases
Last Post: laex
2025-07-09, 04:07 AM
» Replies: 2
» Views: 67
|
some text appearing in my...
Forum: Support
Last Post: Sizy
2025-07-08, 07:33 AM
» Replies: 0
» Views: 24
|
Offensive-Core: TDM
Forum: Gamemodes
Last Post: NikitaFoxze
2025-07-08, 12:13 AM
» Replies: 3
» Views: 3,653
|
Second Generation Rolepla...
Forum: Advertisements
Last Post: JamesT
2025-07-06, 10:28 AM
» Replies: 0
» Views: 41
|
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
2025-07-05, 11:35 PM
» Replies: 0
» Views: 30
|
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
2025-07-05, 11:05 PM
» Replies: 2
» Views: 90
|
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-07-04, 08:35 AM
» Replies: 0
» Views: 62
|
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,211
|
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 72
|
|
|
clear/empty an array |
Posted by: redex - 2021-07-31, 01:21 PM - Forum: Programming
- Replies (6)
|
 |
hi!
i wanted to know is there anyway to clear an array with only a few lines? i have player info in this array:
Code: enum e_playerinfo
{
? ? someInt,
? ? Float:someFloat,
??? someString[144],
}
new playerInfo[MAX_PLAYERS][e_playerinfo];
and i wanted to know how can i clear it in on player disconnect after saving the values in sql, i used to do like this:
Code: public OnPlayerDisconnect(...)
{
? ? playerInfo[playerid][...] = 0;
? ? playerInfo[playerid][...] = 0.0;
? ? playerInfo[playerid][...] = "";
? ? ...
}
and i had to do this for every variable i add, is there anyway to make this more simple?
|
|
|
Timer |
Posted by: njoBe_ - 2021-07-30, 08:49 PM - Forum: Pawn Scripting
- Replies (6)
|
 |
Im trying to make /mute command, but i dont know how to set timer which is equal to time which i set in command and when this timer ends it sets to player stats Muted = 0
Code: CMD:mute(playerid, params[])
{
if (!IsPlayerAdmin(playerid) || PlayerInfo [playerid] [pAdmin] < 1) return SendClientMessage(playerid, COLOR_SERVER, "[BC:RP] {FFFFFF}Niste admin.");
if (IsPlayerAdmin(playerid) || PlayerInfo [playerid] [pAdmin] > 0)
{
new id, reason[128], str[128], string[256], pName[MAX_PLAYER_NAME], pMutedName[MAX_PLAYER_NAME], time;
if(sscanf(params, "uis", id, time, reason)) return SendClientMessage(playerid, COLOR_SERVER, "[Usage]: {FFFFFF}/mute [ID/Ime] [Vrijeme] [Razlog]") ;
else if (time < 0 || time > 1000) return SendClientMessage(playerid, COLOR_SERVER, "[Usage]: Vrijeme ne moze biti manje od 0 (skidanje mute-a) i vece od 1000. ");
else if (time == 0) return SendClientMessage(playerid, -1, "Admin vam je skinuo mute.");
GetPlayerName(playerid, pName, sizeof(pName));
GetPlayerName(id, pMutedName, sizeof(pMutedName));
format(str, sizeof(str), "{FF0000}Utisani ste od strane admina {FFFFFF}%s {FF0000} na {FFFFFF}%d {FF0000}minuta. Razlog: {FFFFFF}%s.", pName, time, reason);
SendClientMessage(id, -1, str);
format(string, sizeof(string), "{FF0000}[Mute]: Admin {FFFFFF}%s {FF0000}je utisao igraca {FFFFFF}%s {FF0000}na {FFFFFF}%d {FF0000}minuta. Razlog: {FFFFFF}%s", pName, pMutedName, time, reason);
foreach(Player, i)
if(PlayerInfo [i] [pStaff] == 1)
{
SendClientMessage(i, -1, string);
}
PlayerInfo [id] [pMuted] = time;
PlayerInfo [id] [pMutedReason] = reason;
SetTimerEx("mutetime", time*1000, false, "d", id);
}
return 1;
}
|
|
|
I cannot find the erorr here! |
Posted by: Scylla - 2021-07-30, 09:13 AM - Forum: Pawn Scripting
- Replies (3)
|
 |
I have been getting this error and I don't know where this is happening. This error was really long time ago so I stopped coding. Now I want to continue it, and still I'm getting this error and it sucks.
Error:
Code: \CF.pwn(125) : error 010: invalid function or declaration
\CF.pwn(483) : error 017: undefined symbol "DIALOG_LOGIN"
\CF.pwn(487) : error 017: undefined symbol "DIALOG_REGISTER"
\CF.pwn(1105) : error 017: undefined symbol "DIALOG_REGISTER"
\CF.pwn(1110) : error 017: undefined symbol "DIALOG_REGISTER"
\CF.pwn(1126) : error 017: undefined symbol "DIALOG_LOGIN"
\CF.pwn(1138) : error 017: undefined symbol "DIALOG_LOGIN"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
Line 125 - 129:
Code: enum
{
? ? ? ?DIALOG_REGISTER = 0,
? ? ? ?DIALOG_LOGIN,
};
Line 483:
Code: ShowPlayerDialogEx(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FFFF00}Login to proceed", "{FFFFFF}This account is registered... Please login to continue with your account.", "Enter", "Close");
My includes:
Code: #include "a_samp"
#include "YSI\y_ini"
#include "YSI\y_timers"
#include "sscanf2"
#include "progress"
#include "zcmd"
#include "mSelection"
#include "weapon-config"
#include "streamer"
#include "foreach"
Please help!
|
|
|
Server Start normally by there's an Error on Server Logs |
Posted by: RainG - 2021-07-28, 05:12 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Code: Couldn't connect to radio station database... server will continue to operate normally.
Code: [17:08:36]? ? Error: Function not registered: 'SvCreateGStream'
[17:08:36]? ? Error: Function not registered: 'SvDeleteStream'
[17:08:36]? ? Error: Function not registered: 'SvAttachSpeakerToStream'
[17:08:36]? ? Error: Function not registered: 'SvDetachSpeakerFromStream'
[17:08:36]? ? Error: Function not registered: 'SvGetVersion'
[17:08:36]? ? Error: Function not registered: 'SvHasMicro'
[17:08:36]? ? Error: Function not registered: 'SvCreateDLStreamAtPlayer'
[17:08:36]? ? Error: Function not registered: 'SvAttachListenerToStream'
[17:08:36]? ? Error: Function not registered: 'SvAddKey'
|
|
|
split pawn codes |
Posted by: redex - 2021-07-28, 03:46 PM - Forum: Programming
- Replies (3)
|
 |
hi.
i am working on a sa-mp gamemode project, its going to take about code line, i was wondering is there any way to split the code, for exp put the JOBS related codes to another file and include it , so if i need to edit something about jobs i dont need to check hell a lot code lines to fix a problem!
how can i do that? is it good?
can it cause bad effects like lags or some other bad effects to server?
if u know anything please let me know, thanks!
|
|
|
User ped anim |
Posted by: Paulthas01 - 2021-07-27, 01:17 PM - Forum: Support
- No Replies
|
 |
Como altero o tipo de anima??o de jogador ?nico?
UsePedAnims ? global
|
|
|
Audio plugin error (linux) |
Posted by: Otakeiro - 2021-07-26, 01:25 AM - Forum: Pawn Scripting
- No Replies
|
 |
Whenever I turn on my server I'm getting this message in the logs
*** Audio Plugin: Error binding endpoint for acceptor: Address already in use
As a result my filterscript doesn't work, how do I solve this?
|
|
|
check sa-mp mobile players |
Posted by: Radical - 2021-07-25, 07:03 PM - Forum: Pawn Scripting
- Replies (3)
|
 |
How to check is player connected with sa-mp mobile?
--------------------------------------------------------
2023 UPDATE:
PHP Code: #if !defined gpci native gpci(playerid, serial[], len); #endif
IsPlayerUsingSAMPLauncher(playerid) { //Checks if player connected with android mobile using the app SAMP Launcher //https://play.google.com/store/apps/details?id=ru.unisamp_mobile.launcher&hl=en&gl=US&pli=1
new szSerial[41] ;
gpci(playerid, szSerial, sizeof(szSerial));
if(strcmp("ED40ED0E8089CC44C08EE9580F4C8C44EE8EE990", szSerial, true)) { return 1; }
return 0; }
|
|
|
|