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

Inca putin ajutor... ?


Question

Posted

Primesc aceste 2 errori!

gamemode.pwn(4017) : error 017: undefined symbol "playerid"
gamemode.pwn(4019) : error 017: undefined symbol "playerid"

Codul este acesta :

public PNSPlaja()
{
    new x = GetPlayerVehicleID(playerid); // 4017
    SetVehiclePos(x, 488.3370,-1731.8210,10.9478);
    PutPlayerInVehicle(playerid, x, 0); // 4019
}

Pe google am gasit ceva sa adaug sub OnPlayerConnect, si asta am facut, dar degeaba...

Niste ajutor ? :) Multumesc.

2 answers to this question

Recommended Posts

  • 0
Posted
public PNSPlaja(playerid)

Daca functia necesita playerid doar ca va fi nevoie sa o chemi cu playerid de unde vrei sa o chemi

Scriptu nu are de unde sa stie la ce player te referi daca nu ii spui tu, daca era un limbaj de programare bazat pe obiecte si referinta clar era mai usor de facut sa stie ce player

  • Thanks 1
  • 0
Posted
Acum 35 minute, Banditul a spus:

public PNSPlaja(playerid)

Daca functia necesita playerid doar ca va fi nevoie sa o chemi cu playerid de unde vrei sa o chemi

Scriptu nu are de unde sa stie la ce player te referi daca nu ii spui tu, daca era un limbaj de programare bazat pe obiecte si referinta clar era mai usor de facut sa stie ce player

Multumesc, abia acuma mi-am dat seama :))))))))))))

Te pwp Bandit ❤️

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.