| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 395 online users. » 0 Member(s) | 392 Guest(s) Bing, Google, Baidu
|
| Latest Threads |
Vice WRLD Freeroam/RP
Forum: Advertisements
Last Post: pdjumailiev
2025-11-24, 11:30 AM
» Replies: 0
» Views: 45
|
Wanting to Start a RP Ser...
Forum: Chat
Last Post: Wein
2025-11-24, 09:07 AM
» Replies: 1
» Views: 184
|
Help me for creating a fr...
Forum: General Discussions
Last Post: [Rs]VeNoM
2025-11-23, 07:33 AM
» Replies: 0
» Views: 25
|
The server didn't respond...
Forum: Support
Last Post: richboY
2025-11-22, 10:51 AM
» Replies: 0
» Views: 35
|
error when joining server
Forum: Support
Last Post: sanved2008
2025-11-22, 09:02 AM
» Replies: 0
» Views: 41
|
Client issue with object
Forum: Support
Last Post: TheDoctor
2025-11-15, 08:00 PM
» Replies: 0
» Views: 101
|
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-11-15, 12:06 AM
» Replies: 0
» Views: 128
|
[Include] OpenGate (Abrir...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-11-13, 06:49 PM
» Replies: 0
» Views: 97
|
OpenGate (Open Proximity ...
Forum: Libraries
Last Post: Crazy_ArKzX
2025-11-13, 06:46 PM
» Replies: 0
» Views: 131
|
LS City Hall
Forum: Maps
Last Post: cosminupgaming
2025-11-12, 04:22 PM
» Replies: 3
» Views: 2,752
|
|
|
| Texture Studio doors not opening |
|
Posted by: Kevinas - 2021-03-05, 07:30 AM - Forum: Pawn Scripting
- Replies (1)
|
 |
When I rotate a door it rotates visually, but it's axis doesn't change and stays in the same position, so whenever I rotate a door it opens and closes in the same spots as before, has anyone ever encountered this?
EDIT: sorry, wrong thread
|
|
|
|
| SetObjectMaterial question!? |
|
Posted by: gokuta - 2021-03-05, 01:03 AM - Forum: Pawn Scripting
- Replies (1)
|
 |
My question is... how do I set material using SetObjectMaterial() that is available in TXD file, but?not used on any object at all! There are plenty of materials never used on any object... please help :(
|
|
|
|
| SetPlayerChatBubble - ?Help! |
|
Posted by: Uxknvwn - 2021-03-04, 05:27 PM - Forum: Support
- Replies (2)
|
 |
Hi, i hope you are well.?need help based on the "SetPlayerChatBubble" .? how do I make a pickup appear on top of the player using the function ...? example, i want the pickup 1247 (star) to appear above the player through a command, i hope that you can help me
Could serve: Text3D, Update3DTextLabelTex
|
|
|
|
| CMD /id |
|
Posted by: Hitler - 2021-03-01, 10:52 PM - Forum: Pawn Scripting
- Replies (5)
|
 |
Espa?ol:?Tengo un problema con este comando, cuando uso /id aparece el id del jugador y otros datos (ping, fps, pk), tambi?n aparece la hora y fecha, el problema es que aveces muestra solo la hora y fecha y otras veces muestra la id y los otros datos (ping, fps, pk)
English: I have a problem with this command, when I use / id it shows the id of the player and other data (ping, fps, pk), it also shows the time and date, the problem is that sometimes it shows only the time and date and other times it shows the id and the other data (ping, fps, pk)
Code: CMD:id(playerid,params[])
{
new jugador;
if(sscanf(params, "r", jugador)) return SendClientMessage(playerid, -1, "Usa: /id [ID/Nombre]");
if (!IsPlayerConnected(jugador)) return SendClientMessage(playerid,GRIS,"No se encontr? ning?n jugador");
new Float:pPacket = GetPlayerPacketLoss(jugador);
new string[200];
format(string,sizeof(string), "Nombre:?%s ID:?%d FPS: %d Ping: %d | PacketLoss:?%.1f%%",Nombre(jugador),jugador,FPS[jugador],GetPlayerPing(jugador),pPacket);
SendClientMessage(playerid,0xffffffff,string);
new hora,minuto,segundo,d,m,a;
getdate(a, m, d);
gettime(hora, minuto,segundo);
new string2[200];
format(string2,sizeof(string2), "Hora: %d:%d:%d Fecha: %d/%d/%d",hora,minuto,segundo,d,m,a);
SendClientMessage(playerid,0xffffffff,string2);
return 1;
}
|
|
|
|
| FCNPC animations |
|
Posted by: Kevinas - 2021-02-28, 06:17 PM - Forum: Pawn Scripting
- Replies (4)
|
 |
Sadly, forum.sa-mp is closed and it's difficult to find information regarding FCNPC's
My problem is that it doesn't play animations, I've tried it also with regular npcs - same deal.
I've tried preloading the libs for the player and the npcs - nothing.
here's my code
Code: public OnGamemodeInit()
{
kasininkas=FCNPC_Create("Kasininkas");
FCNPC_Spawn(kasininkas,217,-166.7957,1017.0024,19.7427);
}
public Timeris(playerid)
{
SendClientMessage(playerid, 0xff0000,"a");
FCNPC_ApplyAnimation(kasininkas, "BAR", "Barserve_bottle");
SendClientMessage(playerid, 0xff0000,"a");
return 1;
}
//I turn on the timer with -?SetTimerEx("Timeris", 1000,true, "i",playerid);
|
|
|
|
| Optimizations and MySQL |
|
Posted by: RhaegarX - 2021-02-27, 10:15 PM - Forum: Pawn Scripting
- Replies (8)
|
 |
Hi, I recently had 2 questions that I wanted to discuss here on the forum.
First Doubt: The efficiency of a script
when we develop systems, we realize that there are several different ways to write the system and get the expected result, however there are more efficient ways that cause less impact to the server.
I would like to know, what would be the best way to qualify the efficiency of a script. Would the script execution time be a valid parameter for this type of test?
Second Doubt:?When to use or not to use the data directly from the bank
In this second question I would like to know the best way to work with MySQL. For example, in a system that makes queries, additions and updates the best and most efficient way would be to load this sql data into variables, manipulate those variables and then update the data sql, or do all the manipulations directly in the database?
|
|
|
|
| Help Add |
|
Posted by: Hitler - 2021-02-27, 08:57 PM - Forum: Pawn Scripting
- Replies (6)
|
 |
Espa?ol: Hola, tengo un Ranking de equipos en el cual si un jugador mata a otro jugador se le dar? de puntaje?al team, el problema es que cuando reinicio el servidor cuando?un jugador mata a otro jugador la puntuaci?n del team vuelve a 1 y va sumando nuevamente, en la base de datos se?guarda bien el puntaje del team pero se pierde cuando se suma nuevamente, debe ser por esta funci?n que quiz?s est? mal.
English: Hello, I have a Team Ranking in which if a player kills another player, the team will be given score, the problem is that when I restart the server when a player kills another player, the team score returns to 1 and it is adding again, in the database the team's score is saved well but it is lost when it is added again, it must be because of this function that it may be wrong.
Code: new query[250],puntaje;
puntaje?= 1;
mysql_format(con, query, sizeof query, "UPDATE `Ranking` SET `Score` = '%d' WHERE `ID` = '1'", puntaje);
mysql_query(con, query);
Espa?ol:?O cual ser?a la soluci?n?
English:?Or what would be the solution?
|
|
|
|
| What should I use, Linux or Windows, for server development? |
|
Posted by: robertocaribbean - 2021-02-27, 04:29 PM - Forum: Questions and Suggestions
- Replies (4)
|
 |
Hi there,
I remember back then when I was newbie in pawn scripting, I use the IDE who come within server files, called pawno. All this on Windows platform
The good thing on this is that after compile the script I could test it quickly by opening SA:MP and do the testing of the script playing by myself.
There is a similar way to do this on Linux? Or how should I work on Linux in order to test scripts?
|
|
|
|
|