Jump to content
  • 0

problema vama


Andr3y

Question

Incerc de 1 saptamana sa fac o vama ..nu am mai facut pana acum si nu imi iese deloc deci :

la inceput am pus

forward closevama1();

apoi

new vama1;

la ongamemodeinit am pus

vama1 = CreateObject(2990, 625.99169921875, -1184.3204345703, 21.995820999146, 0, 0, 28);

iar ca sa o fac sa se deschida am pus la public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) asa :

if (newkeys==KEY_FIRE)

{

  if(IsPlayerConnected(playerid))

  {

    if(PlayerToPoint(10, playerid,630.3695,-1190.6338,18.3156))

    {

      MoveObject(vama1, 0, 358, 28, 2500);

      SendClientMessage(playerid, COLOR_LIGHTBLUE, "Proba.");

      SetTimer("closevama1",3500, false);

      return 1;

    }

  }

}

}

iar la sfarsitul gm`ului am pus

public closevama1()

{

    SetObjectRot(vama1, 0,0,28);

      return 1;

}

si imi da eroarea :

C:\Ravens_Roleplay_0.3c\RRG\RRG\gamemodes\larp.pwn(76613) : error 017: undefined symbol "PlayerToPoint"

C:\Ravens_Roleplay_0.3c\RRG\RRG\gamemodes\larp.pwn(84057) : warning 217: loose indentation

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

ma poate ajuta cnv plz?

Snapshot_2012_03_07_003934.jpg
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

adauga la sfarsitul gm-ului

stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}

sper sa mearga[am gasit asta pe .com]

warning 217: loose indentation

e doar o avetizare pe care poti sa o ignori

inseamna ca ai pierdut "asezarea" scriptului

Link to comment
Share on other sites

adauga la sfarsitul gm-ului

stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}

sper sa mearga[am gasit asta pe .com]

e doar o avetizare pe care poti sa o ignori

inseamna ca ai pierdut "asezarea" scriptului

mda..si poate sa dea ca sa scape de ea: #pragma tabsize 0

Fara reclama in semnatura!

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.