[POMOC]House help - Pogledajte Molim vas

Započeo Kazzy10, Oktobar 16, 2010, 23:45:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Evo ljudi imam neki problem neznam kako je nastao znaci
kada kupim kucu i zelim je otkljucati kucam /open
i kuca je otkljucana i ja kucam /enter i govori mi da je zakljucana
hvala

Kako mozemo da znamo sta si tu zahebo....

Daj komandu /open
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"

if(strcmp(cmd, "/open", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (IsPlayerInRangeOfPoint(playerid, 3,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]) || IsPlayerInRangeOfPoint(playerid, 3,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
{
if(PlayerInfo[playerid][pPhousekey] == i)
{
if(HouseInfo[i][hLock] == 1)
{
HouseInfo[i][hLock] = 1;
GameTextForPlayer(playerid, "~w~Vrata ~g~Odkljucana", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
if(HouseInfo[i][hLock] == 0)
{
HouseInfo[i][hLock] = 0;
GameTextForPlayer(playerid, "~w~Vrata ~r~Zakljucana", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
}
else
{
GameTextForPlayer(playerid, "~r~Nemas kljuc", 5000, 6);
return 1;
}
}
}

Mesto ovog                                                                        HouseInfo[i][hLock] =1;
GameTextForPlayer(playerid, "~w~Vrata ~g~Odkljucana", 5000, 6);

Mesto toga 1 stavi 0.. Ovako da bude   HouseInfo[i][hLock] = 0;


Ne vidim bas dobro taj tvoj kod mala su mi slova nesto.. Pa evo ti ovako cela komanda

if(strcmp(cmd, "/open", 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]) || PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
{
if(PlayerInfo[playerid][pPhousekey] == i)
{
if(HouseInfo[i][hLock] == 1)
{
HouseInfo[i][hLock] = 0;
GameTextForPlayer(playerid, "~w~Vrata ~g~otkljucana", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
if(HouseInfo[i][hLock] == 0)
{
HouseInfo[i][hLock] = 1;
GameTextForPlayer(playerid, "~w~Vrata ~r~zakljucana", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
}
else
{
GameTextForPlayer(playerid, "~r~Nemate kljuc", 5000, 6);
return 1;
}
}
}
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"