Quantcast
Channel: SA-MP Forums
Viewing all 18226 articles
Browse latest View live

[Map] Spawn / LV Aiport Interrior - RP pack (by Weed.) #12


Gamemode Errors Need Guide

$
0
0
Hi
I added a 2 new commands that if event is going on admin can place goto event for players,
I was have 6 errors and i fixed 2 of it but 4 errors left on just one line and i can't fix it.
Code:

(35298) : error 028: invalid subscript (not an array or too many subscripts): "Teleportevent"
(35298) : warning 215: expression has no effect
(35298) : error 001: expected token: ";", but found "]"
(35298) : error 029: invalid expression, assumed zero
(35298) : fatal error 107: too many error messages on one line

Line 35298 code

Code:

GetPlayerPos(playerid, Teleportevent[0],Teleportevent[1],Teleportevent[2]);

Empty pawn compiler's window

How to resolve Norton 360 Encountered Internal Error

$
0
0
norton security toolbar support has been removed


Norton 360 is the trusted antivirus software that works according to your needs and protect your computer. Sometimes Norton 360 displays an internal error and unable to verify the subscription. You can easily fix this issue by downloading and running the “Norton remove and reinstall tool” on your computer. You can also call at Norton 360 support phone number and get the issue fixed or you should follow these steps given below to solve Norton 360 encountered an internal error.

 You need to download the “Norton remove and reinstall tool”
 Now open the downloads window by using Ctrl+J key
 After the double-click to the NRnR icon, license agreement page will open,
 Click to “Agree”
 Then click “Remove and Reinstall” and “continue” or “Remove”
 Now you can reboot your system by clicking “Restart Now”

Also read:- my norton login

[SHOWCASE] IDLEWOOD: Well Stacked Pizza (0.3.DL)

physics multiple system error

$
0
0
First round Success Object Velocity Multiple, but
Next Round one object velocity runs, another object stops velocity run.
Please solve this problem.

I want Multiple physics System..

this source:

public PHY_OnObjectUpdate(objectid)
{
new Float:X2,Float:Y2,Float:Z2;
for(new j=0; j<GetMaxPlayers(); j++)
{
if(GameTable[GamePlayer[j]][bMoved])
{
if(GameStatus[j][GamePlayer[j]] == 5)
{
if(WallBallPos(GamePlayer[j]))
{
GameStatus[j][GamePlayer[j]] = 6;
SetTimerEx("ResetGame",800,false,"dd",GamePlayer[j],j);
}
else
{
GetObjectPos(GameBall[GamePlayer[j]][0],X2,Y2,Z2);
if(Y2 >= -51.9)
{
SetPlayerCameraPos(j,X2,Y2+5.0,Z2+3.0);
SetPlayerCameraLookAt(j,X2,Y2+2.0,Z2+1.5);
}
}
for(new i=0; i<11; i++)
{
if(objectid == GameBall[GamePlayer[j]][i])
{
if(PHY_IsObjectUsingPhysics(objectid))
{
GetObjectRot(objectid,X2,Y2,Z2);
if(Y2 >= 40 && Y2 <= 310)
{
if(i != 0)
{
PHY_DeleteObject(objectid);
SetObjectRot(objectid,X2,90,Z2);
}
}
if(Y2 <= -40 && Y2 >= -310)
{
if(i != 0)
{
PHY_DeleteObject(objectid);
SetObjectRot(objectid,X2,-90,Z2);
}
}
}
}
}
}
}
}
return 1;
}

[Ajuda] Actor

$
0
0
Olá pessoal, como faço para o Actor repetir a animação sem parar?
É só uma dúvida mesmo.

PHP Code:

ApplyActorAnimation(NPC[24], "DEALER""DEALER_DEAL"4.000000

-Grato

User Path problem

$
0
0
i have this code

Code:

stock PlayerPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),path,playername);
    return string;
}

and Errors :
Code:

C:\Users\BetterThan\Desktop\samp037_svr_R2-1-1_win32\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(427) : warning 201: redefinition of constant/macro (symbol "isnull(%0)")
C:\Users\BetterThan\Desktop\samp037_svr_R2-1-1_win32\filterscripts\main.pwn(35) : error 029: invalid expression, assumed zero
C:\Users\BetterThan\Desktop\samp037_svr_R2-1-1_win32\filterscripts\main.pwn(35) : warning 215: expression has no effect
C:\Users\BetterThan\Desktop\samp037_svr_R2-1-1_win32\filterscripts\main.pwn(35) : warning 215: expression has no effect
C:\Users\BetterThan\Desktop\samp037_svr_R2-1-1_win32\filterscripts\main.pwn(35) : error 001: expected token: ";", but found ")"
C:\Users\BetterThan\Desktop\samp037_svr_R2-1-1_win32\filterscripts\main.pwn(35) : error 029: invalid expression, assumed zero
C:\Users\BetterThan\Desktop\samp037_svr_R2-1-1_win32\filterscripts\main.pwn(35) : fatal error 107: too many error messages on one line

all Codes :
Code:

#include <a_samp>
#include <sscanf2>
#include <zcmd>
#include <YSI\y_ini>

#define RED 0xFF0000FF
#define DARKRED 0x800000FF
#define BLUE 0x0000FFFF
#define DARKBLUE 0x0000A0FF
#define GREEN 0x00FF00FF
#define DARKGREEN 0x008000FF
#define YELLOW 0xFFFF00FF
#define WHITE 0xFFFFFFFF
#define BLACK 0x000000FF

#define path = "Users/%s.ini"

enum pInfo
{
        Admin,
        Password,
        Cash,
        WantedLevel,
        Kills,
        Deaths,
        Skin,
        Jail ,
        Float:PosX, Float:PosY, Float:PosZ
}
new PlayerInfo[MAX_PLAYERS][pInfo];
stock PlayerPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),path,playername);
    return string;
}
forward LoadUser_Data(playerid, name[], value[]);
public LoadUser_Data(playerid, name[], value[])
{
        INI_Int("Admin", PlayerInfo[playerid][Admin]);
        INI_Int("Password", PlayerInfo[playerid][Password]);
        INI_Int("Cash", PlayerInfo[playerid][Cash]);
        INI_Int("WantedLevel", PlayerInfo[playerid][WantedLevel]);
        INI_Int("Kills", PlayerInfo[playerid][Kills]);
        INI_Int("Deaths", PlayerInfo[playerid][Deaths]);
        INI_Int("Skin", PlayerInfo[playerid][Skin]);
        INI_Int("Jail", PlayerInfo[playerid][Jail]);
        INI_Float("PosX", PlayerInfo[playerid][PosX]);
        INI_Float("PosY", PlayerInfo[playerid][PosY]);
        INI_Float("PosZ", PlayerInfo[playerid][PosZ]);
        return 1;
}

public OnPlayerConnect(playerid)
{
        if(fexist(PlayerPath(playerid)))
        {
               
        }
        return 1;
}


Server crashing

$
0
0
My server keeps crashing and it happened almost evrry day. I have crashdetect plugin loaded but it does not show any output before the crash.

Hosted Tab Less Than $7

$
0
0
Hello,

-Is there any website which sells Hosted Tab less than $7?
-How many servers Hosted Tab can hold?

Thanks

[Ajuda] Discord Sicronização

$
0
0
Alguém conhece algum plugin ou bot que mostre os Players online no servidor em um chat por voz:
Exemplo:

Looking for script testers

$
0
0
Hello. I'm currently working on a script and I plan to open a server in the near future. If any of you would like to join me and help test out these features, please reply or send me a PM.

[Ajuda] Desbanir Player

$
0
0
Olá, boa tarde! Hoje estou tentando desenvolver um Sistema de Banimento em DOF2, porém agora estou na etapa de desbanir o jogador.. Mais estou com sérios problemas, alguém pode me ajudar a resolver?

Quando eu digito /desban "id do player", fala que "Está conta não se encontra banida.", mais a conta está banida sim, eu digito o nick corretamente mais não faz nada..

PHP Code:

command(desbanplayeridparams[])
{
    if(
sscanf(params"s[24]"params[0]))
        return 
SendClientMessage(playerid, -1"Uso: /desban [nick]");

    
String GetBanFile(params[0]),
    
String GetIPBanFile(params[0]);
    
    if(!
DOF2_FileExists(String))
        return 
SendClientMessage(playerid, -1,"Está conta não se encontra banida.");

    if(
DOF2_FileExists(String))
    {
        
GetBanFile(DOF2_RemoveFile(String));
         
GetIPBanFile(DOF2_RemoveFile(String));
    }
    return 
SendClientMessage(playerid, -1"Conta retirada da lista de bans com sucesso.");


[0.3DL] Bowling System Version 2

$
0
0
List :
1. Ball Spin
2. Ball in the hall
3. Interior few Change
4. Bowling Table 5 Activity
5. 1 Table Player Max 4 or Min 1

Next Version
Score Board custom txd use reality Bowling System

video : https://youtu.be/yvRGC2hYOWI

Game-mp question

$
0
0
Hello, i just found my old game-mp account but seems i can't login, i enter email and password but login popup keeps appearing. Probably account got deleted for inactivity?

I wrote them an email using the support email they have, meanwhile, can i get a response here? I really need that account back. :|

[Ajuda] Zamaroht Editor

$
0
0
Boa tarde, estou cansado de tentar arrumar isto já, ja mexi com textdraw parei e agora to voltando denovo e o mesmo erro continua... sobre a merda do size ...

Na print tem uma textdraw preta, e dentro dela ta escrito "New Textdraw"

Quando clico lá quero que executa uma função e ok executa, o problema é que se eu clico fora dela, seja em baixo dela ou a direta dela, também executa ...


Como posso resolver?

Veja a prints: https://imgur.com/a/B0XOlUn

Como pode ver, onde tem o circulo vermelho é onde eu clico e aparece a função ...

Tem algum editor que não bug assim? ou tem que ir ajeitando até ficar joia msm? Uso o Zamaroht
Link: https://forum.sa-mp.com/showthread.php?t=406833

[/DRAG] Command Isn't Working

$
0
0
Hello,
I have Linko Gaming Roleplay script and it has too many bugs with /cuff /uncuff and /drag commands can anyone please tell me how can i fix that bug? that /drag cmd isn't working.

Code:

CMD:drag(playerid, params[])
{
        if(IsACop(playerid))
        {
                new string[128], giveplayerid;
                if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /drag [playerid]");

                if(IsPlayerConnected(giveplayerid))
                {
                        if(GetPVarInt(giveplayerid, "PlayerCuffed") == 2)
                        {
                                if(IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playerid, COLOR_WHITE, " You must be out of the vehicle to use this command.");
                                if(GetPVarInt(giveplayerid, "BeingDragged") == 1)
                                {
                                        SendClientMessageEx(playerid, COLOR_WHITE, " That person is already being dragged. ");
                                        return 1;
                                }
                new Float:dX, Float:dY, Float:dZ;
                                GetPlayerPos(giveplayerid, dX, dY, dZ);
                                if(!IsPlayerInRangeOfPoint(playerid, 5.0, dX, dY, dZ))
                                {
                                        SendClientMessageEx(playerid, COLOR_GRAD2, " That suspect is not near you.");
                                        return 1;
                                }
                                format(string, sizeof(string), "* %s is now dragging you.", GetPlayerNameEx(playerid));
                                SendClientMessageEx(giveplayerid, COLOR_WHITE, string);
                                format(string, sizeof(string), "* You are now dragging %s, you may move them now.", GetPlayerNameEx(giveplayerid));
                                SendClientMessageEx(playerid, COLOR_WHITE, string);
                                format(string, sizeof(string), "* %s grabs ahold of %s and begins to move them.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                SendClientMessageEx(playerid, COLOR_WHITE, "You are now dragging the suspect, press the '{AA3333}FIRE{FFFFFF}' button to stop.");
                                SetPVarInt(giveplayerid, "BeingDragged", 1);
                                SetPVarInt(playerid, "DraggingPlayer", giveplayerid);
                                SetTimerEx("DragPlayer", 1000, 0, "ii", playerid, giveplayerid);
                        }
                        else
                        {
                                SendClientMessageEx(playerid, COLOR_WHITE, " The specified person is not cuffed !");
                        }
                }
        }
        else
        {
                SendClientMessageEx(playerid, COLOR_GREY, "You are not a Law Enforcement Official!");
                return 1;
        }
        return 1;
}

"ShowPlayerNameTagForPlayer" Function

$
0
0
Code:

dcmd_event(playerid, params[])
{
    #pragma unused params
        if(!IsPlayerSpawned(playerid))
        {
          SendClientMessage(playerid, 0xFF0000FF, "You must be spawned");
          return 1;
        }
        if(!event_started)
        {
          SendClientMessage(playerid, 0xFF0000FF, "Event not started.");
          return 1;
        }
        new string[28], Float:Pos[3];
        SetPVarInt(playerid, "JoinedEvent", 1);
        foreach(new i : Player)
        {
          if(GetPVarInt(i, "JoinedEvent") == 1)
          {
              ShowPlayerNameTagForPlayer(playerid, i, false), ShowPlayerNameTagForPlayer(i, playerid, false);
          }
        }
        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
        SetPVarFloat(playerid, "Last_X", Pos[0]);
        SetPVarFloat(playerid, "Last_Y", Pos[1]);
        SetPVarFloat(playerid, "Last_Z", Pos[2]);

        SetPlayerPos(playerid, -1396.4824, 1246.6775, 1039.8672);
        SetPlayerInterior(playerid, 16);
        SetPlayerVirtualWorld(playerid, EVENT_VW);

        for(new slot; slot < 13; slot++)
    {
        GetPlayerWeaponData(playerid, slot, PlayerSavedWeapon[playerid][slot], PlayerSavedAmmo[playerid][slot]);
    }
        ResetPlayerWeapons(playerid);
        Helmet[playerid] = false;
       
        SetPlayerColor(playerid, 0xF2F5A9FF);
        SetPlayerTeam(playerid, 1);
        SavedpWanted[playerid] = GetPlayerWantedLevel(playerid);
        SetPlayerWantedLevel(playerid, 4);
        SetPlayerHealth(playerid, 700);
    return 1;
}

//In server timer:
                if(CountEventPlayers() >= 5)
                {
                new rand;
            foreach(new i : Player)
            {
                  if(GetPVarInt(i, "JoinedEvent") == 1)
                  {
                        PlayerPlaySound(i, 4200, 0.0, 0.0, 0.0);
                        rand = random(sizeof(AirPlaneCoords));
                        SetPlayerFacingAngle(i, AirPlaneCoords[rand][3]);
                        SetPlayerPos(i, AirPlaneCoords[rand][0], AirPlaneCoords[rand][1], AirPlaneCoords[rand][2]);
                        Ejected[i] = false;
           
                          SetPlayerColor(i, 0xF2F5A900);
                                  SetPlayerTeam(i, NO_TEAM);
                                  PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
                                  SetPlayerHealth(i, 100.0);

                  }
            }
            }
            else
            {
            SendClientMessageToAll(0xFF0000FF, "[EVENT] {FA5858}Event didn't start because not 5 players joined.");
            }

Problem: playername tag hiding in /event CMD But in server timer when event players teleported the nametags is shown. What's problem?
sorry for my bad english

Samp limits problems

$
0
0
I were making a huge map mod (playerside)
The limits of object limits of samp prevents me from it
Is there any way I can increase the limit

or any developers here can give me a special samp.dll file with unlimited object/ipl/ide/cars/lods/,

if I'm wrong sorry my friends say limits are writen in samp.dll
I tried more limit adjuster mods it don't work with samp

/stats It doesn't works

$
0
0
why this command is not executed

Code:

CMD:stats(playerid,params[])
{
    new id;
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, "¤¤ Uso: /stats [playerid]");
    if (!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ROJO, "¤¤ El jugador no esta conectado");
    new string[350], str2[100];
    new Float:ratio=floatdiv(PlayerInfo[id][cKills], PlayerInfo[id][cDeaths]);
          foreach(new a : Vip)
        {
    format(string, 128, "%d %d %.2f", PlayerInfo[id][cKills], PlayerInfo[id][cDeaths], ratio);
    format(string, sizeof(string), "{A2C4FF}» (ID:%d)\n» Nombre: %s\n» Asesinatos: %d\n» Muertes: %d\n» K/D Ratio: %.2f\n» Score: %d\n» Nivel: %d\n» Vip: %d\n» Skin: %d\n» Fps: %d\n» Ping: %d\n» Dinero: %d\n\n",id, PlayerName2(id), PlayerInfo[id][cKills], PlayerInfo[id][cDeaths], ratio, GetPlayerScore(id), PlayerInfo[playerid][cNivel], PlayerInfo[a][cVip], GetPlayerSkin(id), FPS2[id], GetPlayerPing(id), GetPlayerMoney(id));
    format(str2, sizeof(str2), "{A2C4FF}» Clan [TAG]: %s \n» Duelos ganados: %d \n» Duelos perdidos: %d \n» Carreras:", PlayerInfo[id][cClan], PlayerInfo[id][DWon], PlayerInfo[id][DLost]);
        strcpy(string, str2, sizeof(string));
    ShowPlayerDialog(playerid, DIALOGO_STATS, DIALOG_STYLE_MSGBOX,"{0086FF}<< PLAYER STATS >>",string,"Cerrar","");
    }
    return 1;
}

added this line because the one above was very long but he did not run

Code:

    format(str2, sizeof(str2), "{A2C4FF}» Clan [TAG]: %s \n» Duelos ganados: %d \n» Duelos perdidos: %d \n» Carreras:", PlayerInfo[id][cClan], PlayerInfo[id][DWon], PlayerInfo[id][DLost]);
Viewing all 18226 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>