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

Are those breaks okay?

$
0
0
Is it okay to break in that position each to break the respective loops?

Code:

public OnVehicleSpawn(vehicleid)
{
        Loop(BucleVehs_, sizeof(Autos))>>>>>>>>> BUCLE 1.
        {
                if(!IsValidVehicle(Autos[ BucleVehs_ ][aID_SAMP])) continue;
                if(Autos[ BucleVehs_ ][aID_SAMP] == vehicleid && Autos[ BucleVehs_ ][aModelo] > 0)
                {
                        if(Autos[ BucleVehs_ ][aHealth] < 370.0){
                                SesionAutos[vehicleid][AUTO_MOTOR] = false;
                        }
                        if(Autos[ BucleVehs_ ][aSeguro]) BloquearAuto_(vehicleid, VEHICLE_PARAMS_ON);
                        SincronizarVeh_(BucleVehs_);
                        foreach(new Jugadores_ : Player)>>>>>>>>> BUCLE 2.
                        {
                                if(Autos[ BucleVehs_ ][aPropSQLID] == Jugador[ Jugadores_ ][ID])
                                {
                                        new StrMessage[129];
                                        format(StrMessage, sizeof(StrMessage), "Your vehicle %s It has been sent to the last position it was parked.",
                                                VerNombreAuto(vehicleid)
                                        );
                                        SendClientMessage(Jugadores_, 0x16BA2DFF, StrMessage);
                                        break; >>>>>>>>> BREAK 2.
                                }
                        }
                        SetVehicleHealth(vehicleid, Autos[ BucleVehs_ ][aHealth]);
                        SetVehiclePos(vehicleid, Autos[ BucleVehs_ ][aParkX], Autos[ BucleVehs_ ][aParkY], Autos[ BucleVehs_ ][aParkZ]);
                        SetVehicleZAngle(vehicleid, Autos[ BucleVehs_ ][aParkAngle]);
                        SetVehicleVirtual(vehicleid, Autos[ BucleVehs_ ][aParkVirtual]);
                        SetVehicleInterior(vehicleid, Autos[ BucleVehs_ ][aParkInterior]);
                        break; >>>>>>>>> BREAK 1.
                }
        }
        return 1;
}


Gates problem

$
0
0
Well when I create gate and than edit it, it won't open at all.

PHP Code:

COMMAND:creategate(playeridparams[])
{
    if(
PlayerInfo[playerid][power] < 3) return SendClientError(playeridCANT_USE_CMD);
    new 
I[4], Float:F[4];
    if(
sscanf(params"dd"I[0], I[1])) return SCP(playerid"[Faction ID (Public = 255)] [modelid]");
    
I[2] = GetPlayerVirtualWorld(playerid);
    
I[3] = GetPlayerInterior(playerid);
    
GetPlayerPos(playeridF[0], F[1], F[2]);
    
GetPlayerFacingAngle(playeridF[3]);
    new 
query[256], store[512], Cache:result;
    
mysql_format(sqldbquerysizeof query"INSERT INTO gateinfo (Faction, Model, X1, Y1, Z1, X2, Y2, Z2, RX, RY, RZ, VW, Interior) "); strcat(storequery);
    
mysql_format(sqldbquerysizeof query"VALUES (%d, %d, %f, %f, %f, %f, %f, %f, %f, %f, %f, %d , %d)"I[0], I[1], F[0], F[1], F[2], F[0], F[1], F[2]-1000F[3], I[2], I[3]); strcat(storequery);
    
result mysql_query(sqldbstore);
    
cache_delete(result);
    
SaveGates();
    
LoadGates();
    return 
1;


PHP Code:

COMMAND:editgate(playeridparams[])
{
    if(
PlayerInfo[playerid][power] < 3) return SendClientError(playeridCANT_USE_CMD);
    new 
I[4];
    if(
sscanf(params"dd"I[0], I[1])) return SCP(playerid"[Gate ID] [Side (1 = closed, 2 = opened)]");
    if(
I[1] < || I[1] > 2) return SendClientError(playerid"The side must be 1 (for closed) or 2 (for opened).");
    
SetPVarInt(playerid"editgate"I[1]);
    
EditDynamicObject(playeridGateObject[I[0]]);
    
LoadGates();
    
SaveGates();
    return 
1;


PHP Code:

    for(new isizeof(GateInfo); i++)
    {
        if(
objectid == GateObject[i])
        {
            if(
response == 0)
            {
                
LoadGates();
            }
            if(
response == 1)
            {
                if(
GetPVarInt(playerid"editgate") == 1)
                {
                    
GateInfo[i][X1] = x;
                    
GateInfo[i][Y1] = y;
                    
GateInfo[i][Z1] = z;
                }
                if(
GetPVarInt(playerid"editgate") == 2)
                {
                    
GateInfo[i][X2] = x;
                    
GateInfo[i][Y2] = y;
                    
GateInfo[i][Z2] = z;
                }
                
GateInfo[i][RX] = rx;
                
GateInfo[i][RY] = ry;
                
GateInfo[i][RZ] = rz;
                
SaveGates();
                
LoadGates();
                return 
1;
            }
        }
    }
    return 
1;


Wrong info from CMD

$
0
0
Hello, i have this command

Code:

CMD:v(playerid)
{
        new string[256], i;
        mysql_format(handle, string, sizeof(string), "SELECT * FROM `cars` WHERE `Owner` = '%s'", GetName(playerid));
        new Cache:r = mysql_query(handle, string);
        if(!cache_num_rows()) return SCM( playerid, -1, "No personal vehicles");
        else
        {
                while(i < cache_num_rows())
                {
                        new carid = CarInfo[i][CarID];
                        format(string, sizeof(string), "%d Your id car: %d - model: %s.", i+1, carid, GetVehicleName(CarInfo[idmasina][CarModel]));
                        SCMALL(-1, string);
                        masinacars[playerid][i] = carid;
                        i++;
                }
        }
        tospawn[playerid] = 0;
        cache_delete(r);
        return 1;
}

I have 4 cars in database car id 1 and 3 are mine, 2 and 4 are from other players.
Picture of database: https://imgur.com/a/iNvRM4p

The problem is that this command give's me the first and last car, why and can someone help me ?
I need to get the cars that are mine.

[Ajuda] Alguem me da uma ideia melhor de como fazer isso aqui. Inventario

$
0
0
PHP Code:

[CENTER]enum E_Inventario
{
    
Arma,
    
Ammo,
    
Comida,
    
Bebida
};
new 
Inv[MAX_PLAYERS][E_Inventario];

CMD:guardararma(playerid)
{
    new 
file[40]; 
    if( 
GetPlayerWeapon(playerid) == )
        return 
SendClientMessage(playerid, -1"<!> Voce nao esta segurando uma arma!");
    
Inv[playerid][Arma] = GetPlayerWeapon(playerid);
    
Inv[playerid][Ammo] = GetPlayerAmmo(playerid);
    
RemovePlayerWeapon(playeridInv[playerid][Arma]);
    
format(filesizeof file"Inventario/%s.ini"PegarNome(playerid));
    if(!
DOF2_FileExists(file)) DOF2_CreateFile(file);
    
DOF2_SetInt(file"Arma"Inv[playerid][Arma]);
    
DOF2_SetInt(file"Ammo"Inv[playerid][Ammo]);
    
DOF2_SaveFile();
    
SendClientMessage(playerid, -1"[INFO] Arma salva");
    return 
1;
}
CMD:pegararma(playerid)
{
    new 
file[40];
    
format(filesizeof file"Inventario/%s.ini"PegarNome(playerid));
    if(
DOF2_FileExists(file))
    {
        
Inv[playerid][Arma] = DOF2_GetInt(file"Arma");
        
Inv[playerid][Ammo] = DOF2_GetInt(file"Ammo");
        
GivePlayerWeaponEx(playeridInv[playerid][Arma], Inv[playerid][Ammo]);
        
DOF2_SetInt(file"Arma"0);
        
DOF2_SetInt(file"Ammo"0);
        
DOF2_SaveFile();
        
SendClientMessage(playerid, -1"[INFO] Voce retirou sua arma do inventario!");
    }
    else 
        
SendClientMessage(playerid, -1"<!> Voce nao tem arma guardada!");
    return 
1;
}[/
CENTER

[MAP] San Fierro Police Department

[Ajuda] Converter String para Define

$
0
0
Bom eu estou na mente em criar um sisteminha que irá facilitar minha vida no futuro, pensei numa maneira mas não sei o jeito correto de aplicar.

Eu criei um exemplo que não tem nada haver com o sistema que eu estou desenvolvendo mas dará uma ideia da minha questão.

PHP Code:

#define MSG_0 "Mensagem 0..."
#define MSG_1 "Mensagem 1..."
#define MSG_2 "Mensagem 2..."

SendMSG()
{
    new
        
str[24];

    
format(strsizeof(str), "MSG_%d"random(2));
    
printf(str);


Quando eu faço isso em vez de ele mandar a mensagem presente dentro do define, ele manda no console "MSG_1"(por exemplo) e sim eu sei que pela lógica está certo mas eu quero que seja diferente, eu quero que ele identifique que eu quero é acessar a mensagem presente dentro do define. Alguém sabe como faço isso?

(Se ficou confuso me avise que eu tento dar uma explicada melhor).

[Ajuda] Sistemas de comando

$
0
0
Boa noite, pessoal. Estou acessando o fórum após alguns anos por fora e gostaria de saber algumas coisas:

*Qual o sistema de comando utilizado atualmente? (na minha época era zcmd)
*Sscanf ainda é utilizado?
*Qual sistema de salvamento utilizado atualmente? (Sou da época do dini e dof2)
*Mudou muita coisa nos últimos 5 anos a comunidade sa-mp e os servidores no geral?


Valeu

[Off] O que você gostaria de ver no sa-mp [post de interação]

$
0
0
Boa noite, estava vendo a treta do kalcor sobre não querer adicionar a opção de download na nova versão que vai sair e estava pensando, se vocês pudessem escolher 3 coisas para ser adicionada a nova versão o que seria ?

eu:

1- A opção de download como a 0.3DL

2- Algumas alterações na física do jogo

3- Novas armas/alterar componentes dos veiculos.

(Na versão 0.3DL não gostaria que o download pudesse alterar extremamente a jogabilidade, apenas texturas, adicionar alguns objetos e alguns carros).

[HELP] CREATE

$
0
0
- I need help with the problem ((/gcreate)) ie creating Glocker lockers. ((Family lockers))
- I have a Glocker code but want to create a closet must Add by Gamemodes. Now I need help creating straight in Ingame with players of Rank 6 or above or Admins 1338 and above.
- Who can help me? Please...

Merry Christmas everyone!

$
0
0
All merry Christmas friends.

Let the New Year bring you only bright discoveries, interesting ideas and pleasant sensations!

Happy New 2020 year! Let it be the year of pleasant discoveries, new friends and unforgettable meetings. Be happy. Happy New Year!

Happy New Year! I wish you prosperity, fulfillment of all desires, peace of mind and well-being in every way!

Happy New Year! I wish you success in your career, positive emotions and a fortune!

At the beginning of the New Year we wish you a conviviality. Let the number 2020 protect you of any troubles and bring only good impressions!

With a great pleasure I congratulate you on a New Year! Let the destiny be favorable to you in the New Year, problems far from you and the life be fun and happy!

Let's say goodbye to the old year and meet the New 2020! Year, which will open new horizons for us and will give opportunity to make all your dreams come true!


Thank You! Merry Christmas again everyone!

FCNPC_Spawn crashing the server

$
0
0
Hey

I'm using latest DL version of the FCNPC plugin and FCNPC_Spawn function crashing the server.

Code:

=========================== FCNPC Exception Handler ============================
Address: 0x7b44df69

Registers:
EAX: 0x0 - EBX: 0x1 - ECX: 0x30afef10 - EDX: 0x7b436712
ESI: 0xac - EDI: 0x30afef10 - EBP: 0x19fa28 - ESP: 0x19fa24

Stack:
0x0: 0xac - 0x4: 0x19fb68 - 0x8: 0x7b45d278 - 0xC: 0xac - 0x10: 0xa33546de - 0x14: 0xac
0x18: 0x30afef10 - 0x1C: 0x28f5ea8 - 0x20: 0x0

Information:
  System: Windows
  SA-MP: 0.3.DL R1
  FCNPC: 2.0.0

Functions:
  FUNC_CPlayerPool__DeletePlayer: 0x466550
  FUNC_CPlayer__Kill: 0x485020
  FUNC_CPlayer__EnterVehicle: 0x485670
  FUNC_CPlayer__ExitVehicle: 0x485790
  FUNC_CPlayer__SpawnForWorld: 0x487730
  FUNC_GetVehicleModelInfo: 0x4892a0
  FUNC_CConsole__GetIntVariable: 0x490c80
  FUNC_ClientJoin_RPC: 0x497ef0

Pointers:
  VAR_ServerAuthentication: 0x4fc470
  VAR_NetVersion: 0xfde

Offsets:
  OFFSET_RemoteSystemManager: 0x33c
  OFFSET_RemoteSystemSize: 0xcb8
  OFFSET_RemoteSystem__ConnectMode: 0xcb0
  OFFSET_RemoteSystem__Unknown: 0xcb5

Callbacks:
  FUNC_CGameMode__OnPlayerGiveDamage: 0x46f050
  FUNC_CGameMode__OnPlayerTakeDamage: 0x46efd0
  FUNC_CGameMode__OnPlayerWeaponShot: 0x46f640
  FUNC_CGameMode__OnPlayerStreamIn: 0x46ebc0
  FUNC_CGameMode__OnPlayerStreamOut: 0x46ec30
  FUNC_CGameMode__OnGameModeExit: 0x46da90
=========================== FCNPC Exception Handler ============================

Can you give any advice to fix this?

STATS NO SHOW

$
0
0
My stats in /info no show dialog

Code:

CMD:info(playerid)
{
        if(IsPlayerConnected(playerid))
        {
                new string[1024],storage[200];
                format(string, sizeof(string), "{F81414}Info hráče {FFFFFF}%s\n", Jmeno(playerid));
                strcat(string,storage);
                format(string, sizeof(string), "{FFFFFF}ZÁKLADNÍ INFO\n");
                strcat(string,storage);
                format(string, sizeof(string), "{F81414}Dni: {FFFFFF}%d\n{F81414}Hodin: {FFFFFF}%d\n{F81414}Minut: {FFFFFF}%d\n", Dni[playerid], Hodin[playerid], Minut[playerid]);
                strcat(string,storage);
                format(string, sizeof(string), "{F81414}Banka: {FFFFFF}%s$\n{F81414}Peníze: {FFFFFF}%s$\n{F81414}Firma %s$\n{F81414}Dům číslo: {FFFFFF}%d\n",Split(Banka[playerid]), Split(GetMoney(playerid)), Split(Firma[playerid]), glob16310[playerid]);
                strcat(string,storage);
                format(string, sizeof(string), "{F81414}Marihuana: {FFFFFF}%d\n{F81414}Alkohol: {FFFFFF}%d\n{F81414}WantedLevel: {FFFFFF}%d\n", glob15080[playerid], GetPlayerDrunkLevel(playerid), GetPlayerWantedLevel(playerid));
                strcat(string,storage);
                format(string, sizeof(string), "{F81414}Zabil jste: {FFFFFF}%d\n{F81414}Umřel jste: {FFFFFF}%d\n{F81414}Bomba: {FFFFFF}%d\n", glob15398[playerid], glob15524[playerid], glob1520C[playerid]);
                strcat(string,storage);
                format(string, sizeof(string), "{FFFFFF}PRŮKAZY A ZKUŠENOSTI\n");
                strcat(string,storage);
                format(string, sizeof(string), "{F81414}Řidický průkaz: {FFFFFF}%d\n{F81414}Letecký průkaz: {FFFFFF}%d\n{F81414}Lodní průkaz: {FFFFFF}%d\n", glob12B60[playerid], glob13190[playerid], glob14108[playerid]);
                strcat(string,storage);
                format(string, sizeof(string), "{F81414}Zbrojní průkaz: {FFFFFF}%d\n{F81414}Pas: {FFFFFF}%d]\n", glob129D4[playerid], glob15FF8[playerid]);
                strcat(string,storage);
                format(string, sizeof(string), "{F81414}PolicejníZK: {FFFFFF}%d\n{F81414}MafianskéZK: {FFFFFF}%d\n{F81414}VojenskéZK: {FFFFFF}%d\n", glob11BE8[playerid], glob11D74[playerid], glob123A4[playerid]);
                strcat(string,storage);
                format(string, sizeof(string), "{F81414}ŘidickéZK: {FFFFFF}%d\n{F81414}LeteckéZK: {FFFFFF}%d\n", glob12CEC[playerid], glob12E78[playerid]);
                strcat(string,storage);
                ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX, "INFORMACE",string,"OK","");
        }
        return 1;
}

Server without Hamachi

$
0
0
Is it possible to play in my own server without Hamachi? I would like to free some space from my old laptop and feels kinda tiresome to logging up, logging in, creating the room and so on.

[Ajuda] Alguém me ajuda NOME_SOBRENOME

$
0
0
Fiz um comando de NOME_SOBRENOME para o meu server de roleplay más tem um problema a mensagem fica dizendo para o player ter que usar ''Use Nome_Sobrenome'' não está indo, portanto só dá o server closed e pronto.
pawn Code:
public OnPlayerConnect(playerid)
{
    new
              nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nome, MAX_PLAYER_NAME);

    if(CheckPlayerNick(nome) == 0){
        SendClientMessage(playerid, -1, "Info: Você foi kickado por seu nick não seguir os padrões do servidor.");
        SendClientMessage(playerid, -1, "Seu nick não segue o padrão do server, utilize NOME_SOBRENOME'");
        Kick(playerid);
    }
    return 1;
}

CheckPlayerNick(text[])
{
    for(new a; a < strlen(text); ++a)
    {
        if(text[a] == '_') return 1;
    }
    return 0;
}

[Mapping] Grotti Dealership

$
0
0
Grotti Dealership

I decide to finaly retexture this place and make some modern vibe car dealership.


More photos : Click


AttachDynamicObjectToVehicle

$
0
0
Hey there

I've attached some objects to train trailers which driven by an NPC. If the train leaves the set streaming distance the objects are dissapearing until the NPC re-enters to it's streaming area.

The code is simple but I don't know why not works.

Code:

                    objectid = CreateDynamicObject(3066, x, y, (z - 45.0), 0.0, 0.0, 0.0);
                    AttachDynamicObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);

How I can fix this?

Detect when player enter/leave pickup

$
0
0
I need to detect when player enter/leave a pickup

How to do it in this pickup for example:
Code:

Pickupcasas[houseid] = CreateDynamicPickup(1254, 1, HouseInfo[houseid][hOutPosX], HouseInfo[houseid][hOutPosY], HouseInfo[houseid][hOutPosZ], -1);

i tried this:
Code:

public OnPlayerPickUpDynamicPickup(playerid, pickupid) {
    // ========================
    // enter pickup
    // ========================
    new string[80];
    if(pickupid == Pickupcasas[houseid]) {
        format(string, sizeof(string), "enter PICKUP house: %i", houseid );
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    }
    new Float: x, Float: y, Float: z;
    GetPlayerPos(playerid, x,y,z);
    timerStillOnPickUp[playerid] = SetTimerEx("PlayerStillOnPickUp", 500, 0, "iifff", playerid, pickupid, x,y,z);
    return 1;
}
forward PlayerStillOnPickUp(playerid, pickupid, pickupX, pickupY, pickupZ);
public PlayerStillOnPickUp(playerid, pickupid, pickupX, pickupY, pickupZ) {
    KillTimer(timerStillOnPickUp[MAX_PLAYERS]);
    if(IsPlayerInRangeOfPoint(playerid, 5.0, pickupX, pickupY, pickupZ)) {
        timerStillOnPickUp[playerid] = SetTimerEx("PlayerStillOnPickUp", 500, 0, "iifff", playerid, pickupid, pickupX,pickupY,pickupZ);
    }
    // ========================
    // leaves pickup
    // ========================
    else {
        new string[80];
        if(pickupid == Pickupcasas[houseid]) {
            format(string, sizeof(string), "leaves PICKUP house: %i", houseid );
            SendClientMessage(playerid, COLOR_LIGHTRED, string);
        }
    }
    return 0;
}

with a bunch of error 017: undefined symbol "houseid"
how should i do this?

San Francisco Roleplay - 0.3.7 [Heavy-rp]

$
0
0


San Francisco Roleplay


San Francisco Roleplay - Information:
  • Server IP: Coming soon.
  • Forum: Coming soon.
  • Website & UCP: Coming soon.
  • Discord server: SF-RP Discord


San Francisco Roleplay is a an English speaking community that is all about providing the best quality roleplay for their members. We at SF-RP keep a high standard of roleplay and enforce all of our rules fully. Our staff is trained to act professionally and are the best out there when it comes to punishing rule-breakers and solving in-game problems. The server has a very strict rule of always roleplaying to the best of your ability. Trolling, bad grammar and other impurities in roleplay will be punished by our administrator team.

Unique Inventory System
San Francisco Roleplay has an unique inventory system with over one hundred (100) items available for players to use. All items are droppable and stay on the ground until being picked up. Item types vary from food, drugs, weapons, tools and others.



Unique Weapon System
Weapons are obtained by official factions with rights to shipments and illegal warehouse. For certain weapons (automatic ones like AK-47 and vehicle bombs) you will require administration approval.



Unique Factions System
Our factions system is dynamic. Every faction with it's rights and type can be added in-game. We have a custom MDC system for SFPD that you might like, check it out.




Custom Damage System
Every weapon's damage has been customized on SF-RP. We wanted to keep it on a realistic ratio and so people take cover and do not rush like they usually do on SA-MP. Melee weapons are now more deadly and certain firearms can kill you by a single shot. In the screenshot below we have used Katana as an example with 1 hit.



High Quality Vehicle System
We have decided to give freedom to players regarding their vehicles as long as they keep them realistic. Players can customize their vehicles with custom objects like shown on the screenshots below. Also, they can furniture certain vehicle interiors and enter them.
Players can own up to 3 vehicles, have all of them spawned and they have the usual features like trunk, engine status, mileage, glovebox, etc.




House, Garage & Business System
Every player is able to buy 1 house and 1 business. They are able to use it's safe, also to custom map their house or business in large warehouse interior. Players are also able to plant objects outside their house and business. It is required to stay at a realistic aspect between interior and exterior. Also players are able to use their house's garages and their houses can have back-door entrances. Same goes for business back-doors.




We also have bunch of other systems that you as a player might like:
Default roleplay jobs such as Taxi Driver, Mechanic, Trucker, Pizza Boy, Farmer & Streetsweeper
In-game registration system with a small roleplay quiz
Vehicle engine and battery life system
Weapon clip system that forces more realistic roleplay
Marijuana growing and crack cooking system
Attachment system for players
Realistic knock out system when players get knocked out when low on HP (Melee weapons only)
Corpse system (when player dies - corpse is created)
Shell Casing system (shell casings drop after weapon has been fired - they have serials unless obtained illegaly - can't be picked up when hot)
Basketball system (players are able to play basketball)
And other unique and cool features..

TextDraw only showing once

$
0
0
I've tried to make reputation system by showing the reputation rank A until F in a textdraw, the problem is it only shows once for new players, when players try to reconnect, it will disappear. Below is my code.

Code:

TextDraw Code
public OnPlayerSpawn(playerid){
    Rep[playerid] = TextDrawCreate(500.000000, 440.000000, GetReputationRank(playerid));
    TextDrawAlignment(Rep[playerid], 0);
    TextDrawBackgroundColor(Rep[playerid], 0x000000ff);
    TextDrawFont(Rep[playerid], 3);
    TextDrawLetterSize(Rep[playerid], 0.270000, 0.899999);
    TextDrawColor(Rep[playerid], PURPLE);
    TextDrawSetOutline(Rep[playerid], 1);
    TextDrawSetProportional(Rep[playerid], 1);
    TextDrawSetShadow(Rep[playerid], 1);
}

GetReputationRank function
Code:

stock GetReputationRank(playerid)
{
        new Rank[60];
        if(PlayerStat[playerid][FullyRegistered] == 1)
        {
                if(PlayerStat[playerid][Reputation] < 10)
                {
                format(Rank, sizeof(Rank), "F");
                }
            else if(PlayerStat[playerid][Reputation] > 20 && PlayerStat[playerid][Reputation] < 40)
                {
                    format(Rank, sizeof(Rank), "E");
                }
            else if(PlayerStat[playerid][Reputation] > 40 && PlayerStat[playerid][Reputation] < 70)
                {
                    format(Rank, sizeof(Rank), "D");
                }
            else if(PlayerStat[playerid][Reputation] > 70 && PlayerStat[playerid][Reputation] < 90)
                {
                    format(Rank, sizeof(Rank), "C");
                }
            else if(PlayerStat[playerid][Reputation] > 90 && PlayerStat[playerid][Reputation] < 100)
                {
                    format(Rank, sizeof(Rank), "B");
                }
            else if(PlayerStat[playerid][Reputation] > 100 && PlayerStat[playerid][Reputation] < 90)
                {
                    format(Rank, sizeof(Rank), "A");
                }
                else
                {
                format(Rank, sizeof(Rank), "ERROR");
                }
        }

    return Rank;
}

What is wrong with my code? please help :(

[Map] Codominio

Viewing all 18226 articles
Browse latest View live


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