Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: dakias poslato April 14, 2013, 20:40:45 POSLE PODNE

Naslov: [Pomoc]Ulaz u kuce,biz itd
Poruka od: dakias poslato April 14, 2013, 20:40:45 POSLE PODNE
Skripta koju koristim: Eternal Gaming
Detaljan opis problema:Na modu se u bizove itd ulazi sa komandom /enter. Kako da namestim da se ulazi na F ili Enter
Dio skripte:     if(strcmp(cmd, "/enter", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
{
SetPlayerInterior(playerid,HouseInfo[i][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]);
JBC_SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
GameTextForPlayer(playerid, "~g~Dobrodosli kuci", 4000, 4);
PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
PlayerInfo[playerid][pLocal] = i;
HouseEntered[playerid] = i;
}
else
{
GameTextForPlayer(playerid, "~r~Kuca ~w~Zakljucana", 4000, 4);
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(BizzInfo[i][bLocked] == 1)
{
GameTextForPlayer(playerid, "~w~Firma ~r~zatvorena", 4000, 4);
return 1;
}
if(BizzInfo[i][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 4);
return 1;
}
if (PlayerToPoint(3.0, playerid,1199.323974,-918.954528,43.116638))
{
OnPlayerEnterFood(playerid, 5);
}
else if (PlayerToPoint(3.0, playerid,811.321411,-1616.181030,13.546875))
{
OnPlayerEnterFood(playerid, 6);
}
else if (PlayerToPoint(3.0, playerid,927.906250,-1352.942626,13.343750))
{
OnPlayerEnterFood(playerid, 7);
}
SafeJBC_GivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
BizzInfo[i][bProducts]--;
OnPropUpdate();
}
SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
JBC_SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
PlayerInfo[playerid][pLocal] = i+99;
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s je platio $%d da bi usao u firmu %d", dood, BizzInfo[i][bEntranceCost], i);
printf("%s", string);
PayLog(string);
}
else
{
GameTextForPlayer(playerid, "~r~Nemate dovoljno novca", 5000, 1);
}
}
}
if (PlayerToPoint(3.0, playerid,2695.6235,-1704.6960,11.8438))
{
    GameTextForPlayer(playerid, "~w~Dobrodosli u 8ball Track", 5000, 1);
    SetPlayerInterior(playerid,7);
    PlayerInfo[playerid][pInt] = 7;
JBC_SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);
}
else if (PlayerToPoint(8.0, playerid,-2111.5686,-443.9720,38.7344))
{
    GameTextForPlayer(playerid, "~w~Dobrodosli na Dirt Track", 5000, 1);
    SetPlayerInterior(playerid,4);
    PlayerInfo[playerid][pInt] = 4;
JBC_SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);
}
else if (PlayerToPoint(8.0, playerid,-2080.3079,-406.0309,38.7344))
{
    GameTextForPlayer(playerid, "~w~Dobrodosli na Stunting Track", 5000, 1);
    SetPlayerInterior(playerid,14);
    PlayerInfo[playerid][pInt] = 14;
JBC_SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);
}
else if (PlayerToPoint(4, playerid,2073.2979,-1831.1228,13.5469))
{ // Pay & Spray
    if(GetPlayerState(playerid) == 2)
    {
        if(GetPlayerMoney(playerid) > SBizzInfo[5][sbEntranceCost] + 100)
        {
            if(SBizzInfo[5][sbProducts] > 0)
            {
            new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, 2062.1294,-1831.5498,13.5469);
        SetVehicleZAngle(tmpcar, 90);
        SafeJBC_GivePlayerMoney(playerid, - SBizzInfo[5][sbEntranceCost]);
        SBizzInfo[5][sbTill] += SBizzInfo[5][sbEntranceCost];
        SBizzInfo[5][sbProducts]--;
        SetTimerEx("AfterSpray1", 5000, false, "i", playerid);
}
else
{
    GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca da udjete u Pay & Spray.");
}
    }
}
else if (PlayerToPoint(4, playerid,1024.9756,-1030.7930,32.0257))
{ // Pay & Spray
    if(GetPlayerState(playerid) == 2)
    {
        if(GetPlayerMoney(playerid) > SBizzInfo[5][sbEntranceCost] + 100)
        {
            if(SBizzInfo[5][sbProducts] > 0)
            {
            new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, 1024.9763,-1021.8850,32.1016);
        SetVehicleZAngle(tmpcar, 0);
        SafeJBC_GivePlayerMoney(playerid, - SBizzInfo[5][sbEntranceCost]);
        SBizzInfo[5][sbTill] += SBizzInfo[5][sbEntranceCost];
        SBizzInfo[5][sbProducts]--;
        SetTimerEx("AfterSpray2", 5000, false, "i", playerid);
}
else
{
    GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca da udjete u Pay & Spray.");
}
    }
}
else if (PlayerToPoint(4, playerid,488.3819,-1733.0563,11.1752))
{ // Pay & Spray
    if(GetPlayerState(playerid) == 2)
    {
        if(GetPlayerMoney(playerid) > SBizzInfo[5][sbEntranceCost] + 100)
        {
            if(SBizzInfo[5][sbProducts] > 0)
            {
            new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, 487.4099,-1741.4585,11.1330);
        SetVehicleZAngle(tmpcar, 180);
        SafeJBC_GivePlayerMoney(playerid, - SBizzInfo[5][sbEntranceCost]);
        SBizzInfo[5][sbTill] += SBizzInfo[5][sbEntranceCost];
        SBizzInfo[5][sbProducts]--;
        SetTimerEx("AfterSpray3", 5000, false, "i", playerid);
}
else
{
    GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca da udjete u Pay & Spray.");
}
    }
}
else if (PlayerToPoint(4, playerid,719.8940,-464.8272,16.3359))
{ // Pay & Spray
    if(GetPlayerState(playerid) == 2)
    {
        if(GetPlayerMoney(playerid) > SBizzInfo[5][sbEntranceCost] + 100)
        {
            if(SBizzInfo[5][sbProducts] > 0)
            {
            new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, 720.3924,-456.0286,16.3359);
        SetVehicleZAngle(tmpcar, 0);
        SafeJBC_GivePlayerMoney(playerid, - SBizzInfo[5][sbEntranceCost]);
        SBizzInfo[5][sbTill] += SBizzInfo[5][sbEntranceCost];
        SBizzInfo[5][sbProducts]--;
        SetTimerEx("AfterSpray4", 5000, false, "i", playerid);
}
else
{
    GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca da udjete u Pay & Spray.");
}
    }
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Naslov: Odg: [Pomoc]Ulaz u kuce,biz itd
Poruka od: Crazyn3ss poslato April 14, 2013, 20:42:48 POSLE PODNE
http://wiki.sa-mp.com/wiki/OnPlayerKeyStateChange
Naslov: Odg: [Pomoc]Ulaz u kuce,biz itd
Poruka od: dakias poslato April 14, 2013, 20:48:13 POSLE PODNE
Probao sam vec ali kada sam probao da definisem nije htelo...
Naslov: Odg: [Pomoc]Ulaz u kuce,biz itd
Poruka od: dakias poslato April 14, 2013, 21:01:03 POSLE PODNE
C:\Users\Soko\Desktop\MOD\gamemodes\ZBRP.pwn(51375) : error 017: undefined symbol "newkeys"

Kako sada da definisem a da radi?
Naslov: Odg: [Pomoc]Ulaz u kuce,biz itd
Poruka od: Crazyn3ss poslato April 14, 2013, 21:11:44 POSLE PODNE
jesi stavio pod ovaj callback OnPlayerKeyStateChange
Naslov: Odg: [Pomoc]Ulaz u kuce,biz itd
Poruka od: dakias poslato April 14, 2013, 21:14:24 POSLE PODNE
Ne,kako to da stavim,mozes ti napisati?
Naslov: Odg: [Pomoc]Ulaz u kuce,biz itd
Poruka od: Crazyn3ss poslato April 14, 2013, 21:15:28 POSLE PODNE
evo ovako

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys == KEY_FIRE)
{
    if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
{
SetPlayerInterior(playerid,HouseInfo[i][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]);
JBC_SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
GameTextForPlayer(playerid, "~g~Dobrodosli kuci", 4000, 4);
PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
PlayerInfo[playerid][pLocal] = i;
HouseEntered[playerid] = i;
}
else
{
GameTextForPlayer(playerid, "~r~Kuca ~w~Zakljucana", 4000, 4);
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(BizzInfo[i][bLocked] == 1)
{
GameTextForPlayer(playerid, "~w~Firma ~r~zatvorena", 4000, 4);
return 1;
}
if(BizzInfo[i][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 4);
return 1;
}
if (PlayerToPoint(3.0, playerid,1199.323974,-918.954528,43.116638))
{
OnPlayerEnterFood(playerid, 5);
}
else if (PlayerToPoint(3.0, playerid,811.321411,-1616.181030,13.546875))
{
OnPlayerEnterFood(playerid, 6);
}
else if (PlayerToPoint(3.0, playerid,927.906250,-1352.942626,13.343750))
{
OnPlayerEnterFood(playerid, 7);
}
SafeJBC_GivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
BizzInfo[i][bProducts]--;
OnPropUpdate();
}
SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
JBC_SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
PlayerInfo[playerid][pLocal] = i+99;
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s je platio $%d da bi usao u firmu %d", dood, BizzInfo[i][bEntranceCost], i);
printf("%s", string);
PayLog(string);
}
else
{
GameTextForPlayer(playerid, "~r~Nemate dovoljno novca", 5000, 1);
}
}
}
if (PlayerToPoint(3.0, playerid,2695.6235,-1704.6960,11.8438))
{
    GameTextForPlayer(playerid, "~w~Dobrodosli u 8ball Track", 5000, 1);
    SetPlayerInterior(playerid,7);
    PlayerInfo[playerid][pInt] = 7;
JBC_SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);
}
else if (PlayerToPoint(8.0, playerid,-2111.5686,-443.9720,38.7344))
{
    GameTextForPlayer(playerid, "~w~Dobrodosli na Dirt Track", 5000, 1);
    SetPlayerInterior(playerid,4);
    PlayerInfo[playerid][pInt] = 4;
JBC_SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);
}
else if (PlayerToPoint(8.0, playerid,-2080.3079,-406.0309,38.7344))
{
    GameTextForPlayer(playerid, "~w~Dobrodosli na Stunting Track", 5000, 1);
    SetPlayerInterior(playerid,14);
    PlayerInfo[playerid][pInt] = 14;
JBC_SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);
}
else if (PlayerToPoint(4, playerid,2073.2979,-1831.1228,13.5469))
{ // Pay & Spray
    if(GetPlayerState(playerid) == 2)
    {
        if(GetPlayerMoney(playerid) > SBizzInfo[5][sbEntranceCost] + 100)
        {
            if(SBizzInfo[5][sbProducts] > 0)
            {
            new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, 2062.1294,-1831.5498,13.5469);
        SetVehicleZAngle(tmpcar, 90);
        SafeJBC_GivePlayerMoney(playerid, - SBizzInfo[5][sbEntranceCost]);
        SBizzInfo[5][sbTill] += SBizzInfo[5][sbEntranceCost];
        SBizzInfo[5][sbProducts]--;
        SetTimerEx("AfterSpray1", 5000, false, "i", playerid);
}
else
{
    GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca da udjete u Pay & Spray.");
}
    }
}
else if (PlayerToPoint(4, playerid,1024.9756,-1030.7930,32.0257))
{ // Pay & Spray
    if(GetPlayerState(playerid) == 2)
    {
        if(GetPlayerMoney(playerid) > SBizzInfo[5][sbEntranceCost] + 100)
        {
            if(SBizzInfo[5][sbProducts] > 0)
            {
            new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, 1024.9763,-1021.8850,32.1016);
        SetVehicleZAngle(tmpcar, 0);
        SafeJBC_GivePlayerMoney(playerid, - SBizzInfo[5][sbEntranceCost]);
        SBizzInfo[5][sbTill] += SBizzInfo[5][sbEntranceCost];
        SBizzInfo[5][sbProducts]--;
        SetTimerEx("AfterSpray2", 5000, false, "i", playerid);
}
else
{
    GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca da udjete u Pay & Spray.");
}
    }
}
else if (PlayerToPoint(4, playerid,488.3819,-1733.0563,11.1752))
{ // Pay & Spray
    if(GetPlayerState(playerid) == 2)
    {
        if(GetPlayerMoney(playerid) > SBizzInfo[5][sbEntranceCost] + 100)
        {
            if(SBizzInfo[5][sbProducts] > 0)
            {
            new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, 487.4099,-1741.4585,11.1330);
        SetVehicleZAngle(tmpcar, 180);
        SafeJBC_GivePlayerMoney(playerid, - SBizzInfo[5][sbEntranceCost]);
        SBizzInfo[5][sbTill] += SBizzInfo[5][sbEntranceCost];
        SBizzInfo[5][sbProducts]--;
        SetTimerEx("AfterSpray3", 5000, false, "i", playerid);
}
else
{
    GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca da udjete u Pay & Spray.");
}
    }
}
else if (PlayerToPoint(4, playerid,719.8940,-464.8272,16.3359))
{ // Pay & Spray
    if(GetPlayerState(playerid) == 2)
    {
        if(GetPlayerMoney(playerid) > SBizzInfo[5][sbEntranceCost] + 100)
        {
            if(SBizzInfo[5][sbProducts] > 0)
            {
            new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, 720.3924,-456.0286,16.3359);
        SetVehicleZAngle(tmpcar, 0);
        SafeJBC_GivePlayerMoney(playerid, - SBizzInfo[5][sbEntranceCost]);
        SBizzInfo[5][sbTill] += SBizzInfo[5][sbEntranceCost];
        SBizzInfo[5][sbProducts]--;
        SetTimerEx("AfterSpray4", 5000, false, "i", playerid);
}
else
{
    GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca da udjete u Pay & Spray.");
}
    }
}
}
return 1;
}
return 1;
}
Naslov: Odg: [Pomoc]Ulaz u kuce,biz itd
Poruka od: dakias poslato April 14, 2013, 22:38:34 POSLE PODNE
I dalje stoji ovakav error
C:\Users\Soko\Desktop\MOD\gamemodes\ZBRP.pwn(51375) : error 017: undefined symbol "newkeys"
Naslov: Odg: [Pomoc]Ulaz u kuce,biz itd
Poruka od: dakias poslato April 15, 2013, 18:53:25 POSLE PODNE
Ispao novi eror nakon toga
C:\Users\Soko\Desktop\dakias\SAMP I CS\SAMP GAMEMODES\MOD\gamemodes\ZBRP.pwn(51387) : error 017: undefined symbol "newkeys"
Naslov: Odg: [Pomoc]Ulaz u kuce,biz itd
Poruka od: Crazyn3ss poslato April 15, 2013, 22:39:44 POSLE PODNE
Citat: dakias poslato April 15, 2013, 18:53:25 POSLE PODNE
Ispao novi eror nakon toga
C:\Users\Soko\Desktop\dakias\SAMP I CS\SAMP GAMEMODES\MOD\gamemodes\ZBRP.pwn(51387) : error 017: undefined symbol "newkeys"


sve to obrisi sto si radio i stavi ovako..
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys == KEY_FIRE)
{
    if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
{
SetPlayerInterior(playerid,HouseInfo[i][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]);
JBC_SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
GameTextForPlayer(playerid, "~g~Dobrodosli kuci", 4000, 4);
PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
PlayerInfo[playerid][pLocal] = i;
HouseEntered[playerid] = i;
}
else
{
GameTextForPlayer(playerid, "~r~Kuca ~w~Zakljucana", 4000, 4);
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(BizzInfo[i][bLocked] == 1)
{
GameTextForPlayer(playerid, "~w~Firma ~r~zatvorena", 4000, 4);
return 1;
}
if(BizzInfo[i][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 4);
return 1;
}
if (PlayerToPoint(3.0, playerid,1199.323974,-918.954528,43.116638))
{
OnPlayerEnterFood(playerid, 5);
}
else if (PlayerToPoint(3.0, playerid,811.321411,-1616.181030,13.546875))
{
OnPlayerEnterFood(playerid, 6);
}
else if (PlayerToPoint(3.0, playerid,927.906250,-1352.942626,13.343750))
{
OnPlayerEnterFood(playerid, 7);
}
SafeJBC_GivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
BizzInfo[i][bProducts]--;
OnPropUpdate();
}
SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
JBC_SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
PlayerInfo[playerid][pLocal] = i+99;
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s je platio $%d da bi usao u firmu %d", dood, BizzInfo[i][bEntranceCost], i);
printf("%s", string);
PayLog(string);
}
else
{
GameTextForPlayer(playerid, "~r~Nemate dovoljno novca", 5000, 1);
}
}
}
if (PlayerToPoint(3.0, playerid,2695.6235,-1704.6960,11.8438))
{
    GameTextForPlayer(playerid, "~w~Dobrodosli u 8ball Track", 5000, 1);
    SetPlayerInterior(playerid,7);
    PlayerInfo[playerid][pInt] = 7;
JBC_SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);
}
else if (PlayerToPoint(8.0, playerid,-2111.5686,-443.9720,38.7344))
{
    GameTextForPlayer(playerid, "~w~Dobrodosli na Dirt Track", 5000, 1);
    SetPlayerInterior(playerid,4);
    PlayerInfo[playerid][pInt] = 4;
JBC_SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);
}
else if (PlayerToPoint(8.0, playerid,-2080.3079,-406.0309,38.7344))
{
    GameTextForPlayer(playerid, "~w~Dobrodosli na Stunting Track", 5000, 1);
    SetPlayerInterior(playerid,14);
    PlayerInfo[playerid][pInt] = 14;
JBC_SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);
}
else if (PlayerToPoint(4, playerid,2073.2979,-1831.1228,13.5469))
{ // Pay & Spray
    if(GetPlayerState(playerid) == 2)
    {
        if(GetPlayerMoney(playerid) > SBizzInfo[5][sbEntranceCost] + 100)
        {
            if(SBizzInfo[5][sbProducts] > 0)
            {
            new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, 2062.1294,-1831.5498,13.5469);
        SetVehicleZAngle(tmpcar, 90);
        SafeJBC_GivePlayerMoney(playerid, - SBizzInfo[5][sbEntranceCost]);
        SBizzInfo[5][sbTill] += SBizzInfo[5][sbEntranceCost];
        SBizzInfo[5][sbProducts]--;
        SetTimerEx("AfterSpray1", 5000, false, "i", playerid);
}
else
{
    GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca da udjete u Pay & Spray.");
}
    }
}
else if (PlayerToPoint(4, playerid,1024.9756,-1030.7930,32.0257))
{ // Pay & Spray
    if(GetPlayerState(playerid) == 2)
    {
        if(GetPlayerMoney(playerid) > SBizzInfo[5][sbEntranceCost] + 100)
        {
            if(SBizzInfo[5][sbProducts] > 0)
            {
            new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, 1024.9763,-1021.8850,32.1016);
        SetVehicleZAngle(tmpcar, 0);
        SafeJBC_GivePlayerMoney(playerid, - SBizzInfo[5][sbEntranceCost]);
        SBizzInfo[5][sbTill] += SBizzInfo[5][sbEntranceCost];
        SBizzInfo[5][sbProducts]--;
        SetTimerEx("AfterSpray2", 5000, false, "i", playerid);
}
else
{
    GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca da udjete u Pay & Spray.");
}
    }
}
else if (PlayerToPoint(4, playerid,488.3819,-1733.0563,11.1752))
{ // Pay & Spray
    if(GetPlayerState(playerid) == 2)
    {
        if(GetPlayerMoney(playerid) > SBizzInfo[5][sbEntranceCost] + 100)
        {
            if(SBizzInfo[5][sbProducts] > 0)
            {
            new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, 487.4099,-1741.4585,11.1330);
        SetVehicleZAngle(tmpcar, 180);
        SafeJBC_GivePlayerMoney(playerid, - SBizzInfo[5][sbEntranceCost]);
        SBizzInfo[5][sbTill] += SBizzInfo[5][sbEntranceCost];
        SBizzInfo[5][sbProducts]--;
        SetTimerEx("AfterSpray3", 5000, false, "i", playerid);
}
else
{
    GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca da udjete u Pay & Spray.");
}
    }
}
else if (PlayerToPoint(4, playerid,719.8940,-464.8272,16.3359))
{ // Pay & Spray
    if(GetPlayerState(playerid) == 2)
    {
        if(GetPlayerMoney(playerid) > SBizzInfo[5][sbEntranceCost] + 100)
        {
            if(SBizzInfo[5][sbProducts] > 0)
            {
            new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, 720.3924,-456.0286,16.3359);
        SetVehicleZAngle(tmpcar, 0);
        SafeJBC_GivePlayerMoney(playerid, - SBizzInfo[5][sbEntranceCost]);
        SBizzInfo[5][sbTill] += SBizzInfo[5][sbEntranceCost];
        SBizzInfo[5][sbProducts]--;
        SetTimerEx("AfterSpray4", 5000, false, "i", playerid);
}
else
{
    GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca da udjete u Pay & Spray.");
}
    }
}
}
return 1;
}
return 1;
}
Naslov: Odg: [Pomoc]Ulaz u kuce,biz itd
Poruka od: Kunnaâ„¢ poslato April 15, 2013, 22:52:33 POSLE PODNE
nemojte covjeku kopirati iz modova  i salti mu  primjer mu pojasnite ... mozda vec ima uradjen primjer ulaska na enter i f i to vase i pravi mu error

vidi pogledaj  dali imas pod
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
if (newkeys == KEY_FIRE)

Ako imas malo pogledaj dole dali imas neki primjer
kao
if(IsPlayerInRangeOfPoint(playerid, 3.0, 246.3612,88.0019,1003.7260))
{
    SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1370.8228, 1810.6901, 10.820);
PlayerInfo[playerid][pInt] = 0;
} ovako slicno ovome


Ili ako ti moze ovo pomoci : http://wiki.sa-mp.com/wiki/OnPlayerKeyStateChange
Naslov: Odg: [Pomoc]Ulaz u kuce,biz itd
Poruka od: Crazyn3ss poslato April 15, 2013, 23:12:17 POSLE PODNE
niko mu nije kopiro iz svojeg moda, nego je dao komandu enter