Jump to content
  • 0

Ajutor.


ImTouchk

Question

Problema intalnita (descriere): Incerc sa fac un gamemode, niste buguri la gm-ul principal. Totul se bazeaza pe alte filterscript-uri, in caz ca este furat de cineva sa nu poata fi asa usor de descifrat....
Ero(area / rile) / warning-(ul / urile): 
 

C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(33) : error 021: symbol already defined: "pLevel"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(48) : error 001: expected token: ";", but found "public"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(57) : error 036: empty statement
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(58) : error 029: invalid expression, assumed zero
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(58) : warning 215: expression has no effect
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(58) : error 001: expected token: ";", but found "if"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(65) : error 036: empty statement
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(66) : error 029: invalid expression, assumed zero
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(89) : error 035: argument type mismatch (argument 1)
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(89) : error 039: constant symbol has no size
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(90) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(91) : error 035: argument type mismatch (argument 1)
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(91) : error 039: constant symbol has no size
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(92) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(93) : error 035: argument type mismatch (argument 1)
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(93) : error 039: constant symbol has no size
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(94) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(95) : error 035: argument type mismatch (argument 1)
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(95) : error 039: constant symbol has no size
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(96) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(97) : error 035: argument type mismatch (argument 1)
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(97) : error 039: constant symbol has no size
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(98) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(86) : warning 204: symbol is assigned a value that is never used: "info"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(83) : warning 204: symbol is assigned a value that is never used: "tmp"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(110) : error 036: empty statement
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(111) : error 029: invalid expression, assumed zero
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(111) : warning 215: expression has no effect
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(111) : error 001: expected token: ";", but found "if"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(114) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(115) : error 036: empty statement
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(116) : error 029: invalid expression, assumed zero
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(119) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(119) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(119) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(119) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(119) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(119) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(119) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "gArmySpawns"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "gMedicalSpawns"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "gPoliceSpawns"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "gRandomSpawns_LasVenturas"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "gRandomSpawns_LosSantos"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "gRandomSpawns_SanFierro"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "total_vehicles_from_files"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


22 Errors.


Liniile de cod / sursa / script-ul(obligatoriu):

//----------------------------------------------------------
//
//  KEEPAROUND RPG  0.1
// Aceasta este o versiune beta, nu este garantat ca v-a merge 100%
//
//----------------------------------------------------------

#include <a_samp>
#include <core>
#include <float>
#include "../include/gl_common.inc"
#include "../include/gl_spawns.inc"

#pragma tabsize 

//----------------------------------------------------------

#define COLOR_WHITE         0xFFFFFFFF
#define COLOR_NORMAL_PLAYER 0xFFBB7777

new total_vehicles_from_files=;
#define rosu "{00FFFF}"
#define alb "{FFFFFF}"

//new thisanimid=0;
//new lastanimid=0;

//----------------------------------------------------------
enum PlayerInfo {
pLevel,
pAdmin,
pExp,
pLevel,
string[128],
pLevel,
pExp,
pCash,
Kills,
Deaths,
Jailed,
Muted,
Warns,
Deposit,
Donator,
}
new pInfo[MAX_PLAYERS][PlayerInfo]
//----------------------------------------------------------
public OnPlayerSpawn(playerid)
{
   if(pInfo[playerid][pAdmin] >= 1)
   {
           SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $20. O zi buna!");
           SetPlayerPos(playerid, 2366.3879,1682.2337,14.2811);
           SetPlayerSkin(playerid, 217);
           SetPlayerInterior(playerid, );
           GivePlayerMoney(playerid, -20);
   };
   else if(pInfo[playerid][pLevel] >= 1)
   {
        SetPlayerSkin(playerid, 177);
        SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203);
        SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $30. O zi buna!");
        SetPlayerInterior(playerid, );
        GivePlayerMoney(playerid, -30);
    };
    else
    {
         SetPlayerSkin(playerid, 180);
        SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203);
        SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $50. O zi buna!");
        SetPlayerInterior(playerid, );
        GivePlayerMoney(playerid, -50);
    }
       return 1;
}

//----------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx);
       new tmp[256];
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    new info[248];
    if (strcmp("/stats", cmd, true, 10) == )
    {
         format(string,sizeof(string),"_____________Statusul lui %s________",GetName(id));
         SendClientMessage(playerid, 0xd3d3d3);
         format(string,sizeof(string),"Level:[%s] Respect:[%d] Admin:[%s] In mana:[%d] In banca:[%s]", GetPlayerName, pInfo[playerid][pLevel], pInfo[playerid][pCash],pInfo[playerid][Deposit]);
        SendClientMessage(playerid, 0xd3d3d3);
        format(string,sizeof(string),"Killuri:[%s];Morti:[%d];Warnuri:[%s];Inchis:[%d];Vorbit interzis:[%s]", pInfo[playerid][pKills], pInfo[playerid][pDeaths], pInfo[playerid][pWarns], pInfo[playerid][pJailed], pInfo[playerid][pMuted]);
        SendClientMessage(playerid, 0xd3d3d3);
        format(string,sizeof(string),"Factiune:[Civil];Rank:[0];Telefon:[None];Job:[Niciunul];Premium:[%s]", pInfo[playerid][Donator]);
        SendClientMessage(playerid, 0xd3d3d3);
        format(string,sizeof(string),"__________________________________________");
        SendClientMessage(playerid, 0xd3d3d3);
        return 1;
    }
    return ;
}

public OnPlayerRequestClass(playerid, classid)
{
    if(pInfo[playerid][pAdmin] >= 1)
    {
    SetPlayerSkin(playerid, 217);
    SetPlayerPos(playerid, 2366.3879,1682.2338,14.2811);
    };
    else if(pInfo[playerid][pLevel] >= 1)
    {
    SetPlayerSkin(playerid, 177);
    SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203,260.3592);
    };
    else
    {
    SetPlayerSkin(playerid, 180);
    SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203,260.3592,,,,,,);
    }
    return 1;
}

//----------------------------------------------------------

public OnGameModeInit()
{
    SetGameModeText("RP v0.1");
    ShowNameTags(1);
    SetNameTagDrawDistance(40.0);
    EnableStuntBonusForAll();
    DisableInteriorEnterExits();
    SetWeather(2);
}

//----------------------------------------------------------

 


Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da. no result

:D

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Poftim, aveai multe " ; " in plus, multe virgule si la SetPlayerInterior nu ai specificat niciun interior si l-ai lasat asa.

//----------------------------------------------------------
//
//  KEEPAROUND RPG  0.1
// Aceasta este o versiune beta, nu este garantat ca v-a merge 100%
//
//----------------------------------------------------------

#include <a_samp>
#include <core>
#include <float>
#include "../include/gl_common.inc"
#include "../include/gl_spawns.inc"

//----------------------------------------------------------

#define COLOR_WHITE         0xFFFFFFFF
#define COLOR_NORMAL_PLAYER 0xFFBB7777

// aici incercai tu ceva dar mai documenteazate
#define rosu "{00FFFF}"
#define alb "{FFFFFF}"

//new thisanimid=0;
//new lastanimid=0;

//----------------------------------------------------------
enum PlayerInfo {
pLevel,
pAdmin,
pExp,
pLevel,
string[128],
pLevel,
pExp,
pCash,
Kills,
Deaths,
Jailed,
Muted,
Warns,
Deposit,
Donator // aici nu se pune virgula
} ;
new pInfo[MAX_PLAYERS][PlayerInfo]; // aici nu aveai ;
//----------------------------------------------------------
public OnPlayerSpawn(playerid)
{
   if(pInfo[playerid][pAdmin] >= 1)
   {
           SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $20. O zi buna!");
           SetPlayerPos(playerid, 2366.3879,1682.2337,14.2811);
           SetPlayerSkin(playerid, 217);
           SetPlayerInterior(playerid, 0); // aici la interior nu ai dat nicio valoare, ti-am pus eu 0
           GivePlayerMoney(playerid, -20);
   } // tot ;
   if(pInfo[playerid][pLevel] >= 1)
   {
        SetPlayerSkin(playerid, 177);
        SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203);
        SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $30. O zi buna!");
        SetPlayerInterior(playerid, 0); // la fel
        GivePlayerMoney(playerid, -30);
    } // tot ai pus ;
    else
    {
        SetPlayerSkin(playerid, 180);
        SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203);
        SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $50. O zi buna!");
        SetPlayerInterior(playerid, 0); // la fel
        GivePlayerMoney(playerid, -50);
    }
    return 1;
}

//----------------------------------------------------------

public OnPlayerRequestClass(playerid, classid)
{
    if(pInfo[playerid][pAdmin] >= 1)
    {
    SetPlayerSkin(playerid, 217);
    SetPlayerPos(playerid, 2366.3879,1682.2338,14.2811);
    } // aici tu ai pus ; , nu trebuie pus aici
    else if(pInfo[playerid][pLevel] >= 1)
    {
    SetPlayerSkin(playerid, 177);
    SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203,260.3592);
    } // la fel ca sus
    else
    {
    SetPlayerSkin(playerid, 180);
    SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203,260.3592); // aici aveai mute virgule
    }
    return 1;
}

//----------------------------------------------------------

public OnGameModeInit()
{
    SetGameModeText("RP v0.1");
    ShowNameTags(1);
    SetNameTagDrawDistance(40.0);
    EnableStuntBonusForAll();
    DisableInteriorEnterExits();
    SetWeather(2);
}

//----------------------------------------------------------

Si vezi ca astea:

C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "gArmySpawns"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "gMedicalSpawns"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "gPoliceSpawns"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "gRandomSpawns_LasVenturas"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "gRandomSpawns_LosSantos"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(137) : warning 203: symbol is never used: "gRandomSpawns_SanFierro"

le primeste pentru ca nu ai folosit nicaieri functiile astea, daca nu vrei sa-ti mai apara si nu ai de gand sa le folosesti vreodata sterge: 

#include "../include/gl_spawns.inc"
Acum 22 ore, M3TrickZz a spus:

Salut, la prima eroare iti zice ca este deja definit pLevel , te duci la


enum PlayerInfo {

si sterge al 4-lea si al 6-lea rand care scrie "pLevel" , acum mai jos ai "Donator," sterge "," aia de langa Donator

Acum dute la


public OnPlayerSpawn(playerid)

si in loc de


SetPlayerInterior(playerid, );

pui asa la toate


SetPlayerInterior(playerid, );

Si unde-i diferenta dintre cele doua???

Edited by andy47
Link to comment
Share on other sites

  • 0

Noile erori:
 

C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(33) : error 021: symbol already defined: "pLevel"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(48) : error 001: expected token: ";", but found "public"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(57) : error 036: empty statement
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(58) : error 029: invalid expression, assumed zero
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(58) : warning 215: expression has no effect
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(58) : error 001: expected token: ";", but found "if"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(65) : error 036: empty statement
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(66) : error 029: invalid expression, assumed zero
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(85) : error 036: empty statement
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(86) : error 029: invalid expression, assumed zero
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(86) : warning 215: expression has no effect
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(86) : error 001: expected token: ";", but found "if"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(89) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(90) : error 036: empty statement
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(91) : error 029: invalid expression, assumed zero
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(94) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(94) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(94) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(94) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(94) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(94) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(94) : warning 202: number of arguments does not match definition
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(112) : warning 203: symbol is never used: "gArmySpawns"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(112) : warning 203: symbol is never used: "gMedicalSpawns"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(112) : warning 203: symbol is never used: "gPoliceSpawns"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(112) : warning 203: symbol is never used: "gRandomSpawns_LasVenturas"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(112) : warning 203: symbol is never used: "gRandomSpawns_LosSantos"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(112) : warning 203: symbol is never used: "gRandomSpawns_SanFierro"
C:\Users\a\Desktop\Folder nou (2)\gamemodes\grandlarc.pwn(112) : warning 203: symbol is never used: "total_vehicles_from_files"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


12 Errors.

 

la

script-ul

//----------------------------------------------------------
//
//  KEEPAROUND RPG  0.1
// Aceasta este o versiune beta, nu este garantat ca v-a merge 100%
//
//----------------------------------------------------------

#include <a_samp>
#include <core>
#include <float>
#include "../include/gl_common.inc"
#include "../include/gl_spawns.inc"

#pragma tabsize 

//----------------------------------------------------------

#define COLOR_WHITE         0xFFFFFFFF
#define COLOR_NORMAL_PLAYER 0xFFBB7777

new total_vehicles_from_files=;
#define rosu "{00FFFF}"
#define alb "{FFFFFF}"

//new thisanimid=0;
//new lastanimid=0;

//----------------------------------------------------------
enum PlayerInfo {
pLevel,
pAdmin,
pExp,
pLevel,
string[128],
pLevel,
pExp,
pCash,
Kills,
Deaths,
Jailed,
Muted,
Warns,
Deposit,
Donator,
}
new pInfo[MAX_PLAYERS][PlayerInfo]
//----------------------------------------------------------
public OnPlayerSpawn(playerid)
{
   if(pInfo[playerid][pAdmin] >= 1)
   {
           SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $20. O zi buna!");
           SetPlayerPos(playerid, 2366.3879,1682.2337,14.2811);
           SetPlayerSkin(playerid, 217);
           SetPlayerInterior(playerid, );
           GivePlayerMoney(playerid, -20);
   };
   else if(pInfo[playerid][pLevel] >= 1)
   {
        SetPlayerSkin(playerid, 177);
        SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203);
        SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $30. O zi buna!");
        SetPlayerInterior(playerid, );
        GivePlayerMoney(playerid, -30);
    };
    else
    {
         SetPlayerSkin(playerid, 180);
        SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203);
        SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $50. O zi buna!");
        SetPlayerInterior(playerid, );
        GivePlayerMoney(playerid, -50);
    }
       return 1;
}

//----------------------------------------------------------

public OnPlayerRequestClass(playerid, classid)
{
    if(pInfo[playerid][pAdmin] >= 1)
    {
    SetPlayerSkin(playerid, 217);
    SetPlayerPos(playerid, 2366.3879,1682.2338,14.2811);
    };
    else if(pInfo[playerid][pLevel] >= 1)
    {
    SetPlayerSkin(playerid, 177);
    SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203,260.3592);
    };
    else
    {
    SetPlayerSkin(playerid, 180);
    SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203,260.3592,,,,,,);
    }
    return 1;
}

//----------------------------------------------------------

public OnGameModeInit()
{
    SetGameModeText("RP v0.1");
    ShowNameTags(1);
    SetNameTagDrawDistance(40.0);
    EnableStuntBonusForAll();
    DisableInteriorEnterExits();
    SetWeather(2);
}

//----------------------------------------------------------

 

:D

Link to comment
Share on other sites

  • 0

Salut, la prima eroare iti zice ca este deja definit pLevel , te duci la

enum PlayerInfo {

si sterge al 4-lea si al 6-lea rand care scrie "pLevel" , acum mai jos ai "Donator," sterge "," aia de langa Donator

Acum dute la

public OnPlayerSpawn(playerid)

si in loc de

SetPlayerInterior(playerid, );

pui asa la toate

SetPlayerInterior(playerid, );

 

Link to comment
Share on other sites

  • 0

Iti voi arata imediat ce trebuie sa faci.

Incearca acum, daca nu merge, posteaza noile erori, succes.

 

Spoiler

//----------------------------------------------------------
//
//  KEEPAROUND RPG  0.1
// Aceasta este o versiune beta, nu este garantat ca v-a merge 100%
//
//----------------------------------------------------------

#include <a_samp>
#include <core>
#include <float>
#include "../include/gl_common.inc"

#pragma tabsize

//----------------------------------------------------------

#define COLOR_WHITE         0xFFFFFFFF
#define COLOR_NORMAL_PLAYER 0xFFBB7777

new total_vehicles_from_files=;
#define rosu "{00FFFF}"
#define alb "{FFFFFF}"

//new thisanimid=0;
//new lastanimid=0;

//----------------------------------------------------------
enum PlayerInfo {
pLevel,
pAdmin,
pExp,
string[128],
pExp,
pCash,
Kills,
Deaths,
Jailed,
Muted,
Warns,
Deposit,
Donator,
};
new pInfo[MAX_PLAYERS][PlayerInfo]
//----------------------------------------------------------
public OnPlayerSpawn(playerid)
{
   if(pInfo[playerid][pAdmin] >= 1)
   {
           SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $20. O zi buna!");
           SetPlayerPos(playerid, 2366.3879,1682.2337,14.2811);
           SetPlayerSkin(playerid, 217);
           SetPlayerInterior(playerid,0);
           GivePlayerMoney(playerid, -20);
   };
   else if(pInfo[playerid][pLevel] >= 1)
   {
        SetPlayerSkin(playerid, 177);
        SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203);
        SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $30. O zi buna!");
        SetPlayerInterior(playerid,0);
        GivePlayerMoney(playerid, -30);
    };
    else
    {
         SetPlayerSkin(playerid, 180);
        SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203);
        SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $50. O zi buna!");
        SetPlayerInterior(playerid,0);
        GivePlayerMoney(playerid, -50);
    }
       return 1;
}

//----------------------------------------------------------

public OnPlayerRequestClass(playerid, classid)
{
    if(pInfo[playerid][pAdmin] >= 1)
    {
    SetPlayerSkin(playerid, 217);
    SetPlayerPos(playerid, 2366.3879,1682.2338,14.2811);
    }
    else if(pInfo[playerid][pLevel] >= 1)
    {
    SetPlayerSkin(playerid, 177);
    SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203,260.3592);
    }
    else
    {
    SetPlayerSkin(playerid, 180);
    SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203,260.3592);
    }
    return 1;
}

//----------------------------------------------------------

public OnGameModeInit()
{
    SetGameModeText("RP v0.1");
    ShowNameTags(1);
    SetNameTagDrawDistance(40.0);
    EnableStuntBonusForAll();
    DisableInteriorEnterExits();
    SetWeather(2);
}

//----------------------------------------------------------

 

Edited by M3TrickZz
Link to comment
Share on other sites

  • 0
Acum 15 minute, M3TrickZz a spus:

Iti voi arata imediat ce trebuie sa faci.

Incearca acum, daca nu merge, posteaza noile erori, succes.

 

  Ascunde conținuturi

//----------------------------------------------------------
//
//  KEEPAROUND RPG  0.1
// Aceasta este o versiune beta, nu este garantat ca v-a merge 100%
//
//----------------------------------------------------------

#include <a_samp>
#include <core>
#include <float>
#include "../include/gl_common.inc"

#pragma tabsize

//----------------------------------------------------------

#define COLOR_WHITE         0xFFFFFFFF
#define COLOR_NORMAL_PLAYER 0xFFBB7777

new total_vehicles_from_files=;
#define rosu "{00FFFF}"
#define alb "{FFFFFF}"

//new thisanimid=0;
//new lastanimid=0;

//----------------------------------------------------------
enum PlayerInfo {
pLevel,
pAdmin,
pExp,
string[128],
pExp,
pCash,
Kills,
Deaths,
Jailed,
Muted,
Warns,
Deposit,
Donator,
};
new pInfo[MAX_PLAYERS][PlayerInfo]
//----------------------------------------------------------
public OnPlayerSpawn(playerid)
{
   if(pInfo[playerid][pAdmin] >= 1)
   {
           SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $20. O zi buna!");
           SetPlayerPos(playerid, 2366.3879,1682.2337,14.2811);
           SetPlayerSkin(playerid, 217);
           SetPlayerInterior(playerid,0);
           GivePlayerMoney(playerid, -20);
   };
   else if(pInfo[playerid][pLevel] >= 1)
   {
        SetPlayerSkin(playerid, 177);
        SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203);
        SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $30. O zi buna!");
        SetPlayerInterior(playerid,0);
        GivePlayerMoney(playerid, -30);
    };
    else
    {
         SetPlayerSkin(playerid, 180);
        SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203);
        SendClientMessage(playerid, 0x00FFFF, "Factura ta medicala este de $50. O zi buna!");
        SetPlayerInterior(playerid,0);
        GivePlayerMoney(playerid, -50);
    }
       return 1;
}

//----------------------------------------------------------

public OnPlayerRequestClass(playerid, classid)
{
    if(pInfo[playerid][pAdmin] >= 1)
    {
    SetPlayerSkin(playerid, 217);
    SetPlayerPos(playerid, 2366.3879,1682.2338,14.2811);
    }
    else if(pInfo[playerid][pLevel] >= 1)
    {
    SetPlayerSkin(playerid, 177);
    SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203,260.3592);
    }
    else
    {
    SetPlayerSkin(playerid, 180);
    SetPlayerPos(playerid, 2444.0042,1662.9326,10.8203,260.3592);
    }
    return 1;
}

//----------------------------------------------------------

public OnGameModeInit()
{
    SetGameModeText("RP v0.1");
    ShowNameTags(1);
    SetNameTagDrawDistance(40.0);
    EnableStuntBonusForAll();
    DisableInteriorEnterExits();
    SetWeather(2);
}

//----------------------------------------------------------

 

Bha esti nebun? I l-am dat eu deja :)) si vezi ca tu in ala care l-ai pus acuma ai multe greseli.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.