[POMOC]Oruzija..

Započeo [GP]Brain, Maj 04, 2013, 14:11:48 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

na vrh FILTERskripte sam dodao new uzo[MAX_PLAYERS]; i u komandi u filterscripti sam dodao

command(podigni, playerid, params[])
{
    for(new i = 0; i < sizeof(DropInfo); i++)
    {
        if (IsPlayerInRangeOfPoint(playerid, 2.0,DropInfo[i][DropGunPosX],DropInfo[i][DropGunPosY],DropInfo[i][DropGunPosZ]))
        {
            if(GetPlayerVirtualWorld(playerid) == DropInfo[i][DropGunVWorld] && GetPlayerInterior(playerid) == DropInfo[i][DropGunInterior])
            {
uzo[playerid] = 1; //EO GA ODE
GetPlayerName(playerid, sendername, sizeof(sendername));
                DestroyDynamicObject(DropObject[i]);
                GivePlayerWeapon(playerid,DropInfo[i][DropGunAmmount][0],DropInfo[i][DropGunAmmount][1]);
                DropInfo[i][DropGunPosX] = 0.0;
                DropInfo[i][DropGunPosY] = 0.0;
                DropInfo[i][DropGunPosZ] = 0.0;
                DropInfo[i][DropGunAmmount][0] = 0;
                DropInfo[i][DropGunAmmount][1] = 0;
                format(string, sizeof(string), "* %s je uzeo oruzje s poda.", sendername);
                SendLocalMessage(playerid, string, 10.0, COLOR_ACTION, COLOR_ACTION);
                return 1;
            }
        }
    }
    return 1;
}


DALJE


na vrh GAMEMODA sam dodao new uzo[MAX_PLAYERS];

i u anticheat u GAMEMODU


              if(weap == 22 || weap == 23 || weap == 24 || weap == 25 || weap == 28 || weap == 29 || weap == 30 || weap == 31 || weap == 33 || weap == 34)
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
        {
        SetPVarInt(playerid, "UpdateCount", 20+(GetPlayerPing(playerid)/4));
        }
        if(GetPVarInt(playerid, "ConnectTime") < 1)
        {
if(uzo[playerid] = 1) //EVO GA ODE
{
      new playername[MAX_PLAYER_NAME];
new year, month, day;
new hours, minutes, seconds;
            GetPlayerName(playerid, playername, sizeof(playername));
getdate(year, month, day);
gettime(hours, minutes, seconds);
format(string, sizeof(string), "[Union]: %s je dobio ban od AntiCheata!! (%d-%d-%d)", playername,day,month,year);
BanLog(string);
format(string, sizeof(string), "[Union]: %s je dobio ban od AntiCheata!", playername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
ClearChatBox(playerid);
            SendClientMessage(playerid, COLOR_WHITE, "- Dobili ste ban od AntiCheata!");
            SendClientMessage(playerid, COLOR_WHITE, "- Razlog bana: Weapon Cheat, nedozvoljeno oružje!");
    format(string, sizeof(string), " - Datum: %d/%d/%d | %d:%d:%d", day,month,year,hours,minutes,seconds);
        SendClientMessage(playerid, COLOR_WHITE, string);
        SendClientMessage(playerid, COLOR_RED,"[Union]: Ako mislite da niste zasluzili ban molimo vas da nam se obratite na nasem forumu");
PlayerInfo[playerid][pAdmin] = PlayerInfo[playerid][pLevel];
PlayerInfo[playerid][pLevel] = -999;
Ban(playerid);
return 1;
}
}
}
}
public OnPlayerConnect(playerid)
{
Ban(playerid);
return 1;
}



    if(weap == 22 || weap == 23 || weap == 24 || weap == 25 || weap == 28 || weap == 29 || weap == 30 || weap == 31 || weap == 33 || weap == 34)
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
        {
        SetPVarInt(playerid, "UpdateCount", 20+(GetPlayerPing(playerid)/4));
        }
        if(GetPVarInt(playerid, "ConnectTime") < 1)
        {
if(uzo[playerid] = 1) //EVO GA ODE
{
      new playername[MAX_PLAYER_NAME];
new year, month, day;
new hours, minutes, seconds;
            GetPlayerName(playerid, playername, sizeof(playername));
getdate(year, month, day);
gettime(hours, minutes, seconds);
format(string, sizeof(string), "[Union]: %s je dobio ban od AntiCheata!! (%d-%d-%d)", playername,day,month,year);
BanLog(string);
format(string, sizeof(string), "[Union]: %s je dobio ban od AntiCheata!", playername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
ClearChatBox(playerid);
            SendClientMessage(playerid, COLOR_WHITE, "- Dobili ste ban od AntiCheata!");
            SendClientMessage(playerid, COLOR_WHITE, "- Razlog bana: Weapon Cheat, nedozvoljeno oružje!");
    format(string, sizeof(string), " - Datum: %d/%d/%d | %d:%d:%d", day,month,year,hours,minutes,seconds);
        SendClientMessage(playerid, COLOR_WHITE, string);
        SendClientMessage(playerid, COLOR_RED,"[Union]: Ako mislite da niste zasluzili ban molimo vas da nam se obratite na nasem forumu");
PlayerInfo[playerid][pAdmin] = PlayerInfo[playerid][pLevel];
PlayerInfo[playerid][pLevel] = -999;
Ban(playerid);
return 1;
}
}
}

ovo zadnje probaj ovako dodat
Software Developer

Citat: Ivan_Ino.pwn poslato Maj 04, 2013, 21:44:16 POSLE PODNE
negdje ti fali }


HVALA sad nema errora jos samo vidit cu jel radi sve na srw-u i imam jos nesto pogle ovo  1 waring ako znas kad sam dodao zagradu


C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27099) : warning 211: possibly unintended assignment
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
public OnPlayerConnect(playerid)
{
Ban(playerid);
return 1;
}



daj tu liniju
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

Citat: Crazyn3ss poslato Maj 04, 2013, 22:08:04 POSLE PODNE
daj tu liniju


    if(weap == 22 || weap == 23 || weap == 24 || weap == 25 || weap == 28 || weap == 29 || weap == 30 || weap == 31 || weap == 33 || weap == 34)
     {
         if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
         {
          SetPVarInt(playerid, "UpdateCount", 20+(GetPlayerPing(playerid)/4));
         }
         if(GetPVarInt(playerid, "ConnectTime") < 1)
         {
if(uzo[playerid] = 1) //OVDE izbacuje waring 27099
{
        new playername[MAX_PLAYER_NAME];
new year, month, day;
new hours, minutes, seconds;
            GetPlayerName(playerid, playername, sizeof(playername));
getdate(year, month, day);
gettime(hours, minutes, seconds);
format(string, sizeof(string), "[Union]: %s je dobio ban od AntiCheata!! (%d-%d-%d)", playername,day,month,year);
BanLog(string);
format(string, sizeof(string), "[Union]: %s je dobio ban od AntiCheata!", playername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
ClearChatBox(playerid);
             SendClientMessage(playerid, COLOR_WHITE, "- Dobili ste ban od AntiCheata!");
             SendClientMessage(playerid, COLOR_WHITE, "- Razlog bana: Weapon Cheat, nedozvoljeno oružje!");
     format(string, sizeof(string), " - Datum: %d/%d/%d | %d:%d:%d", day,month,year,hours,minutes,seconds);
         SendClientMessage(playerid, COLOR_WHITE, string);
         SendClientMessage(playerid, COLOR_RED,"[Union]: Ako mislite da niste zasluzili ban molimo vas da nam se obratite na nasem forumu");
PlayerInfo[playerid][pAdmin] = PlayerInfo[playerid][pLevel];
PlayerInfo[playerid][pLevel] = -999;
Ban(playerid);
return 1;
}
}
}
public OnPlayerConnect(playerid)
{
Ban(playerid);
return 1;
}



stavi ovako
  if(weap == 22 || weap == 23 || weap == 24 || weap == 25 || weap == 28 || weap == 29 || weap == 30 || weap == 31 || weap == 33 || weap == 34)
     {
         if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
         {
          SetPVarInt(playerid, "UpdateCount", 20+(GetPlayerPing(playerid)/4));
         }
         if(GetPVarInt(playerid, "ConnectTime") < 1)
         {
if(uzo[playerid] == 1) //OVDE izbacuje waring 27099
{
        new playername[MAX_PLAYER_NAME];
new year, month, day;
new hours, minutes, seconds;
            GetPlayerName(playerid, playername, sizeof(playername));
getdate(year, month, day);
gettime(hours, minutes, seconds);
format(string, sizeof(string), "[Union]: %s je dobio ban od AntiCheata!! (%d-%d-%d)", playername,day,month,year);
BanLog(string);
format(string, sizeof(string), "[Union]: %s je dobio ban od AntiCheata!", playername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
ClearChatBox(playerid);
             SendClientMessage(playerid, COLOR_WHITE, "- Dobili ste ban od AntiCheata!");
             SendClientMessage(playerid, COLOR_WHITE, "- Razlog bana: Weapon Cheat, nedozvoljeno oružje!");
     format(string, sizeof(string), " - Datum: %d/%d/%d | %d:%d:%d", day,month,year,hours,minutes,seconds);
         SendClientMessage(playerid, COLOR_WHITE, string);
         SendClientMessage(playerid, COLOR_RED,"[Union]: Ako mislite da niste zasluzili ban molimo vas da nam se obratite na nasem forumu");
PlayerInfo[playerid][pAdmin] = PlayerInfo[playerid][pLevel];
PlayerInfo[playerid][pLevel] = -999;
Ban(playerid);
return 1;
}
}
}
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

crazy nemoze tako onda fali zagrada ja msm } pogle sta se desi


C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27091) : warning 217: loose indentation
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27102) : warning 217: loose indentation
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27104) : warning 217: loose indentation
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27105) : warning 217: loose indentation
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27112) : warning 217: loose indentation
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27117) : warning 217: loose indentation
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27125) : warning 217: loose indentation
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27551) : warning 217: loose indentation
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27553) : warning 217: loose indentation
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27553) : error 029: invalid expression, assumed zero
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27553) : error 004: function "OnVehicleMod" is not implemented
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27555) : error 017: undefined symbol "vehicleid"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27557) : error 017: undefined symbol "vehicleid"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27558) : error 017: undefined symbol "vehicleid"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27563) : warning 225: unreachable code
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27563) : error 029: invalid expression, assumed zero
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27563) : error 004: function "OnVehiclePaintjob" is not implemented
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27565) : error 017: undefined symbol "vehicleid"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27567) : error 017: undefined symbol "vehicleid"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27572) : warning 225: unreachable code
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27572) : error 029: invalid expression, assumed zero
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27572) : error 004: function "OnVehicleRespray" is not implemented
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27574) : error 017: undefined symbol "vehicleid"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27576) : error 017: undefined symbol "vehicleid"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27577) : error 017: undefined symbol "vehicleid"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27581) : warning 225: unreachable code
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27581) : error 029: invalid expression, assumed zero
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27581) : error 004: function "OnPlayerSelectedMenuRow" is not implemented
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27588) : error 017: undefined symbol "row"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27609) : error 017: undefined symbol "row"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27675) : error 017: undefined symbol "row"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27741) : error 017: undefined symbol "row"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27756) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27784) : error 017: undefined symbol "row"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27833) : error 017: undefined symbol "row"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(27962) : error 017: undefined symbol "row"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(28091) : error 017: undefined symbol "row"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(28220) : error 017: undefined symbol "row"
C:\Users\User\Other\Union Zone\gamemodes\Union.pwn(28349) : error 017: undefined symbol "row"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
public OnPlayerConnect(playerid)
{
Ban(playerid);
return 1;
}



hvala svima na pomoci nema waringa jos cu samo provjerit jel radi sve crazy i ivan hvala vam puno pozz moze lock temu
public OnPlayerConnect(playerid)
{
Ban(playerid);
return 1;
}



niss samo uzivaj onosam ti poslao na pm
Software Developer