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

[Help] /getlastlogin command

$
0
0
Hi everyone. I have a problem with this command and I think that I'm doing is in a wrong way. I know the mysql is better than ini for this, but I use .ini

Code:

CMD:lastlogin(playerid, params[])
        {
                if (Staff(playerid,ModSuperior)) return 1;
                if (isnull(params)) return ParamsINC(playerid, "/lastlogin [Name]");
                new Str2[128];
                A_Format(Str2, "Usuarios/%s.ini", params);
                if (!fexist(Str2)) return Error(playerid, "Not found!");
                new mes[40];
                switch(InfoJugador[playerid][jMes])
            {
                        case 1: mes = "Enero";
                        case 2: mes = "Febrero";
                        case 3: mes = "Marzo";
                        case 4: mes = "Abril";
                        case 5: mes = "Mayo";
                        case 6: mes = "Junio";
                        case 7: mes = "Julio";
                        case 8: mes = "Agosto";
                        case 9: mes = "Septiembre";
                        case 10: mes = "Octubre";
                        case 11: mes = "Noviembre";
                        case 12: mes = "Diciembre";
          }
                A_Format(Str2,"Panel:{FFFFFF} Last login of %s: {FF6359}%d - %s [ %d:%d ].", params[0], InfoJugador[params[0]][jDia], mes, InfoJugador[params[0]][jHora], InfoJugador[params[0]][jMinuto]);
                Mensaje(playerid,-1,Str2);
                return 1;
        }


hELP WITH CHECKPOINTS

$
0
0
how i can do for change checkpoints size i changed in script but it dont change

new checkpoint[MAX_PLAYERS];
new check[MAX_PLAYERS];

COMMAND:startjob(playerid, params[])
{

checkpoint[playerid] = SetPlayerCheckpoint(playerid, -171.2656, 2025.1487, 16.4946, 2.0);
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
if(job[playerid] == 1)
{

check[playerid] = SetPlayerCheckpoint(playerid, 2182.2268, 2453.1355, 10.1520, 8.0);
}
return 1;
}

[Off] Muito tempo depois...

$
0
0
Eaí pessoal belezaaaa?, acho quase ninguém aqui ou ninguém se lembra, todo esse tempo fora me fez pensar será que as pessoas ainda focam em seus projetos no SA:MP ? Será que as pessoas de antigamente ainda estão aqui ? por que vocês continuam aqui ? poderiam me dizer ?

array index out of bounds

$
0
0
So this command does nothing, just throws an error into the log
pawn Code:
CMD:createdealership(playerid, params[])
{
    new type = 9, Float:x, Float:y, Float:z, Float:a;

    if(PlayerData[playerid][pAdmin] < ASST_MANAGEMENT && !PlayerData[playerid][pDynamicAdmin] && !PlayerData[playerid][pWebDev])
    {
        return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    }
    if(GetNearbyBusiness(playerid) >= 0)
    {
        return SendClientMessage(playerid, COLOR_GREY, "There is a business in range. Find somewhere else to create this one.");
    }
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, a);
    for(new i = 0; i < MAX_BUSINESSES; i ++)
    {
        if(!BusinessInfo[i][bExists])
        {
            mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO businesses (type, price, pos_x, pos_y, pos_z, pos_a, int_x, int_y, int_z, int_a, interior, outsideint, outsidevw) VALUES(%i, %i, '%f', '%f', '%f', '%f', '%f', '%f', '%f', '%f', %i, %i, %i)", type, bizInteriors[type][intPrice], x, y, z, a - 180.0,
                bizInteriors[type][intX], bizInteriors[type][intY], type, bizInteriors[type][intA], bizInteriors[type][intID], GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
            mysql_tquery(connectionID, queryBuffer, "OnAdminCreateBusiness", "iiiffff", playerid, i, type, x, y, z, a);
            return 1;
        }
    }

    SendClientMessage(playerid, COLOR_GREY, "Business slots are currently full. Ask developers to increase the internal limit.");
    return 1;
}
It points to the mysql_format line. Just not sure where I went wrong, exactly nor how to exactly resolve this.

AntiCheat system engraved into my server?

$
0
0
I took all files out from my server that were related to anti cheat system

there were no FS files for this system only script files folder and pawno include
i took them out and the server is still running this system...what should I do now?

besides that I can't even write something in my server chat...text doesn't show up
only in CMD samp-server.exe

someone?

I think I'll just start a new server...:(

Samp opening Local server

$
0
0
Hello, whenever I try to connect to any server by clicking on the SAMP icon, it opens a server of ip :7777 port i.e Connecting to :7777, I just reinstalled my gta SA but the issue is still there. Genuine helps would be appreciated.


Thanks.

[Projeto] Absolute Real Life | Copyright todos os direitos autorais reservados.

$
0
0
[ME]https://youtu.be/EV5wWFPPrCg[/ME]

Anyone know team vs team (tdm server) with map changing every round


[MAP] GTA V Weed Business in SAMP

Automatically give purchased item on site

$
0
0
Hi I'm using My SQL for my server with XAMPP.
I have a User Control Panel runned with my XAMPP\htdocs\
I wanna do something if player buy an item in user control panel's shop, that give the item to player automatically.
For example when player buy something in user control panel, PlayerInfo[playerid][pGoldBuy] = 1000; and in game, send a message to player.

Timer

$
0
0
Why it won't show me the timer?
Only when few seconds left it shows me.

PHP Code:

public OpenVaultDoor(typeseconds)
{
        if(
seconds 1) {
            
seconds--;

            new 
string[128];
            switch(
type)
                {
                        case 
2format(stringsizeof(string), "Vault Door\n{FFFFFF}/plantbomb to blow up vault door.\n{2ECC71}%s"ConvertToMinutes(seconds));
                        case 
3format(stringsizeof(string), "Vault Door - Option 2\n{FFFFFF}/timelock to start time lock (slow & silent)\n{2ECC71}%s"ConvertToMinutes(seconds));
                }

            
UpdateDynamic3DTextLabelText((type == 2) ? VaultLabels[TYPE_EXPLOSIVE] : VaultLabels[TYPE_TIMELOCK], 0xF39C12FFstring);
            
SetTimerEx("OpenVaultDoor"50000false"ii"typeseconds); 


PHP Code:

stock ConvertToMinutes(time)
{
    
// http://forum.sa-mp.com/showpost.php?p=3223897&postcount=11
    
new string[15];//-2000000000:00 could happen, so make the string 15 chars to avoid any errors
    
format(stringsizeof(string), "%02d:%02d"time 60time 60);
    return 
string;


File or Function not found:

$
0
0
I just complied the script with streamer, here's my issue:

Code:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.DL-R1, (C)2005-2018 SA-MP Team


Server Plugins
--------------
 Loading plugin: sscanf


 ===============================

      sscanf plugin loaded.

        Version:  2.8.2

  (c) 2012 Alex "******" Cole

 ===============================

  Loaded.
 Loading plugin: nativechecker
  Loaded.
 Loading plugin: streamer


*** Streamer Plugin v2.9.1 by Incognito loaded ***

  Loaded.
 Loaded 3 plugins.

[artwork:crc] lvpdpc2.dff CRC = 0xFBD1EA7C
[artwork:crc] lvpdpc2.txd CRC = 0xDC92731E
[artwork:crc] lapdpd2.dff CRC = 0xA558D422
[artwork:crc] lapdpd2.txd CRC = 0xA442E2DA
[artwork:crc] wallzzz.dff CRC = 0x4BC6EDFF
[artwork:crc] wallzzz.txd CRC = 0x235E3EEB

Started server on port: 7777, with maxplayers: 50 lanmode is OFF.


Filterscripts
---------------
  Loading filterscript 'mapedit.amx'...
Fusez's Map Editor has been loaded successfully.
  Loaded 1 filterscripts.

  Error: Function not registered: 'mysql_format'
  Error: Function not registered: 'mysql_pquery'
  Error: Function not registered: 'CreateDynamic3DTextLabel'
  Error: Function not registered: 'cache_get_row_count'
  Error: Function not registered: 'cache_get_field_content_int'
  Error: Function not registered: 'cache_get_field_content_float'
  Error: Function not registered: 'cache_get_field_content'
  Error: Function not registered: 'IsValidDynamicObject'
  Error: Function not registered: 'DestroyDynamicObject'
  Error: Function not registered: 'mysql_escape_string'
  Error: Function not registered: 'WP_Hash'
  Error: Function not registered: 'TogglePlayerAllDynamicCPs'
  Error: Function not registered: 'CreateDynamicObject'
  Error: Function not registered: 'Streamer_Update'
  Error: Function not registered: 'DestroyDynamic3DTextLabel'
  Error: Function not registered: 'DestroyDynamicCP'
  Error: Function not registered: 'CreateDynamicCP'
  Error: Function not registered: 'SetDynamicObjectMaterialText'
  Error: Function not registered: 'GetDynamicObjectPos'
  Error: Function not registered: 'MoveDynamicObject'
  Error: Function not registered: 'DestroyDynamicPickup'
  Error: Function not registered: 'CreateDynamicPickup'
  Error: Function not registered: 'CreateDynamicRaceCP'
  Error: Function not registered: 'DestroyDynamicRaceCP'
  Error: Function not registered: 'GetDynamicObjectRot'
  Error: Function not registered: 'SetDynamicObjectRot'
  Error: Function not registered: 'SetDynamicObjectMaterial'
  Error: Function not registered: 'cache_insert_id'
  Error: Function not registered: 'mysql_tquery'
  Error: Function not registered: 'cache_get_data'
  Error: Function not registered: 'EditDynamicObject'
  Error: Function not registered: 'AttachDynamicObjectToVehicle'
  Error: Function not registered: 'cache_get_row'
  Error: Function not registered: 'cache_get_row_int'
  Error: Function not registered: 'Streamer_ToggleItem'
  Error: Function not registered: 'cache_affected_rows'
  Error: Function not registered: 'mysql_connect'
  Error: Function not registered: 'UpdateDynamic3DTextLabelText'
  Error: Function not registered: 'Streamer_GetTickRate'
  Error: Function not registered: 'Streamer_SetTickRate'
  Error: Function not registered: 'Streamer_GetMaxItems'
  Error: Function not registered: 'Streamer_SetMaxItems'
  Error: Function not registered: 'Streamer_GetVisibleItems'
  Error: Function not registered: 'Streamer_SetVisibleItems'
  Error: Function not registered: 'Streamer_GetRadiusMultiplier'
  Error: Function not registered: 'Streamer_SetRadiusMultiplier'
  Error: Function not registered: 'Streamer_IsToggleCameraUpdate'
  Error: Function not registered: 'Streamer_ToggleCameraUpdate'
  Error: Function not registered: 'Streamer_IsToggleIdleUpdate'
  Error: Function not registered: 'Streamer_ToggleIdleUpdate'
  Error: Function not registered: 'GetPlayerVisibleDynamicCP'
  Error: Function not registered: 'TogglePlayerDynamicCP'
  Error: Function not registered: 'Streamer_GetCellDistance'
  Error: Function not registered: 'Streamer_GetCellSize'
  Error: Function not registered: 'Streamer_ToggleErrorCallback'
  Error: Function not registered: 'CreateDynamicRectangle'
  Error: Function not registered: 'CountDynamicObjects'
  Error: Function not registered: 'CountDynamicPickups'
  Error: Function not registered: 'CountDynamicCPs'
  Error: Function not registered: 'CountDynamic3DTextLabels'
  Error: Function not registered: 'mysql_log'
  Error: Function not registered: 'mysql_close'
  Error: Function not registered: 'Streamer_DestroyAllItems'
Script[gamemodes/D-RP.amx]: Run time error 19: "File or function is not found"
Number of vehicle models: 0

help me how to fonts.txd use?

[Projeto] Absolute Real life | A Verdadeira História

$
0
0
Não entendi... eu postei o projeto aqui, algum moderador removeu .. mds calma, sei que o projeto é foda.

Estou respostando aqui é como disse sempre irei atualizar com vídeos.

[ME]https://youtu.be/tw6vo15UseU

Sistema abaixo : Sempre que o usuário for ferido, o usuário ira consumir seu estoque de ferramentas é remédios.

[ME]https://youtu.be/7-d2IH8-Sic

Old School Roleplay [0.3.7 | www.os-rp.com]

$
0
0
Why us
Old School Roleplay may be young in comparison to many alternative San Andreas Multiplayer servers out there, but our experience possess years of community management along with development team. Old School Roleplay plans on growing at a steady rate while primarily focusing on the needs and suggestions of our vibrant community, which is home to a subtle mix of different personalities, characters and individuals. We are a place where your dreams become true. It's a place which provides fun and professionalism. We're offering you a quality level of Role Play which allows you to join factions/gangs and become whoever you'd like to become one day.

Old School Roleplay prides itself as a unique setting in and among the large number of roleplay servers readily available within the San Andreas Multiplayer community, where many players may often struggle to find a suitable server to fit in and call home. Especially when there are a number of large player based servers who often fail to provide its player base with the necessary support and encouragement that many players crave in order to truly enjoy their free time online. Here, we encourage creativity. This is what makes Old School Roleplay different from the rest, our love for giving you a canvas to be as creative as you want to be without any hassle. With a highly experienced, dedicated staff team and a friendly, reasonably mature group of players, new users can join us with confidence, knowing that they will always meet new friends and discover a new wave of creativity here at Old School Roleplay.


Factions
Factions are a fundamental aspect of Old School Roleplay. We aim to reward active and high-quality factions over time with fun, beneficial, and exciting perks which will be discussed with the faction directly. Introducing our new “tiered faction” systems, active development defines the long lasting development of a faction here. There are no limitations to what factions you can make as long as you can imagine it, which is why we welcome a whole host of unique concepts that fit within Los Santos. Cops. Mobsters. Thugs, gangsters. Business owners, bankers, judges, lawyers. Whatever you want to be. If you're struggling with faction ideas, we implore you to contact members of our specially designated faction management to help you come to terms with what you want. They can help support, advise, and provide additional help DIRECTLY TO YOU, to help your faction concept come to life. Already, Old School Roleplay features a variety of legal and illegal roleplay factions for you to enjoy, which all help to provide active and high-quality roleplay within the community. Access to firearms and drugs are provided to illegal factions that prove to be active and successful.


Quality
Old School Roleplay enforces medium roleplay standards with a firm, but inherently friendly approach. For players who are new to our community, we offer leniency and an opportunity to expand their creativity, thanks to our staff who are ready to assist and teach them everything they need to know in order to learn a better way. This ensures that even the newest or inexperienced players have the opportunity to create or become something big, in our world.

Events
Old School Roleplay hosts events in game, either it be a property opening such as a bar or club, or even server based events such as natural disasters, holiday events, and much more. You can expect to discover a world of casinos, nightclubs, themed events and everything else in between. Many of the events are player created, whereas others may be produced by the staff team.



Professions
There are plans for a number of different professions on Old School Roleplay. Currently we have a bunch of jobs, starting with Pizzaman, Trucker, Courier and so many more! At the start, every player is encouraged to start a business, give it a try, after receiving a bank loan through in character means. But as far as what we have right now, these are great ways of making money in the beginning stages of developing your character. We are actively developing new professions such as landscaping, construction companies, any type of mom and pop business you can begin to imagine. The number of professions a player can make money with will only grow along with our playerbase. Remember, we love creativity!


Staff Team
Old School Roleplay consists of a number of small teams that are made from players from within our community, such as developers, mappers, administrators, etc. Each team has their own role and tasks in order to make sure that every aspect of the community and server runs as smoothly as possible. Players who show a strong understanding of the community and the server, along with a genuine and courteous attitude towards players will often be invited into the staff team in order to provide their level of expertise and knowledge in helping the management of the community. The staff in Old School Roleplay sacrifice their time and energy to make this a wonderful experience for you, the player. However, they’re not here to tally up everything they do for you, they’re here to help, so please be as respectful as you can, and we promise that they will be nothing but the MOST respectful, back.




Gangs
There are plenty of gangs in our server. From street gang to mafia and cartel, It doesn't matter. If you like life full of murders, drugs, prostitution you can join any gang but if you wish you can even open your own. It only require a background story on our forums stated above. Being a part of a gang is very dangerous, each gang is supposed to claim territories as much as they can, this will cause beef so you can go ahead and war with other gangs but not only this, Police Department will also try to do anything to shut your gang down. Being in a gang gives you a lot of abilities, starting from gun crafting, drugs and so many more. Each gang has its own secret warehouse where they can do illegal stuff, remember if PD find out where your gang warehouse is located, they can clean and shut it down. So be careful who you trust! Each gang has its own type of representing, one of them is gang bandana, this gives your gang more reputation in the city of Los Santos, so whenever you do something that will gain your gang reputation, make sure you are wearing your bandana!



/wantedcars list Command is bugging

$
0
0
Hey,

i have a command that shows all wanted cars that pd can save into a database, but the command shows the only car that is in the database like 10000 times, and the others but the first are bugged, i changed some things in my script an it only shows "sultan" now at the very bottom, without licenseplate and wanted reason


My Loading Function
Code:

new query2[128];
format(query2,sizeof(query2),"SELECT * FROM wantedcars");
mysql_function_query(dbhandle,query2,true,"LoadWantedCars","i",playerid);

My Command
Code:

CMD:wantedcars(playerid)
{
        new string[1024];
        for(new w=0; w<sizeof(wInfo); w++)
        {
                format(string,sizeof(string),"%s\t%s\t%s\n%s",wInfo[w][CarModel],wInfo[w][WantedKennzeichen],wInfo[w][WantedGrund],string);
        }
        ShowPlayerDialog(playerid, WANTEDCARSDIALOG, DIALOG_STYLE_TABLIST,"Gesuchte Fahrzeuge", string, "Okay", "");
        return 1;
}

My Loading Function public:

Code:

forward LoadWantedCars(playerid);
public LoadWantedCars(playerid)
{
        new num_rows,num_fields;
        cache_get_data(num_rows,num_fields,dbhandle);
        if(!num_rows)return 1;
        new tmp_wantedkennzeichen[128];
        new tmp_wantedgrund[1024];
        new tmp_carmodel[128];
        for(new i=0; i<num_rows; i++)
        {
                new wID = getFreeWantedCarID();
                cache_get_field_content(0,"wantedkennzeichen",tmp_wantedkennzeichen,dbhandle,128);
                cache_get_field_content(0,"wantedgrund",tmp_wantedgrund,dbhandle,1024);
                cache_get_field_content(0,"model",tmp_carmodel,dbhandle,128);
                strcpy(wInfo[wID][WantedKennzeichen],tmp_wantedkennzeichen,128);
                strcpy(wInfo[wID][WantedGrund],tmp_wantedgrund,1024);
                wInfo[wID][db_id] = cache_get_field_content_int(0,"id",dbhandle);
                strcpy(wInfo[wID][CarModel],tmp_carmodel,128);
        }
        return 1;
}


thats two of the bugs:



Help with NPC

$
0
0
I'm starting server.exe after all the code back server.exe shuts down how to fix help npc denmi sourced from npc how do I delete gamemode sf-cnr

Code:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[18:00:02]
[18:00:02] Server Plugins
[18:00:02] --------------
[18:00:02]  Loading plugin: crashdetect
[18:00:02]  CrashDetect plugin 4.19.4
[18:00:02]  Loaded.
[18:00:02]  Loading plugin: mysql
[18:00:02]  >> plugin.mysql: R39-6 successfully loaded.
[18:00:02]  Loaded.
[18:00:02]  Loading plugin: gvar
[18:00:02]

*** GVar Plugin v1.3 by Incognito loaded ***

[18:00:02]  Loaded.
[18:00:02]  Loading plugin: regex
[18:00:02]


[18:00:02] ______________________________________


[18:00:02]  Regular Expression Plugin v0.2.1 loaded
[18:00:02] ______________________________________


[18:00:02]  By: Fro (c) Copyright <TBG> 2009-2011
[18:00:02] ______________________________________


[18:00:02]  Loaded.
[18:00:02]  Loading plugin: sscanf
[18:00:02]

[18:00:02]  ===============================

[18:00:02]      sscanf plugin loaded.   

[18:00:02]          Version:  2.8.2       

[18:00:02]    (c) 2012 Alex "******" Cole 

[18:00:02]  ===============================

[18:00:02]  Loaded.
[18:00:02]  Loading plugin: streamer
[18:00:02]

*** Streamer Plugin v2.9.3 by Incognito loaded ***

[18:00:02]  Loaded.
[18:00:02]  Loading plugin: FCNPC
[18:00:02]
[18:00:02] -------------------------------------------------
[18:00:02]      FCNPC - Fully Controllable NPC v1.8.2
[18:00:02]          Windows SA-MP 0.3.7 R2
[18:00:02]          Jan  8 2018 at 01:14:48
[18:00:02]
[18:00:02]  Author:      OrMisicL (2013 - 2015)
[18:00:02]  Continued by: ziggi (2016 - present)
[18:00:02]  Contributors: kurta999, Neutralneu
[18:00:02] -------------------------------------------------
[18:00:02]
[18:00:02] Loading...
[18:00:02]  Loaded.
[18:00:02]  Loading plugin: Whirlpool
[18:00:02] 
[18:00:02]  ==================
[18:00:02] 
[18:00:02]  Whirlpool loaded
[18:00:02] 
[18:00:02]  ==================
[18:00:02] 
[18:00:02]  Loaded.
[18:00:02]  Loading plugin: RouteConnectorPlugin
[18:00:02]  Loaded.
[18:00:02]  Loading plugin: MapAndreas
[18:00:02]  Loaded.
[18:00:02]  Loading plugin: sampcac_server
[18:00:02]  SA-MP Clientside AntiCheat v0.10.0 is being loaded ...
[18:00:02]  Loaded.
[18:00:02]  Loading plugin: TPoker
[18:00:02] **plugin: TPoker by ThreeKingz was successfully loaded! **
[18:00:02]  Loaded.
[18:00:02]  Loading plugin: MerRandom
[18:00:02] Plugin MerRandom v2.1 - by Cyber_Punk got loaded.
[18:00:02]  Loaded.
[18:00:02]  Loading plugin: FileManager
[18:00:02] ******************
[18:00:02] ** FILE MANAGER **
[18:00:02] **    Loaded    **
[18:00:02] ** Version 1.5 **
[18:00:02] ******************
[18:00:02]  Loaded.
[18:00:02]  Loaded 14 plugins.

[18:00:02]
[18:00:02] Filterscripts
[18:00:02] ---------------
[18:00:02]  Loading filterscript 'sampcac_testscript.amx'...
[18:00:02] AMX (20674208) loaded
[18:00:02]  SAMPCAC test filterscript loaded.
[18:00:02]  Loaded 1 filterscripts.

[18:00:02] AMX (20579712) loaded
[18:00:02] 
[18:00:02] 
[18:00:02] 
[18:00:02]  =======================================
[18:00:02]  |                                    |
[18:00:02]  |        YSI version 4.00.0001        |
[18:00:02]  |        By Alex "******" Cole        |
[18:00:02]  |                                    |
[18:00:02]  =======================================
[18:00:02] 
[18:00:30] [MYSQL]: Connection to database is successful.
[18:00:30] [npc:join] [BOT]SexShopClerk0 has joined the server (334:127.0.0.1)
[18:00:30] [npc:join] [BOT]SexShopClerk1 has joined the server (333:127.0.0.1)
[18:00:30] [npc:join] [BOT]SexShopClerk2 has joined the server (332:127.0.0.1)
[18:00:30] [npc:join] [BOT]SexShopClerk3 has joined the server (331:127.0.0.1)
[18:00:30] [npc:join] [BOT]BettingClerk has joined the server (330:127.0.0.1)
[18:00:30] [npc:join] [BOT]Zero5 has joined the server (329:127.0.0.1)
[18:00:30] [npc:join] [BOT]ProlapsClerk6 has joined the server (328:127.0.0.1)
[18:00:30] [npc:join] [BOT]ProlapsClerk7 has joined the server (327:127.0.0.1)
[18:00:30] [npc:join] [BOT]DiscoBartender8 has joined the server (326:127.0.0.1)
[18:00:30] [npc:join] [BOT]DiscoBartender9 has joined the server (325:127.0.0.1)
[18:00:30] [npc:join] [BOT]RestaurantOwner10 has joined the server (324:127.0.0.1)
[18:00:30] [npc:join] [BOT]RestaurantOwner11 has joined the server (323:127.0.0.1)
[18:00:30] [npc:join] [BOT]BrothelManager12 has joined the server (322:127.0.0.1)
[18:00:30] [npc:join] [BOT]Gunsdealer13 has joined the server (321:127.0.0.1)
[18:00:30] [npc:join] [BOT]Gunsdealer14 has joined the server (320:127.0.0.1)
[18:00:30] [npc:join] [BOT]Gunsdealer15 has joined the server (319:127.0.0.1)
[18:00:30] [npc:join] [BOT]Gunsdealer16 has joined the server (318:127.0.0.1)
[18:00:30] [npc:join] [BOT]Gunsdealer17 has joined the server (317:127.0.0.1)
[18:00:30] [npc:join] [BOT]Gunsdealer18 has joined the server (316:127.0.0.1)
[18:00:30] [npc:join] [BOT]Gunsdealer19 has joined the server (315:127.0.0.1)
[18:00:30] [npc:join] [BOT]Gunsdealer20 has joined the server (314:127.0.0.1)
[18:00:30] [npc:join] [BOT]Gunsdealer21 has joined the server (313:127.0.0.1)
[18:00:30] [npc:join] [BOT]Gunsdealer22 has joined the server (312:127.0.0.1)
[18:00:30] [npc:join] [BOT]Gunsdealer23 has joined the server (311:127.0.0.1)
[18:00:30] [npc:join] [BOT]ZIPClerk24 has joined the server (310:127.0.0.1)
[18:00:30] [npc:join] [BOT]ZIPClerk25 has joined the server (309:127.0.0.1)
[18:00:30] [npc:join] [BOT]ZIPClerk26 has joined the server (308:127.0.0.1)
[18:00:30] [npc:join] [BOT]ZIPClerk27 has joined the server (307:127.0.0.1)
[18:00:30] [npc:join] [BOT]BincoClerk28 has joined the server (306:127.0.0.1)
[18:00:30] [npc:join] [BOT]BincoClerk29 has joined the server (305:127.0.0.1)
[18:00:30] [npc:join] [BOT]BincoClerk30 has joined the server (304:127.0.0.1)
[18:00:30] [npc:join] [BOT]BincoClerk31 has joined the server (303:127.0.0.1)
[18:00:30] [npc:join] [BOT]VictimClerk32 has joined the server (302:127.0.0.1)
[18:00:30] [npc:join] [BOT]VictimClerk33 has joined the server (301:127.0.0.1)
[18:00:30] [npc:join] [BOT]VictimClerk34 has joined the server (300:127.0.0.1)
[18:00:30] [npc:join] [BOT]SuburbanClerk35 has joined the server (299:127.0.0.1)
[18:00:30] [npc:join] [BOT]SuburbanClerk36 has joined the server (298:127.0.0.1)
[18:00:30] [npc:join] [BOT]SuburbanClerk37 has joined the server (297:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender38 has joined the server (296:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender39 has joined the server (295:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender40 has joined the server (294:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender41 has joined the server (293:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender42 has joined the server (292:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender43 has joined the server (291:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender44 has joined the server (290:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender45 has joined the server (289:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender46 has joined the server (288:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender47 has joined the server (287:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender48 has joined the server (286:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender49 has joined the server (285:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender50 has joined the server (284:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender51 has joined the server (283:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender52 has joined the server (282:127.0.0.1)
[18:00:30] [npc:join] [BOT]Bartender53 has joined the server (281:127.0.0.1)
[18:00:30] [npc:join] [BOT]BurgerWorker54 has joined the server (280:127.0.0.1)
[18:00:30] [npc:join] [BOT]BurgerWorker55 has joined the server (279:127.0.0.1)
[18:00:30] [npc:join] [BOT]BurgerWorker56 has joined the server (278:127.0.0.1)
[18:00:30] [npc:join] [BOT]BurgerWorker57 has joined the server (277:127.0.0.1)
[18:00:30] [npc:join] [BOT]BurgerWorker58 has joined the server (276:127.0.0.1)
[18:00:30] [npc:join] [BOT]BurgerWorker59 has joined the server (275:127.0.0.1)
[18:00:30] [npc:join] [BOT]BurgerWorker60 has joined the server (274:127.0.0.1)
[18:00:30] [npc:join] [BOT]BurgerWorker61 has joined the server (273:127.0.0.1)
[18:00:30] [npc:join] [BOT]BurgerWorker62 has joined the server (272:127.0.0.1)
[18:00:30] [npc:join] [BOT]BurgerWorker63 has joined the server (271:127.0.0.1)
[18:00:30] [npc:join] [BOT]ChickenWorker64 has joined the server (270:127.0.0.1)
[18:00:30] [npc:join] [BOT]ChickenWorker65 has joined the server (269:127.0.0.1)
[18:00:30] [npc:join] [BOT]ChickenWorker66 has joined the server (268:127.0.0.1)
[18:00:30] [npc:join] [BOT]ChickenWorker67 has joined the server (267:127.0.0.1)
[18:00:30] [npc:join] [BOT]ChickenWorker68 has joined the server (266:127.0.0.1)
[18:00:30] [npc:join] [BOT]ChickenWorker69 has joined the server (265:127.0.0.1)
[18:00:30] [npc:join] [BOT]ChickenWorker70 has joined the server (264:127.0.0.1)
[18:00:30] [npc:join] [BOT]ChickenWorker71 has joined the server (263:127.0.0.1)
[18:00:30] [npc:join] [BOT]ChickenWorker72 has joined the server (262:127.0.0.1)
[18:00:30] [npc:join] [BOT]ChickenWorker73 has joined the server (261:127.0.0.1)
[18:00:30] [npc:join] [BOT]ChickenWorker74 has joined the server (260:127.0.0.1)
[18:00:30] [npc:join] [BOT]ChickenWorker75 has joined the server (259:127.0.0.1)
[18:00:30] [npc:join] [BOT]PizzaWorker76 has joined the server (258:127.0.0.1)
[18:00:30] [npc:join] [BOT]PizzaWorker77 has joined the server (257:127.0.0.1)
[18:00:30] [npc:join] [BOT]PizzaWorker78 has joined the server (256:127.0.0.1)
[18:00:30] [npc:join] [BOT]PizzaWorker79 has joined the server (255:127.0.0.1)
[18:00:30] [npc:join] [BOT]PizzaWorker80 has joined the server (254:127.0.0.1)
[18:00:30] [npc:join] [BOT]PizzaWorker81 has joined the server (253:127.0.0.1)
[18:00:30] [npc:join] [BOT]PizzaWorker82 has joined the server (252:127.0.0.1)
[18:00:30] [npc:join] [BOT]PizzaWorker83 has joined the server (251:127.0.0.1)
[18:00:30] [npc:join] [BOT]PizzaWorker84 has joined the server (250:127.0.0.1)
[18:00:30] [npc:join] [BOT]PizzaWorker85 has joined the server (249:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker86 has joined the server (248:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker87 has joined the server (247:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker88 has joined the server (246:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker89 has joined the server (245:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker90 has joined the server (244:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker91 has joined the server (243:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker92 has joined the server (242:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker93 has joined the server (241:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker94 has joined the server (240:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker95 has joined the server (239:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker96 has joined the server (238:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker97 has joined the server (237:127.0.0.1)
[18:00:30] [npc:join] [BOT]247Worker98 has joined the server (236:127.0.0.1)
[18:00:30] [npc:join] [BOT]Barber99 has joined the server (235:127.0.0.1)
[18:00:30] [npc:join] [BOT]Barber100 has joined the server (234:127.0.0.1)
[18:00:30] [npc:join] [BOT]Barber101 has joined the server (233:127.0.0.1)
[18:00:30] [npc:join] [BOT]Barber102 has joined the server (232:127.0.0.1)
[18:00:30] [npc:join] [BOT]Barber103 has joined the server (231:127.0.0.1)
[18:00:30] [npc:join] [BOT]Barber104 has joined the server (230:127.0.0.1)
[18:00:30] [npc:join] [BOT]Barber105 has joined the server (229:127.0.0.1)
[18:00:30] [npc:join] [BOT]DonutWorker106 has joined the server (228:127.0.0.1)
[18:00:30] [npc:join] [BOT]DonutWorker107 has joined the server (227:127.0.0.1)
[18:00:30] [npc:join] [BOT]DonutWorker108 has joined the server (226:127.0.0.1)
[18:00:30] [npc:join] [BOT]Stripper109 has joined the server (225:127.0.0.1)
[18:00:30] [npc:join] [BOT]Stripper110 has joined the server (224:127.0.0.1)
[18:00:30] [npc:join] [BOT]Otto111 has joined the server (223:127.0.0.1)
[18:00:30] [npc:join] [BOT]Salesman112 has joined the server (222:127.0.0.1)
[18:00:30] [npc:join] [BOT]Jizzy113 has joined the server (221:127.0.0.1)
[18:00:30] [npc:join] [BOT]DidierSachClerk114 has joined the server (220:127.0.0.1)
[18:00:30] [npc:join] [BOT]SteakhouseOwner115 has joined the server (219:127.0.0.1)
[18:00:30] [npc:join] [BOT]SteakhouseOwner116 has joined the server (218:127.0.0.1)
[18:00:30] [npc:join] [BOT]SteakhouseOwner117 has joined the server (217:127.0.0.1)
[18:00:30] [npc:join] [BOT]SteakhouseOwner118 has joined the server (216:127.0.0.1)
[18:00:30] [npc:join] [BOT]SteakhouseOwner119 has joined the server (215:127.0.0.1)
[18:00:30] [npc:join] [BOT]Priest120 has joined the server (214:127.0.0.1)
[18:00:30] [npc:join] [BOT]Priest121 has joined the server (213:127.0.0.1)
[18:00:30] [npc:join] [BOT]Priest122 has joined the server (212:127.0.0.1)
[18:00:30] [npc:join] [BOT]Priest123 has joined the server (211:127.0.0.1)
[18:00:30] [npc:join] [BOT]Priest124 has joined the server (210:127.0.0.1)
[18:00:30] [npc:join] [BOT]Priest125 has joined the server (209:127.0.0.1)
[18:00:30] [npc:join] [BOT]HotelBartender126 has joined the server (208:127.0.0.1)
[18:00:30] [npc:join] [BOT]VehicleDealer127 has joined the server (207:127.0.0.1)
[18:00:30] [npc:join] [BOT]VehicleDealer128 has joined the server (206:127.0.0.1)
[18:00:30] [npc:join] [BOT]VehicleDealer129 has joined the server (205:127.0.0.1)
[18:00:30] [npc:join] [BOT]Banker130 has joined the server (204:127.0.0.1)
[18:00:30] [npc:join] [BOT]Banker131 has joined the server (203:127.0.0.1)
[18:00:30] [npc:join] [BOT]Banker132 has joined the server (202:127.0.0.1)
[18:00:30] [npc:join] [BOT]Banker133 has joined the server (201:127.0.0.1)
[18:00:30] [npc:join] [BOT]Pawnbroker134 has joined the server (200:127.0.0.1)
[18:00:30] [npc:join] [BOT]Pawnbroker135 has joined the server (199:127.0.0.1)
[18:00:30] [npc:join] [BOT]Pawnbroker136 has joined the server (198:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier137 has joined the server (197:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier138 has joined the server (196:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier139 has joined the server (195:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier140 has joined the server (194:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier141 has joined the server (193:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier142 has joined the server (192:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier143 has joined the server (191:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier144 has joined the server (190:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier145 has joined the server (189:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier146 has joined the server (188:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier147 has joined the server (187:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier148 has joined the server (186:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier149 has joined the server (185:127.0.0.1)
[18:00:30] [npc:join] [BOT]GasCashier150 has joined the server (184:127.0.0.1)
[18:00:30] [npc:join] [BOT]TriadBoss151 has joined the server (183:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad0 has joined the server (182:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad1 has joined the server (181:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad2 has joined the server (180:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad3 has joined the server (179:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad4 has joined the server (178:127.0.0.1)
[18:00:30] [npc:join] [BOT]TriadBoss152 has joined the server (177:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad5 has joined the server (176:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad6 has joined the server (175:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad7 has joined the server (174:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad8 has joined the server (173:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad9 has joined the server (172:127.0.0.1)
[18:00:30] [npc:join] [BOT]TriadBoss153 has joined the server (171:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad10 has joined the server (170:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad11 has joined the server (169:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad12 has joined the server (168:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad13 has joined the server (167:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad14 has joined the server (166:127.0.0.1)
[18:00:30] [npc:join] [BOT]TriadBoss154 has joined the server (165:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad15 has joined the server (164:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad16 has joined the server (163:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad17 has joined the server (162:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad18 has joined the server (161:127.0.0.1)
[18:00:30] [npc:join] [BOT]Triad19 has joined the server (160:127.0.0.1)
[18:00:30] [npc:join] [BOT]MafiaBoss155 has joined the server (159:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier20 has joined the server (158:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier21 has joined the server (157:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier22 has joined the server (156:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier23 has joined the server (155:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier24 has joined the server (154:127.0.0.1)
[18:00:30] [npc:join] [BOT]MafiaBoss156 has joined the server (153:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier25 has joined the server (152:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier26 has joined the server (151:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier27 has joined the server (150:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier28 has joined the server (149:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier29 has joined the server (148:127.0.0.1)
[18:00:30] [npc:join] [BOT]MafiaBoss157 has joined the server (147:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier30 has joined the server (146:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier31 has joined the server (145:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier32 has joined the server (144:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier33 has joined the server (143:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier34 has joined the server (142:127.0.0.1)
[18:00:30] [npc:join] [BOT]MafiaBoss158 has joined the server (141:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier35 has joined the server (140:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier36 has joined the server (139:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier37 has joined the server (138:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier38 has joined the server (137:127.0.0.1)
[18:00:30] [npc:join] [BOT]Soldier39 has joined the server (136:127.0.0.1)
[18:00:30] [npc:join] [BOT]MilitiaBoss has joined the server (135:127.0.0.1)
[18:00:30] [npc:join] [BOT]Militia40 has joined the server (134:127.0.0.1)
[18:00:30] [npc:join] [BOT]Militia41 has joined the server (133:127.0.0.1)
[18:00:30] [npc:join] [BOT]Militia42 has joined the server (132:127.0.0.1)
[18:00:30] [npc:join] [BOT]Militia43 has joined the server (131:127.0.0.1)
[18:00:30] [npc:join] [BOT]Militia44 has joined the server (130:127.0.0.1)
[18:00:30] [npc:join] [BOT]Militia45 has joined the server (129:127.0.0.1)
[18:00:30] [npc:join] [BOT]Militia46 has joined the server (128:127.0.0.1)
[18:00:30] [ROBBERIES]: 191 safe robberies have been successfully loaded.
[18:00:30] [POOL TABLES]: 37 pool tables have been successfully loaded.
[18:00:31]  * [TPoker]: TPoker by ThreeKingz has been succesfully loaded!
[18:00:31] [npc:join] [BOT]VisageCashier160 has joined the server (127:127.0.0.1)
[18:00:31] [npc:join] [BOT]VisageCashier161 has joined the server (126:127.0.0.1)
[18:00:31] -> Boxing System - By: Damen
[18:00:31] MapAndreas successfully initiated

why error??

$
0
0
(14622) : error 027: invalid character constant
(14622) : error 029: invalid expression, assumed zero
(14623) : error 014: invalid statement; not in switch
(14623) : warning 215: expression has no effect
(14623) : error 001: expected token: ";", but found "?
(14623) : error 029: invalid expression, assumed zero
(14623) : fatal error 107: too many error messages on one line

new gametext[256];
forward testgmt(text[]);
public testgmt(text[])
{
new length = strlen(text);
for(new i; i < length; i++)
{
switch(text[i]%256)
{
case 'ㄱ':gametext[i] = 'À';//14622
case 'ㄲ':gametext[i] = 'Á';//14623
case 'ㄴ':gametext[i] = 'Â';
case 'ㄷ':gametext[i] = 'Ä';
case 'ㄸ':gametext[i] = 'Æ';
case 'ㄹ':gametext[i] = 'Ç';
case 'ㅁ':gametext[i] = 'È';
case 'ㅂ':gametext[i] = 'É';
case 'ㅃ':gametext[i] = 'Ê';
case 'ㅅ':gametext[i] = 'Ë';
case 'ㅆ':gametext[i] = 'Ì';
case 'ㅇ':gametext[i] = 'Í';
case 'ㅈ':gametext[i] = 'Î';
case 'ㅉ':gametext[i] = 'Ï';
case 'ㅊ':gametext[i] = 'Ò';
case 'ㅋ':gametext[i] = 'Ó';
case 'ㅌ':gametext[i] = 'Ô';
case 'ㅍ':gametext[i] = 'Ö';
case 'ㅎ':gametext[i] = 'Ù';
case 'ㅏ':gametext[i] = 'Ú';
case 'ㅑ':gametext[i] = 'Û';
case 'ㅓ':gametext[i] = 'Û';
case 'ㅕ':gametext[i] = 'Ü';
case 'ㅗ':gametext[i] = 'ß';
case 'ㅛ':gametext[i] = 'à';
case 'ㅜ':gametext[i] = 'á';
case 'ㅠ':gametext[i] = 'â';
case 'ㅡ':gametext[i] = 'ä';
case 'ㅣ':gametext[i] = 'æ';
case 'ㄵ':gametext[i] = 'ë';
case 'ㄶ':gametext[i] = 'ì';
case 'ㄺ':gametext[i] = 'ï';
case 'ㄻ':gametext[i] = 'ò';
case 'ㄼ':gametext[i] = 'ó';
case 'ㅀ':gametext[i] = 'ô';
case 'ㅄ':gametext[i] = 'ú';
default: gametext[i] = text[i]%256;
}
gametext[length] = 0;
}
}

Please help fix warning

$
0
0
(14993) : warning 202: number of arguments does not match definition
(17413) : warning 213: tag mismatch
(19072) : warning 213: tag mismatch
(19073) : warning 213: tag mismatch
(19145) : warning 213: tag mismatch
(19192) : warning 202: number of arguments does not match definition
(19192) : warning 202: number of arguments does not match definition
(19192) : warning 202: number of arguments does not match definition
(19181) : warning 203: symbol is never used: "id"
(28153) : warning 202: number of arguments does not match definition


14993 - ShowPlayerDialog(extraid, 3333, DIALOG_STYLE_MSGBOX, "Paskyros Registracija", "Sveiki atvykæ á LCRP.LT\n\nPastaba: Jûsø paskyra dar nëra uþregistruota. Ja uþregistruoti galite mûsø forumo VVP panelëje", "Supratau", "Iðeiti", ReturnName(extraid));

17413 - sv_send_packet(packet, player_stream[playerid]); // Sending back to the player

19072 - player_stream[playerid] = sv_sgstream_create();

19073 - sv_stream_player_attach(player_stream[playerid], playerid);

19145 - sv_stream_delete(player_stream[playerid]); // Deleting global player stream

19192 - sv_init(6000, SV_FREQUENCY_VERY_HIGH, SV_VOICE_RATE_100MS); // Initializing plugin's settings

19181 - id = -1;

28153 - return ShowPlayerDialog(playerid, 3333, DIALOG_STYLE_MSGBOX, "Paskyros Registracijaa", "Sveiki atvykæ á LCRP.LT\n\nPastaba: Jûsø paskyra dar nëra uþregistruota. Ja uþregistruoti galite mûsø forumo VVP panelëje", "Supratau", "Iðeiti", ReturnName(playerid));

cars double, + rep.

$
0
0
Good, sometimes when you load a player's cars they duplicate them. It doesn't happen all the time, but it happens. How do I prevent this from happening? I already tried to do my best.

This is called when the player loads their data after entering the password.

Code:

    new HandleVeh_ = SQL::Open(SQL::MREAD, SQL_TABLA_AUTOS, "prop_id", Jugador[playerid][ID]);
        SQL::ReadRetrievedRows(HandleVeh_, BucleVeh_)
        {
            new Auto_ = Iter_Free(TotalAutos_);
 
            SQL::ReadInt(HandleVeh_, "id_autos", Autos[ Auto_ ][aSQLID], BucleVeh_);
         
            SQL::ReadFloat(HandleVeh_, "posx", Autos[ Auto_ ][aPosX], BucleVeh_);
            SQL::ReadFloat(HandleVeh_, "posy", Autos[ Auto_ ][aPosY], BucleVeh_);
            SQL::ReadFloat(HandleVeh_, "posz", Autos[ Auto_ ][aPosZ], BucleVeh_);
            SQL::ReadFloat(HandleVeh_, "posangle", Autos[ Auto_ ][aPosAngle], BucleVeh_);
            SQL::ReadFloat(HandleVeh_, "health", Autos[ Auto_ ][aHealth], BucleVeh_);
         
            SQL::ReadInt(HandleVeh_, "color_1", Autos[ Auto_ ][aColor_1], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "color_2", Autos[ Auto_ ][aColor_2], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "virtual", Autos[ Auto_ ][aVirtual], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "interior", Autos[ Auto_ ][aInterior], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "modelo", Autos[ Auto_ ][aModelo], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "combustible", Autos[ Auto_ ][aCombustible], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "precio", Autos[ Auto_ ][aPrecio], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "prop_id", Autos[ Auto_ ][aPropSQLID], BucleVeh_);
         
            SQL::ReadString(HandleVeh_, "matricula", Autos[ Auto_ ][aMatricula], 30, BucleVeh_);
         
            SQL::ReadFloat(HandleVeh_, "parkx", Autos[ Auto_ ][aParkX], BucleVeh_);
            SQL::ReadFloat(HandleVeh_, "parky", Autos[ Auto_ ][aParkY], BucleVeh_);
            SQL::ReadFloat(HandleVeh_, "parkz", Autos[ Auto_ ][aParkZ], BucleVeh_);
            SQL::ReadFloat(HandleVeh_, "parkangle", Autos[ Auto_ ][aParkAngle], BucleVeh_);
         
            SQL::ReadInt(HandleVeh_, "seguro", Autos[ Auto_ ][aSeguro], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "parkvirtual", Autos[ Auto_ ][aParkVirtual], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "parkinterior", Autos[ Auto_ ][aParkInterior], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "paintjob", Autos[ Auto_ ][aPaintJob], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "moneda", Autos[ Auto_ ][aMoneda], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "tipom", Autos[ Auto_ ][aTipoM], BucleVeh_);
            SQL::ReadInt(HandleVeh_, "en_est", Autos[ Auto_ ][aEstacionamiento], BucleVeh_);
         
            Loop(BucleAccs_, 17)
            {
                format(StrArr, sizeof(StrArr), "tunning_%d", BucleAccs_ + 1);
                SQL::ReadInt(HandleVeh_, StrArr, Autos[ Auto_ ][aTunning][ BucleAccs_ ], BucleVeh_);
            }
            Loop(BucleAccs_, 8)
            {
                format(StrArr, sizeof(StrArr), "vmal_%d", BucleAccs_);
                SQL::ReadInt(HandleVeh_, StrArr, Autos[ Auto_ ][vMaletero][ BucleAccs_ ], BucleVeh_);
             
                format(StrArr, sizeof(StrArr), "vmunicion_%d", BucleAccs_);
                SQL::ReadInt(HandleVeh_, StrArr, Autos[ Auto_ ][vMunicion][ BucleAccs_ ], BucleVeh_);
            }
            if(Autos[ Auto_ ][aID_SAMP] != INVALID_VEHICLE_ID) DestroyVehicle(Autos[ Auto_ ][aID_SAMP]);
            Autos[ Auto_ ][aID_SAMP] = CreateVehicle(Autos[ Auto_ ][aModelo], Autos[ Auto_ ][aPosX], Autos[ Auto_ ][aPosY], Autos[ Auto_ ][aPosZ], Autos[ Auto_ ][aPosAngle], Autos[ Auto_ ][aColor_1], Autos[ Auto_ ][aColor_2], -1);
            Autos[ Auto_ ][aVenta] = 0, Autos[ Auto_ ][aTrabajo] = 0, Autos[ Auto_ ][aFaccion] = 0;
 
            SetVehicleNumberPlate(Autos[ Auto_ ][aID_SAMP], Autos[ Auto_ ][aMatricula]);
            SetVehicleHealth(Autos[ Auto_ ][aID_SAMP], Autos[ Auto_ ][aHealth]);
            SetVehicleVirtualWorld(Autos[ Auto_ ][aID_SAMP], Autos[ Auto_ ][aVirtual]);
            ChangeVehiclePaintjob(Autos[ Auto_ ][aID_SAMP], Autos[ Auto_ ][aPaintJob]);
 
            LinkVehicleToInterior(Autos[ Auto_ ][aID_SAMP], Autos[ Auto_ ][aInterior]);
            if(Autos[ Auto_ ][aSeguro]){
                BloquearAuto_(Autos[ Auto_ ][aID_SAMP], VEHICLE_PARAMS_ON);
            }
            Autos[ Auto_ ][aMotor] = false;
            Iter_Add(TotalAutos_, Auto_);
            Act_TextAutos(playerid, true), ModsAuto_(Autos[ Auto_ ][aID_SAMP]);
 
            printf("\n- Auto de Usuario: %s - SQL: %d.\n", Jugador[ Auto_ ][Nombre], Autos[ Auto_ ][aSQLID]);
        }
        SQL::Close(HandleVeh_);

Viewing all 18226 articles
Browse latest View live


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