Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 313 online users. » 0 Member(s) | 311 Guest(s) Bing, Google
|
Latest Threads |
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,150
|
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 48
|
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 429
|
Want to edit my profile n...
Forum: Chat
Last Post: Hera.
2025-06-26, 08:41 PM
» Replies: 1
» Views: 564
|
Farsi
Forum: Other
Last Post: acc.gangbeni
2025-06-25, 08:21 AM
» Replies: 2
» Views: 3,068
|
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2025-06-22, 06:47 PM
» Replies: 0
» Views: 58
|
[Request] Linko Gaming Ro...
Forum: General Discussions
Last Post: JamesC
2025-06-20, 07:34 PM
» Replies: 0
» Views: 76
|
RevolutionX DM/Stunt/Race...
Forum: Advertisements
Last Post: DerekZ905
2025-06-18, 03:12 PM
» Replies: 0
» Views: 92
|
samp-cef
Forum: Questions and Suggestions
Last Post: jamespssamp
2025-06-18, 11:36 AM
» Replies: 0
» Views: 79
|
Offering Pawn Scripting S...
Forum: Pawn Scripting
Last Post: Mido
2025-06-07, 01:30 PM
» Replies: 0
» Views: 309
|
|
|
Texture Studio doors not opening |
Posted by: Kevinas - 2021-03-05, 08:03 AM - Forum: Support
- Replies (2)
|
 |
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?
|
|
|
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?
|
|
|
|