Quantcast
Viewing all 18226 articles
Browse latest View live

Email array problem

Code basicly doesn't work and I can input address like "myemail@." and it would work.

I want this code to check:

- @ (working)
- . (working)
- com,net,org... (not working)

Code:

case REGISTER_EMAIL_DIALOG:
            {
                if(!response)
                {
                    SendClientMessage(playerid,-1,"{0080FF}WG:{FFFFFF} Automatski ste kikani sa servera zbog odbijanja registracije.");
                    odbioRegister[playerid] = 1;
                    SetTimerEx("kickPlayer", 1000, false, "%i", playerid);
                }
                else
                {
                    new monkeyString = strfind(inputtext,"@",true);
                    new tockaString = strfind(inputtext,".",true);
                    new endListStrings[15][] =
                                {
                                        "com",
                                        "net",
                                        "me",
                                        "us",
                                        "eu",
                                        "se",
                                        "dk",
                                        "org",
                                        "de",
                                        "au",
                                        "vg",
                                        "hu",
                                        "it",
                                        "uk",
                                        "co"
                                };
                                 
                    if(!strlen(inputtext)) return SendClientMessage(playerid,-1,"{FF0000}Greska: {FFFFFF}Pogresan unos. Molimo pokusajte ponovno.") && ShowPlayerDialog(playerid,REGISTER_EMAIL_DIALOG,DIALOG_STYLE_INPUT,"{0049FF}Registracija","{FFFFFF}Molimo unesite vasu email adresu.", "Unesi", "Izlaz");
                    if(strlen(inputtext) < 12 || strlen(inputtext) > 30) return SendClientMessage(playerid,-1,"{FF0000}Greska: {FFFFFF}Neispravna email adresa. Pokusajte ponovno.") && ShowPlayerDialog(playerid,REGISTER_EMAIL_DIALOG,DIALOG_STYLE_INPUT,"{0049FF}Registracija","{FFFFFF}Molimo unesite vasu email adresu.", "Unesi", "Izlaz");
                                if(monkeyString == -1) return SendClientMessage(playerid,-1,"{FF0000}Greska: {FFFFFF}Neispravna email adresa. Pokusajte ponovno.") && ShowPlayerDialog(playerid,REGISTER_EMAIL_DIALOG,DIALOG_STYLE_INPUT,"{0049FF}Registracija","{FFFFFF}Molimo unesite vasu email adresu.", "Unesi", "Izlaz");
                                if(tockaString == -1) return SendClientMessage(playerid,-1,"{FF0000}Greska: {FFFFFF}Neispravna email adresa. Pokusajte ponovno.") && ShowPlayerDialog(playerid,REGISTER_EMAIL_DIALOG,DIALOG_STYLE_INPUT,"{0049FF}Registracija","{FFFFFF}Molimo unesite vasu email adresu.", "Unesi", "Izlaz");
                                //
                                for(new index = 0; index < 14; ++index)
                                {
                                        if(strfind(inputtext,endListStrings[index][0],false))
                                    {
                                            strcat(PlayerInfo[playerid][email],inputtext,30);
                                            format(poruka,sizeof(poruka),"{0049FF}WG:{FFFFFF} Email adresa unesena. Ona glasi: %s. Molimo nastavite dalje...",PlayerInfo[playerid][email]);
                                                SendClientMessage(playerid,-1,poruka);
                                            //
                                            ShowPlayerDialog(playerid,REGISTER_PASSWORD_DIALOG,DIALOG_STYLE_PASSWORD, "{0080FF}Registracija", "{FFFFFF}Molimo unesite vasu lozinku kako biste dovrsili registraciju.", "Unesi", "Izlaz");
                                        }
                                        else
                                        {
                                            if(index == 14)
                                                {
                                                    SendClientMessage(playerid,-1,"{FF0000}Greska: {FFFFFF}Pogresan unos. Molimo pokusajte ponovno.") && ShowPlayerDialog(playerid,REGISTER_EMAIL_DIALOG,DIALOG_STYLE_INPUT,"{0049FF}Registracija","{FFFFFF}Molimo unesite vasu email adresu.", "Unesi", "Izlaz");
                                                }
                                                else
                                                {
                                                        printf("Nije pronadeno. Brojac: %d",index);
                                                        continue;
                                                }
                                        }
                                }
                        }
            }

The problem is in array and I probably did the stupid mistake which i couldn't find so i'm posting this...
Any help would be appreciated :)

[PROBLEM] error 017 and warning 203 on pawno

I've some problems with my gamemode... When I try to compile it, it gives me these errors:

Quote:

C:\Program Files (x86)\SAMT\SanAndreasMovieTeam\gamemodes\SAMT.pwn( 71) : error 017: undefined symbol "vehicle_spawn"
C:\Program Files (x86)\SAMT\SanAndreasMovieTeam\gamemodes\SAMT.pwn( 73) : error 017: undefined symbol "vehicle_spawn"
C:\Program Files (x86)\SAMT\SanAndreasMovieTeam\gamemodes\SAMT.pwn( 74) : error 017: undefined symbol "vehicle_spawn"
C:\Program Files (x86)\SAMT\SanAndreasMovieTeam\gamemodes\SAMT.pwn( 508) : warning 203: symbol is never used: "CMD"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

and the lines are here:

Quote:

67 public OnVehicleDeath(vehicleid, killerid)
68 {
69 for(new i; i < MAX_SPAWN_VEHICLES; i++)
70 {
71 if(vehicle_spawn[i] == vehicleid)
72 {
73 vehicle_spawn[i] = INVALID_VEHICLE_ID;
74 return DestroyVehicle(vehicle_spawn[i]);
75 }
76 }
77 return 1;
78 }
79
80 public OnPlayerText(playerid, text[])
81 {
82 return 1;
83 }

Somebody knows what is the problem???

GPCI

Hello,
Is there an alternative for GPCI? Or maybe an include that fixes it?
At the moment I'm using it in my server in order to track alternative accounts based on their serial keys(Yes, I know its not really hardware id or w/e) but some players are glitched and their GPCIs are matched with other GPCIs so the alt accounts the player has are not correct..

Explosion Damage

Is there a way to adjust the amount of damage an explosion gives(CreateExplosion)?

Whats the best? Visual Studio Code or Sublime Text?

Whats the better ? Visual Studio Code or Sublime Text ? i wanna the one who has better Syntax and best identation and etcetera !

[Ajuda] Erro na tela de login do meu gamemode embaçado e n aparece objetos

bom a camera do meu gamemode eu coloquei pra quando logar aparecer uma favelinha mas n aparece os objetos so aparece os do gta msm a camera fica meio embaçada se alguem puder me ajudar solucionar ?

OnPlayerDeath getting called twice

I've made an event system for one of my gamemdes and somehow everything got fucked up, callback OnPlayerDeath seems like to get called twice for unknown reason which I couldn't know for now.

OnPlayerDeath:
PHP Code:

public OnPlayerDeath(playeridkilleridreason) {

    if(
SpawnEx[playerid] == false) {

        
SendClientMessageToAll(-1"Called - OnPlayerDeath #1");

        
mysql_format(mysqlstringsizeof(string), "DELETE FROM `Weapons` WHERE `ID` = %d"Info[playerid][ID]);
        
mysql_tquery(mysqlstring);

        if(
killerid != INVALID_PLAYER_ID) {

            
SetPlayerWantedLevel(killeridGetPlayerWantedLevel(killerid) + 1);
        }
        
GivePlayerCash(playerid, -1000);

        new 
weaponammo;
        for (new 
i<= 12i++) {

            
GetPlayerWeaponData(playeridiweaponammo);

            switch (
weapon) {

                case 
22 .. 32ammo 150;
            }

            switch (
weapon) {

                case 
.. 43: {

                    if (
weapon != 0CreateStaticPickup(GetWeaponModelID(weapon), ammo19random(4), random(4), ZGetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
                }
            }
        }

        for (new 
isizeof(Hospitalcoor); ji++) {

            
tmp_distance GetPlayerDistanceFromPoint(playeridHospitalcoor[i][0], Hospitalcoor[i][1], Hospitalcoor[i][2]);
            if (
tmp_distance distance) {

                
distance tmp_distance;
                
closest i;
            }
        }
        
SetSpawnInfo(playeridNO_TEAMGetPlayerSkin(playerid), Hospitalcoor[closest][0], Hospitalcoor[closest][1], Hospitalcoor[closest][2], Hospitalcoor[closest][3], 000000);
    }
    else {
        
SendClientMessageToAll(-1"Called - OnPlayerDeath #2");
        
SetSpawnInfo(playeridNO_TEAMOldSkin[playerid], LastPosX[playerid], LastPosY[playerid], LastPosZ[playerid], 0.0000000);
    }
    return 
1;


OnPlayerSpawn:
PHP Code:

public OnPlayerSpawn(playerid) {

        
SendClientMessageToAll(-1"Called - OnPlayerSpawn");
    if(
SpawnEx[playerid] == true) {

        
SpawnEx[playerid] = false;
        
SendClientMessageToAll(-1"Called - OnPlayerSpawn #2");

        
SetPlayerInterior(playeridLastInterior[playerid]);
        
SetPlayerHealth(playeridLastHealth[playerid]);
        
SetPlayerArmour(playeridLastArmour[playerid]);

        
InEvent[playerid] = 0;
    }
    return 
1;


PHP Code:

public OnPlayerRequestClass(playeridclassid) {

    if(
ClassDisabled[playerid]) {

        
SendClientMessageToAll(-1"Called - OnPlayerRequestClass #1");
        new 
Float:distance 99999.0Float:tmp_distanceclosest = -1;
        if(
SpawnEx[playerid] == false) {

            
SendClientMessageToAll(-1"Called - OnPlayerRequestClass #2");
            for (new 
isizeof(Hospitalcoor); ji++) {

                
tmp_distance GetPlayerDistanceFromPoint(playeridHospitalcoor[i][0], Hospitalcoor[i][1], Hospitalcoor[i][2]);
                if (
tmp_distance distance) {

                    
distance tmp_distance;
                    
closest i;
                }
            }
            
SetSpawnInfo(playeridNO_TEAMGetPlayerSkin(playerid), Hospitalcoor[closest][0], Hospitalcoor[closest][1], Hospitalcoor[closest][2], Hospitalcoor[closest][3], 000000);
            
SpawnPlayer(playerid);
        }
        else {
            
SendClientMessageToAll(-1"Called - OnPlayerRequestClass #3");
            
SetSpawnInfo(playeridNO_TEAMOldSkin[playerid], LastPosX[playerid], LastPosY[playerid], LastPosZ[playerid], 0.0000000);
            
SpawnPlayer(playerid);
        }
        return 
1;
    }
    else if(
Info[playerid][Registered] == 1) {

        
TogglePlayerSpectating(playeridfalse);
        
SetPlayerVirtualWorld(playerid99);

        
PutPlayerInVehicle(playeridClassVehicles[0], 1);
        
PutPlayerInVehicle(playeridClassVehicles[1], 1);
        
PutPlayerInVehicle(playeridClassVehicles[2], 1);

        
RemovePlayerFromVehicle(playerid);

        
SetPlayerPos(playerid1095.68071079.335910.8359);
        
SetPlayerFacingAngle(playerid311.4607);
        
SetPlayerCameraPos(playerid1102.41281084.335313.2434);
        
SetPlayerCameraLookAt(playerid1095.68071079.335910.8359);

        switch(
random(5)) {

            case 
0ApplyAnimation(playerid"DANCING""dnce_M_a"4.110000); 
            case 
1ApplyAnimation(playerid"DANCING""dnce_M_b"4.110000); 
            case 
2ApplyAnimation(playerid"DANCING""dnce_M_c"4.110000); 
            case 
3ApplyAnimation(playerid"DANCING""dnce_M_d"4.110000); 
            case 
4ApplyAnimation(playerid"DANCING""dnce_M_e"4.110000); 
        }

        
OldSkin[playerid] = GetPlayerSkin(playerid);
    }
    return 
1;


This is the debug output when the player dies in event:
PHP Code:

[18:33:43Called OnPlayerDeath #2
[18:33:43Called OnPlayerSpawn
[18:33:43Called OnPlayerSpawn #2
[18:33:43Called OnPlayerDeath #1
[18:33:43Called OnPlayerRequestClass #1
[18:33:43Called OnPlayerRequestClass #2
[18:33:43Called OnPlayerSpawn 

Also at the first death the OnPlayerRequestClass gets called but in the second death it doesn't.
Any help would be appreciated.
Thanks in advance.

eLg Clan's Freeroam/Roleplay


Image may be NSFW.
Clik here to view.


eLg Clan's Freeroam/Roleplay | 188.165.127.147:7777 | www.elg-clan.net

We first launched in January 2007, and have opening our doors to thousands of players for the past 10 years. Our script has been developed significantly over this period of time, and is now the most advanced it has ever been. It's been a long time since we advertised ourselves, however we feel now would be the ideal time to do such action with our community growing stronger by the day, and our server sitting at 60+ players on a daily basis since re-joining the hosted list. Recently we have expanded out team and become as part of a gaming community under Exhibit Gaming, which contains an experienced set of admins who have been administrating servers for 8+ years and have been apart of the SA:MP community since day one. The aim of the server is find the right balance between the players who want to come and freeroam freely within a server and enjoy the benefits of a well scripted server, and the type of player who wants to come and roleplay with a group of players within a community, we have attracted each of these types of players for years and both have enjoyed the server in harmony.


Organisation System
Our organisation system is the core element of the server, used within Roleplay and FR the system allows great flexibility for all types of players. The system itself is categorised into a variety of different organisations, I will mention some of them types below. All organisations that are created via the players' requests, have the following generic functionality.
  • An exclusive Org Channel allowing all org members to communicate privately.
  • Leader and Co-Leader functionality.
  • An Exclusive Law Interior.
  • Fully functioning gates (Created on request by the leader).
  • CCTV Capabilities along with Alarm systems to alert of any intruders into the organisations HQ.
  • A unique Organisation Colour, set of skins, Weapons and Vehicles all requested by the organisation’s leader.
  • A fully dynamic system, allowing great flexibility for editing and creating organisations without the need for a server restart, all changes are made in real time.
  • A wage system, set by the current President of San Andreas for each type of organisation.
  • A dedicated Checkpoint allowing for leaders and co leaders to have full control over their organisation, such as set individual ranks/rank titles and permissions for org weapons and vehicle access.
  • Up to a potential 24 Members limit & 24 Vehicle limit for each organisation created.
Law Organisations
Our laws orgs at the moment are made up of SAPD,SWAT and SAAF, each of these law forces working together to combat the crime that occurs within the server. Law organisations have exclusive features that allows them to combat crime, some of these features are listed below.
  • A law channel, allowing all law orgs to communicate with each other.
  • A full wanted system, allowing law members so see which players are wanted, and additional information such as who wanted the player originally and any extra information that has been added to the want.
  • The ability to create cones & roadblocks to close off parts of SA.
  • To frisk players to discover what items the criminal is carrying as well the ability to remove such items.
  • A cuff system, allowing law enforcers to cuff criminals to prevent harm to themselves or fellow law members.
  • A location system, allowing law members to locate a criminal given a time delay on the information arriving to requester.
  • Criminals can be jailed, for a set time based on their wanted level, they may attempt to escape however failure may result in an extended sentence.
Criminal Organisations
Just like our Law organisations our Criminal organisations also have exclusive features, these organisations are split into 2 categories (Mafia & Gang), we currently have such gangs as GSF and FYB and Mafias such as The Milano Family and Orekhovskaya (Russian Mafia). Here is a combined list of the features gangs and mafias have access too.
  • The ability to take over turfs, which are clearly highlighted on the map via the org’s colours.
  • The ability to rob a bank, permitting there are a reasonable amount of law on. (Ordinary players can also rob stores within the server for a random amount of cash, they’ll keep the cash if they outwit the law).
  • To sell drugs to other players within the server, after ordering them from a dealer.
  • To be able to add the single player gang tag signs, to any object within the server, allowing gangs to choose which tag they will use to represent their presence. (These are dynamic and can also be removed at any point). Gang members can also scroll through images of the tags they have sprayed within the server dynamically.
    ​​​​​​​
House System
We recognise that players often like to have some place that they can call their own, which is why we have 80+ houses within the server, with more being dynamically added on a weekly basis to meet demand and ensuring that there are a variety of house types available for all players. A player has full control over their house, allowing them to buy and sell when required. House owners may also allow their house to be rented out to other players within the game, to create another source of income. Players also have basic functionality such as being able to lock and unlock their property. For an in-game currency cost, players may also have a custom gate fitted to their property dynamically to prevent them pesky intruders. Properties can also have safes, where players can store cash and weapons if required.

Business System
In addition to properties, players may also purchase businesses, we have 70+ businesses within the server, which allows players to invest their money, and in return they get a steady cash flow of income which is accumulated periodically regardless of if the player is online or not, players may invest additional money to upgrade the business, which results in a greater timely return.

Bank System
To store all of that money, that you will generate within the server, we have a fully functioning bank system, which has the following functionality.
  • Allows players to withdraw and deposit money from any bank or nearby ATM.
  • Allows players to complete bank account transfers between different bank accounts.
  • You can view your bank statement, to see what has gone in and out over the period of your bank account.
  • You may also collect the interest you have accumulated on the money you have within your bank account.
Licenses
To ensure that all players are capable of driving, flying and riding vehicles, we have the following schools, requiring players to apply for each of their licenses.
  • Driving license
  • Flying license
  • Motorcycle license
  • Weapon License (Can be purchased in-game)
Personal Vehicle System
Throughout eLg there are a variety of car dealerships allowing you to purchase that pride and joy you have longed for. Within a dealership you may, test drive the vehicle, purchase the vehicle in a colour of your choice. Additionally, you may purchase insurance for the vehicle, and a custom number plate if desired.
  • All customisation and tuning are saved to personal vehicles when you quit the server.
  • User’s have full control over all vehicles (Engine, Lights, Storing items in the trunk, doors etc.).
  • Not happy with your vehicle anymore? No problem either sell it to a dealership for a set price, or go it alone and try and sell it to another player for a price of your choice.
  • If you own property, you may set where you want your car to parked, your car will then spawn there if you feel the need to reset its location, or to the nearest police department.
Jobs System
We have a variety of job mini missions, which players can take part in, this allows the player to earn some additional income if needed. We have the following Jobs currently:
  • Bus Missions
  • Trucking Missions
  • Pizza Delivery
  • Streak Train Missions
Clothes System
Not happy with your player’s attire? Then customise it, head to any of the nearest clothing stores, to purchase a large range of accessories, to attach to your player however you like. Items include Bandanas, Masks, Caps/Hats, Glasses, Watches and helmets.

Items System
There are a variety of 24/7 stores around San Andreas where players can purchase an assortment of items, these range from personal walkie talkies (Allowing players to have their own private channels), GPS (Allowing players to choose a location and a waypoint being set for them), Cell phone (Allowing players to call other players, send text messages, have a fully functioning contacts phonebook and many other features and other functional items (Cameras,Cigarettes,MP3 Player etc.).

Unique Interiors
We have a variety of unique and exclusive interiors within the server, allowing players to socialise in these custom places such as banks, hospitals, airports, fire dept, bars and restaurants.

Event System
Recently we have implemented a dynamic event system, allowing for admins to set up unique and custom events ranging from DM/TDM to Capture the flag to Races, these events can be opened at any time in the server, and new ones created instantly, these allow for real time events to occur, and for us to vary the gameplay available within the server at any time.

Player Support
After years of experience we have developed a large range of player support mechanisms which ensures players are comfortable playing in the server, below these are listed.
  • A Help Desk Operator System- This is a dedicated team of players who can answer any player queries about the server, there are dedicated commands to enable you to ask questions and queries directly.
  • An Advanced Admin System- Our admin system allows us to identify any unwanted hackers, dmers or just general annoyances immediately allowing the admins to deal with any problems quickly and efficiently so that the players experience isn’t affected.
  • Roleplay School – We have a dedicated team of roleplay teachers that are on hand to teach players how to roleplay, either if you’re an experienced role-player who’s been out of the game for a while, or an amateur we cater for all roleplaying needs.

We look forward to seeing you soon! - The eLg Admin Team

Server Dissappeared from hosted tab

Hi,
My server has put into hosted tab day before yesterday and now it suddenly dissapeared

What is the problem in it ??

[Ajuda] Como fazer isso ?

Bom gente , eu estava em servidor e vi isso , gostaria de saber como colocar também ..
não sei se pelo MTA da , alguém poderia me falar como posso colocar também ?
Image may be NSFW.
Clik here to view.

[GM] Los Santos Brasileira [LSBR]

Fala galera tudo bom?!, então como sabem o LSBR trocou de dono e foi vendido, e assim alguns players perderam seus "bens" que foi comprado com dinheiro da vida real, e o Dono não queria devolver, e assim o Michael(antigo dono) me deu a GM para Divulgar, e ai está ela:
Porém, não consigo abrir o server, tipo eu abro o "LSBR" que é em "aplicativo" pra abrir o server, ele carrega umas coisas e da SHUTDOWN, ai não abre o server, se CASO alguém conseguir arrumar isso PORFAVOR!, venha até este tópico e fale como RESOLVER, por favor mesmo. Somente eu estou com ela, não queria divulgar, mas pensei, e ta ai pra ver se vocês descobrem o problema.


Informações:
Sistema Payday
Sistema Orgs
Sistema de Roubar
Sistema Portão
Sistema Vip
E muitos outros.

Link da GM: http://adf.ly/246619/http://www.medi...vidor+LSBR.rar
Então é isso, editem, e estudem ela é umas das melhores GM que já vi!

.. || ZOMBIE APOCALYPSE || ..

Image may be NSFW.
Clik here to view.


HostName: .. || ZOMBIE APOCALYPSE || ..
Address: 45.125.66.77:4444
Players: 2 / 100
Ping: 18
Mode: Zombie Survival v0.7
Version: 0.3.7


FREE VIPS /freevip

Need helpers,admins ;)

We wish you a good game 8)

.. || ZOMBIE APOCALYPSE || ..

Image may be NSFW.
Clik here to view.


HostName: .. || ZOMBIE APOCALYPSE || ..
Address: 45.125.66.77:4444
Players: 2 / 100
Ping: 18
Mode: Zombie Survival v0.7
Version: 0.3.7


FREE VIPS /freevip

Need helpers,admins ;)

We wish you a good game 8)


Sorry, I did not hit it here because I can not write to the server

[Ajuda] warning 213: tag mismatch

Alguém mim ajuda? não estou achando o erro para o aviso aparecer.

Como variavel está definida:

PHP Code:

new Text:Text[72]; 

PHP Code:

    Text[37] = TextDrawCreate(210.000000168.000000"1");
    
TextDrawBackgroundColor(Text[37], 255);
    
TextDrawFont(Text[37], 2);
    
TextDrawLetterSize(Text[37], 0.4699991.200000);
    
TextDrawColor(Text[37], -1);
    
TextDrawSetOutline(Text[37], 0);
    
TextDrawSetProportional(Text[37], 1);
    
TextDrawSetShadow(Text[37], 1);
    
TextDrawSetSelectable(Text[37], 1); 

OnPlayerClickTextDraw (no modulo)

PHP Code:

hook OnPlayerClickTextDraw(playeridclickedid)
{
    if(
clickedid == Text[37]) // local do warning
    
{
        
     }    
    return 
1;


Não era para dar warning, e não estou entendo. alguem ajuda?

[Ajuda] Servidor Não Aparece Para Outras Pessoas

Estou tentando ligar meu servidor em minha vps, porem apenas eu consigo ver o mesmo online, já pedi para varios amigos testarem e não fica online para eles

[Pedido] [GM] Los Santos Brasileira [LSBR]

Fala galera tudo bom?!, então como sabem o LSBR trocou de dono e foi vendido, e assim alguns players perderam seus "bens" que foi comprado com dinheiro da vida real, e o Dono não queria devolver, e assim o Michael(antigo dono) me deu a GM para Divulgar, e ai está ela:
Porém, não consigo abrir o server, tipo eu abro o "LSBR" que é em "aplicativo" pra abrir o server, ele carrega umas coisas e da SHUTDOWN, ai não abre o server, se CASO alguém conseguir arrumar isso PORFAVOR!, venha até este tópico e fale como RESOLVER, por favor mesmo. Somente eu estou com ela, não queria divulgar, mas pensei, e ta ai pra ver se vocês descobrem o problema.


Informações:
Sistema Payday
Sistema Orgs
Sistema de Roubar
Sistema Portão
Sistema Vip
E muitos outros.
Link da GM: http://adf.ly/246619/http://www.medi...vidor+LSBR.rar
Então é isso, editem, e estudem ela é umas das melhores GM que já vi!

[Ajuda] Erro de chave

Bom pessoal eu estou adaptando um fs ao meu gamemode, eu coloquei tudo certinho lá, só que está com algum erro de chave, se alguém poder ajudar agradeço.

Erros:
PHP Code:

\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(253) : error 055start of function body without function header
C
:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(257) : error 010invalid function or declaration
C
:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(260) : error 010invalid function or declaration
C
:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(271) : error 010invalid function or declaration
C
:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(274) : error 010invalid function or declaration
C
:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(286) : error 010invalid function or declaration
C
:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(289) : error 010invalid function or declaration
C
:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(302) : error 021symbol already defined"CreateObject"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(315) : error 021symbol already defined"CreateObject"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(323) : error 021symbol already defined"CreateObject"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(331) : error 021symbol already defined"Create3DTextLabel"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(339) : error 010invalid function or declaration
C
:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(347) : error 010invalid function or declaration
C
:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(364) : error 017undefined symbol "PickupPTime"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(365) : error 017undefined symbol "CarregarCarro"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(378) : error 017undefined symbol "ShowProgressBarForPlayer"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(379) : error 017undefined symbol "ShowProgressBarForPlayer"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(380) : error 017undefined symbol "ShowProgressBarForPlayer"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(387) : error 017undefined symbol "NomeDoJogador"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(393) : error 004: function "SetProgressBarValue" is not implemented
C
:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(394) : error 004: function "SetProgressBarValue" is not implemented
C
:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(395) : error 004: function "SetProgressBarValue" is not implemented
C
:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(396) : error 017undefined symbol "UpdateProgressBar"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(397) : error 017undefined symbol "UpdateProgressBar"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(398) : error 017undefined symbol "UpdateProgressBar"
C:\Users\Cliente\Desktop\betaaaa\gamemodes\new.pwn(406) : error 004: function "SetProgressBarValue" is not implemented 


Eu sei que esse 26 erros é porque eu esqueci de fechar alguma chave se alguém poder ajudar.

Linhas de erros:
PHP Code:

{
    
DisableInteriorEnterExits();

    
//Barrinha
    
PGFOME CreateProgressBar(553.00300.0055.503.200xF6F600AA100.0);
    
SetProgressBarValue(PGFOME,100);
    
//Letra
    
TextoFome TextDrawCreate(562.111083278.257659"Fome");
    
TextDrawLetterSize(TextoFome0.5144441.769245);
    
TextDrawAlignment(TextoFome3);
    
TextDrawColor(TextoFome, -1);
    
TextDrawSetShadow(TextoFome1);
    
TextDrawSetOutline(TextoFome1);
    
TextDrawBackgroundColor(TextoFome255);
    
TextDrawFont(TextoFome0);
    
TextDrawSetProportional(TextoFome1);

    
//Barrinha
    
PGSEDE CreateProgressBar(553.00331.0055.503.200x0000F6AA100.0);
    
SetProgressBarValue(PGSEDE,100);
    
//Letra
    
TextoSede TextDrawCreate(562.222290307.626709"Sede");
    
TextDrawFont(TextoSede,3);
    
TextDrawLetterSize(TextoSede0.4966661.823999);
    
TextDrawAlignment(TextoSede3);
    
TextDrawColor(TextoSede, -1);
    
TextDrawSetShadow(TextoSede1);
    
TextDrawSetOutline(TextoSede1);
    
TextDrawBackgroundColor(TextoSede255);
    
TextDrawFont(TextoSede0);
    
TextDrawSetProportional(TextoSede1);

    
//Barrinha
    
PGSONO CreateProgressBar(553.00363.0055.503.210xEE0000AA100.0);
    
SetProgressBarValue(PGSONO,100);
    
//Letra
    
TextoSono TextDrawCreate(562.222412339.982208"Sono");
    
TextDrawFont(TextoSono,4);
    
TextDrawLetterSize(TextoSono0.4877771.774221);
    
TextDrawAlignment(TextoSono3);
    
TextDrawColor(TextoSono, -1);
    
TextDrawSetShadow(TextoSono1);
    
TextDrawSetOutline(TextoSono1);
    
TextDrawBackgroundColor(TextoSono255);
    
TextDrawFont(TextoSono0);
    
TextDrawSetProportional(TextoSono1);

                                
/*Objetos*/
    //Lampadas
    
CreateObject(3666,796.2999900,-1632.8000000,12.9000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3666,804.2999900,-1633.0000000,13.1000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3666,2402.7000000,-1509.9000000,23.3000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3666,2402.7002000,-1501.9004000,23.3000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3666,1183.8000000,-898.0999800,42.8000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3666,1185.2000000,-906.4000200,42.8000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3666,-2348.2000000,-156.6000100,34.8000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3666,-2348.2000000,-148.2000000,34.8000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3666,1861.1000000,2089.6001000,10.3000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3666,1861.0000000,2080.8999000,10.3000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3666,2483.8999000,2017.9000000,10.3000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3666,2483.8000000,2026.7000000,10.3000000,0.0000000,0.0000000,0.0000000); //
    //Posters
    
CreateObject(2642,2483.7000000,2018.5000000,11.0000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(2642,1861.3000000,2089.1001000,11.0000000,0.0000000,0.0000000,170.0000000); //
    
CreateObject(2642,-2347.6884800,-148.8769500,36.1853800,0.0000000,0.0000000,0.0000000); //
    
CreateObject(2642,-2347.7000000,-148.6000100,35.3000000,0.0000000,0.0000000,178.0000000); //
    
CreateObject(2642,795.2999900,-1632.9000000,13.3000000,0.0000000,0.0000000,210.0000000); //
    
CreateObject(2642,1184.2000000,-905.7999900,43.2000000,0.0000000,0.0000000,220.0000000); //
    
CreateObject(2642,2401.8000000,-1502.0000000,23.8000000,0.0000000,0.0000000,220.0000000); //
    //Bases
    
CreateObject(3881,799.7999900,-1635.4000000,14.3000000,0.0000000,0.0000000,270.0000000); //
    
CreateObject(3881,2404.3999000,-1506.4000000,24.9000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3881,1186.4000000,-902.4000200,43.8000000,0.0000000,0.0000000,8.0000000); //
    
CreateObject(3881,-2346.7000000,-152.8999900,36.2000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3881,1862.5000000,2084.7000000,11.7000000,0.0000000,0.0000000,0.0000000); //
    
CreateObject(3881,2483.2000000,2022.8000000,11.9000000,0.0000000,0.0000000,180.0000000); //
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------
    /*TextLabel*/
    
Create3DTextLabel("{FF1E1E}DriveThru"0xFFD700FF2401.9275,-1506.4696,23.355040.000);
    
Create3DTextLabel("{FF1E1E}DriveThru"0xFFD700FF800.5552,-1629.6398,12.903040.000);
    
Create3DTextLabel("{FF1E1E}DriveThru"0xFFD700FF2486.0686,2022.3807,10.340240.000);
    
Create3DTextLabel("{FF1E1E}DriveThru"0xFFD700FF1179.7521,-902.8798,42.833040.000);
    
Create3DTextLabel("{FF1E1E}DriveThru"0xFFD700FF1857.3107,2081.2676,10.338740.000);
    
Create3DTextLabel("{FF1E1E}DriveThru"0xFFD700FF, -2350.0037,-155.5846,34.840540.000);
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------
    /*CheckPoint*/
    
CheckC_DV1 CPS_AddCheckpoint(2401.9275,-1506.4696,23.35505.020);
    
CheckC_DV2 CPS_AddCheckpoint(1179.7521,-902.8798,42.83305.020);
    
CheckC_DV3 CPS_AddCheckpoint(800.5552,-1629.6398,12.90305.020);
    
CheckC_DV4 CPS_AddCheckpoint(1857.3107,2081.2676,10.33875.020);
    
CheckC_DV5 CPS_AddCheckpoint(2486.0686,2022.3807,10.34025.020);
    
CheckC_DV6 CPS_AddCheckpoint(-2350.0037,-155.5846,34.84055.020);
    
CheckC_HT CPS_AddCheckpoint(2217.3391, -1146.45511025.79692.020); //Hotel
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
return 1;
}

public 
OnGameModeExit()
{
    
DOF2::Exit();
    
DOF2_Exit();
    return 
1;
}

public 
OnPlayerRequestClass(playeridclassid)
{
    return 
1;
}

public 
OnPlayerConnect(playerid)
{
    
PickupPTime(playerid);
    
CarregarCarro(playerid);
    
gHeaderTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gBackgroundTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gCurrentPageTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gNextButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gPrevButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;

    for(new 
x=0CARROSPAGINAx++) {
        
gSelectionItems[playerid][x] = PlayerText:INVALID_TEXT_DRAW;
    }

    
gItemAt[playerid] = 0;
    
SetTimerEx("Correcao"1000false"i"playerid);
    
ShowProgressBarForPlayer(playeridPGFOME);
    
ShowProgressBarForPlayer(playeridPGSEDE);
    
ShowProgressBarForPlayer(playeridPGSONO);
    
TextDrawShowForPlayer(playeridTextoFome);
    
TextDrawShowForPlayer(playeridTextoSede);
    
TextDrawShowForPlayer(playeridTextoSono);
    
SetTimerEx("FOME"212500true"i"playerid);
    
SetTimerEx("SEDE"200000true"i"playerid);
    
SetTimerEx("SONO"500000true"i"playerid);
    
format(arquivadosizeof(arquivado), DVFOMESEDESONONomeDoJogador(playerid));
    if(
DOF2_FileExists(arquivado))
    {
        
SetPVarInt(playerid,"FOME"DOF2_GetInt(arquivado"FOME"));
        
SetPVarInt(playerid,"SEDE"DOF2_GetInt(arquivado"SEDE"));
        
SetPVarInt(playerid,"SONO"DOF2_GetInt(arquivado"SONO"));
        
SetProgressBarValue(PGFOMEDOF2_GetInt(arquivado"FOME"));
        
SetProgressBarValue(PGSEDEDOF2_GetInt(arquivado"SEDE"));
        
SetProgressBarValue(PGSONODOF2_GetInt(arquivado"SONO"));
        
UpdateProgressBar(PGFOMEplayerid);
        
UpdateProgressBar(PGSEDEplayerid);
        
UpdateProgressBar(PGSONOplayerid);  }else{
        
DOF2_CreateFile(arquivado);
        
DOF2_SetInt(arquivado"FOME"100);
        
DOF2_SetInt(arquivado"SEDE"100);
        
DOF2_SetInt(arquivado"SONO"100);
        
SetPVarInt(playerid,"FOME"DOF2_GetInt(arquivado"FOME"));
        
SetPVarInt(playerid,"SEDE"DOF2_GetInt(arquivado"SEDE"));
        
SetPVarInt(playerid,"SONO"DOF2_GetInt(arquivado"SONO"));
        
SetProgressBarValue(PGFOMEDOF2_GetInt(arquivado"FOME")); 

Support Ticket Help

I once made a Support Ticket System, but it bugged sooo much. When i wrote, i had the name of the other player.

Can someone help me? I don't have the Code anymore, because i gave it up.

/admins bug

I have a problem with ym /admins command when i get in the players rank changes to Server Owner but when im out he is back to his normal rank

PHP Code:

CMD:admins(playeridparams[])
{
    new 
id;
    new 
n[MAX_PLAYER_NAME];
    new 
count 0string19[256];
    
GetPlayerName(id,n,sizeof(n));
    for(new 
0MAX_PLAYERS++)
    {
    if(
IsPlayerConnected(i))
    {
    if(
GetPVarInt(i"PlayerAdminLevel") < 1)
    {
    
format(string19sizeof(string19), "Trial Moderator : %s (%i)",,playerid);
    
count++;
    }
    if(
GetPVarInt(i"PlayerAdminLevel") < 2)
    {
    
format(string19sizeof(string19), "Moderator : %s (%i)",,playerid);
    
count++;
    }
    if(
GetPVarInt(i"PlayerAdminLevel") < 3)
    {
    
format(string19sizeof(string19), "Administrator : %s (%i)",,playerid);
    
count++;
    }
    if(
GetPVarInt(i"PlayerAdminLevel") < 4)
    {
    
format(string19sizeof(string19), "Chief Administrator : %s (%i)",,playerid);
    
count++;
    }
    if(
GetPVarInt(i"PlayerAdminLevel") < 5)
    {
    
format(string19sizeof(string19), "Server Owner : %s (%i)",,playerid);
    
count++;
    }
    }
    }
    if(
count == 0)
    {
    
SendClientMessage(playeridCOLOR_GREEN"");
    
SendClientMessage(playeridCOLOR_GREEN"|======== Online Admins =======|");
    
SendClientMessage(playeridCOLOR_WHITE"- No Admins Online at Time!");
    
SendClientMessage(playeridCOLOR_GREEN"|==============================|");
    
SendClientMessage(playeridCOLOR_GREEN"");
    }
    else
    {
    
SendClientMessage(playeridCOLOR_GREEN"");
    
SendClientMessage(playeridCOLOR_GREEN"|======== Online Admins =======|");
    
SendClientMessage(playeridCOLOR_WHITEstring19);
    
SendClientMessage(playeridCOLOR_GREEN"|==============================|");
    
SendClientMessage(playeridCOLOR_GREEN"");
    }
    return 
1;


CreateDynamicObject

Code:

[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamicObject: Expecting 12 parameter(s), but found 14
[17:36:37] *** CreateDynamic3DTextLabel: Expecting 13 parameter(s), but found 15
[17:36:37] *** CreateDynamicPickup: Expecting 9 parameter(s), but found 11
[17:36:37] *** CreateDynamic3DTextLabel: Expecting 13 parameter(s), but found 15
[17:36:37] *** CreateDynamicPickup: Expecting 9 parameter(s), but found 11

I get this like a million times, its so much that my computer start's lagging while copying it and pasting it here so i only copied a little of it and pasted. Can someone tell me what's causing it? Im using LLRP script btw.
Viewing all 18226 articles
Browse latest View live


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