Jump to content
  • 0

Ajutor


Deuce_Johnson

Question

Salutare la toti cei ce citesc acest topic.

Dupa o pauza foarte mare, m-am reapucat de sa:mp. Am inceput cu un gamemode, dar am ceva errori in el :

error 004: function "PlayerToPoint" is not implemented

Sunt mai multe errori de genu. Stiu ca este o { neinchisa sau in plus. Este un mod mai usor de a o gasi ??

vrei sa vb cu mine? add [email protected] pe yahoo mesenger ;)

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

Nu va mai bagati daca nu stiti.

Deuce_Johnson,

Adauga asta in script:

forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    if(IsPlayerConnected(playerid))
    {
        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;
}

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

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.