Pomoc oko pomicne kapije

Započeo matemandbrnaze742, Februar 08, 2010, 18:28:35 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

matemandbrnaze742

Sve ljepo napravim uden ingame stavim si lidera PDa i kucam /f1o i samo pise Otvaraju se vrata FBI a nece da se otvore

//---------------------------------÷[FBI]---------------------------------------------
    if(strcmp(cmd,"/f1c",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
MoveObject(FBI, 1141.433472, -1207.282593, 20.815294,3.0 );
SendClientMessage(playerid, COLOR_GREEN, "Zatvaraju se vrata FBI.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Policajac.");
}
return 1;
}
if(strcmp(cmd,"/f1o",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
MoveObject(FBI, 1141.433472, -1217.833130, 20.815294,3.0 );
            SendClientMessage(playerid, COLOR_GREEN, "Otvaraju se vrata FBI.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Policajac .");
}
return 1;
}

//----------------------------------------------------------------------------------------------------KRAJ-----------------------------


Kordinate otvorene kapije:1141.433472, -1217.833130, 20.815294
Kordinate zatvorene kapije:1141.433472, -1207.282593, 20.815294

Moze neko pomoc

jesi stavio i pod new

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....


Tamo gdje su ti drugi NEW-evi, stavis ovo

new FBI;

U public Ongamemodeinit

stavis

FBI = CreateObject(IDOBJETCA,1141.433472, -1207.282593, 20.815294, 0, 0, 0)

u public OnPlayerCommandText

//---------------------------------÷[FBI]---------------------------------------------
    if(strcmp(cmd,"/f1c",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
MoveObject(FBI, 1141.433472, -1207.282593, 20.815294,3.0 );
SendClientMessage(playerid, COLOR_GREEN, "Zatvaraju se vrata FBI.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Policajac.");
}
return 1;
}
if(strcmp(cmd,"/f1o",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
MoveObject(FBI, 1141.433472, -1217.833130, 20.815294,3.0 );
            SendClientMessage(playerid, COLOR_GREEN, "Otvaraju se vrata FBI.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Policajac .");
}
return 1;
}

//----------------------------------------------------------------------------------------------------KRAJ-----------------------------


Ako nije jos uvijek dobro, napisi ovdje.
Aequam memento rebus in arduis servare mentem.


Ovo sto je GGC rekao trebalo bi biti u redu. On vjerovatno nije stavio objek pod ongamemodeinit, tj mozda je samo napravio new  ali nije ga kasnije definirao.