Jump to content

Vreau sa invat sa fac un /gps cu tot cu adaugarea checkpointurilor


Extremys

Recommended Posts

Descriere tutorial: Vreau sa imi aratati cum creez un sistem /gps, cu tot cu checkpoint. De exeplu daca vreau sa jaung la banca LS sa imi apara checkpoint pe mapa

Edited by Extremys
Am uitat un cuvant

giphy.gif

Link to comment
Share on other sites

Acum 29 minute, cOBRa a spus:

http://pastebin.com/x8dL8A43

+1 daca ti-am fost de ajutor.

//Vezi ca ai de respectat un model.

Incerc sa vad ce iese.
Am vrut sa respect dar uitatasem modelul. Imi cer scuze

Mie nu imi merge nici o comanda CMD:comanda
Daca se poate if(strcmp....

 

Edited by Extremys
Am uitat sa precizez ceva

giphy.gif

Link to comment
Share on other sites

28 minutes ago, Extremys said:

Imi da niste erori ce pana acum nu le dadea

Acesta este paragraful cu numarul 64 : /spoiler #define COLOR_RED 0xFF0000C8

errroaosa.bmp

Arată.mi liniile de la 62-64

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

Acum 6 minute, cOBRa a spus:

#include <zcmd>//pentru a putea folosi CMD:

Arata-mi te rog liniile 62-64.

#define COLOR_GREEN 0x4DFF00C8
#define COLOR_GREEN2 0x006c00ff
#define COLOR_RED 0xFF0000C8 Acestea sunt liniile

Acum 30 minute, DaEdRiC-FoX a spus:

Arată.mi liniile de la 62-64

#define COLOR_GREEN 0x4DFF00C8
#define COLOR_GREEN2 0x006c00ff
#define COLOR_RED 0xFF0000C8

Acestea sunt liniile

giphy.gif

Link to comment
Share on other sites

5 minutes ago, Extremys said:

De la 32 pana la 146 sunt numai #define

sssssssssssss.bmp

aaaaaaaa.bmp

nu are ce cauta comanda CMD: la publicul OnPlayerCommandText, CMD este un procesor de comenzi si anume zcmd, trebuie sa o pui la sfarstul gm-ului daca ai la inceput include-ul zcmd, daca nu7 transformi comanda in strcmp 

if(strcmp(cmd, "/gps", true) == 0)
{
	ShowPlayerDialog//continui tui
	return 1;
}

 

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

Acum 4 minute, cOBRa a spus:

Ai definit funcidix? (arata-mi unde ai folosit acesta functie .)

Am cautat cu ctrl+f Funcidx dar nu gaseste nimic si nici #define funcidx

Acum 12 minute, DaEdRiC-FoX a spus:

nu are ce cauta comanda CMD: la publicul OnPlayerCommandText, CMD este un procesor de comenzi si anume zcmd, trebuie sa o pui la sfarstul gm-ului daca ai la inceput include-ul zcmd, daca nu7 transformi comanda in strcmp 

if(strcmp(cmd, "/gps", true) == 0)
{
	ShowPlayerDialog//continui tui
	return 1;
}

 

Gata am rezolvat multumesc mult acum trebe sa salvez coordonatele si sa le adaug nu?

giphy.gif

Link to comment
Share on other sites

12 minutes ago, Extremys said:

Am cautat cu ctrl+f Funcidx dar nu gaseste nimic si nici #define funcidx

Gata am rezolvat multumesc mult acum trebe sa salvez coordonatele si sa le adaug nu?

da

 

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

Acum 17 minute, DaEdRiC-FoX a spus:

da

 

Am o problema imi da o eroare acum C:\Documents and Settings\Claudia\Desktop\RuGmy BY Extremyssss\RuGmy BY Extremyssss\RuGmy BY Extremys\gamemodes\RuGmy.pwn(19208) : error 001: expected token: ";", but found "-identifier-"

Uite linia 19208:             SendClientMessage(playerid, -1, "GPS:Ti-am pus un checkpoint pe harta.");

giphy.gif

Link to comment
Share on other sites

Just now, Extremys said:

Am o problema imi da o eroare acum C:\Documents and Settings\Claudia\Desktop\RuGmy BY Extremyssss\RuGmy BY Extremyssss\RuGmy BY Extremys\gamemodes\RuGmy.pwn(19208) : error 001: expected token: ";", but found "-identifier-"

Uite linia 19208:             SendClientMessage(playerid, -1, "GPS:Ti-am pus un checkpoint pe harta.");

dami primele doua linii de deasupra

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

Acum 7 minute, DaEdRiC-FoX a spus:

dami primele doua linii de deasupra

 Pass[playerid] = 1;
                SetPlayerCheckpoint(playerid, 0.0,0.0,0.0,15.0)//Pui tu coordonatele care le doresti. /save <nume> in game.
TRebuai sa nu mai definesc PAss daca am definit CP[playerid] = 0;

giphy.gif

Link to comment
Share on other sites

2 minutes ago, Extremys said:

 Pass[playerid] = 1;
                SetPlayerCheckpoint(playerid, 0.0,0.0,0.0,15.0)//Pui tu coordonatele care le doresti. /save <nume> in game.
TRebuai sa nu mai definesc PAss daca am definit CP[playerid] = 0;

la SetPlayerCheckpoint(playerid, 0.0,0.0,0.0,15.0) lipseste ";"

pui asa:

SetPlayerCheckpoint(playerid, 0.0,0.0,0.0,15.0);

 

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

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.