Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

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

8 answers to this question

Recommended Posts

Posted

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

Posted

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!

Posted

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

sa stii ca nu e indicat sa folosesti #pragma tabsize 0 :|

trebuie sa inveti sa scriptezi ordonat

Posted

sa stii ca nu e indicat sa folosesti #pragma tabsize 0 :|

trebuie sa inveti sa scriptezi ordonat

:))pai ce tot sa mai faci acolo ordonatat...ordonezi cat ordonezi si gata ceea ce nu iti iese ii dai #pragam tabsize 0:P

deci cum fac?

cum a zis mihaibr

Fara reclama in semnatura!

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.