Jump to content
  • 0

am o mica problema cu portile


Question

Posted

Am cautat la tutoriale de mi-a venit rau aici pe sv si nu am gasit nici un Tutorial Cum sa faci o poarta care sa se deschida de la o comanda si sa se inchida automat sau sa nu se mai inchida si eventual sa i trimita playerului un mesaj cum ca a deschis poarta X

8 answers to this question

Recommended Posts

Posted

Uite:

La NEW's

 new GATE // 1/2/3/4/5/6/7/catvreitu ; 
La OnGamemodeInit:
Gate = CreateObject (coordonatele);
Dupaia la OnPlayerCommandtext:
if(strcmp(cmdtext, "/comanda pe care o vrei ca sa se deschida poarta" true) ==0 {
MoveObject(gate, COORDONATELE PORTII DESCHISE);
SendClientMessage(playerid, CULOARE, "TEXT";
return 1;
}

Cu placere ! :)

Romania Zone Accelerate

SAU

Romania True Roleplay

Posted

C:\Users\Radu\Desktop\BaseNorton V2\gamemodes\Gamemode.pwn(525) : error 010: invalid function or declaration

C:\Users\Radu\Desktop\BaseNorton V2\gamemodes\Gamemode.pwn(137) : warning 204: symbol is assigned a value that is never used: "gates"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

 

Linia 525:if(strcmp(cmdtext, "/opengate" true) ==0

Linia 137:gates = CreateObject(969, 1811.5999755859, -1859.3000488281, 12.39999961853, 0, 0, 90);

Posted

C:\Users\Radu\Desktop\BaseNorton V2\gamemodes\Gamemode.pwn(525) : error 010: invalid function or declaration

C:\Users\Radu\Desktop\BaseNorton V2\gamemodes\Gamemode.pwn(137) : warning 204: symbol is assigned a value that is never used: "gates"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

 

Linia 525:if(strcmp(cmdtext, "/opengate" true) ==0

Linia 137:gates = CreateObject(969, 1811.5999755859, -1859.3000488281, 12.39999961853, 0, 0, 90);

Da stiu, am gresit.

trebuia :

if(strcmp(cmdtext, "/comanda", true) ==0 {
MoveObject(gate, X, Y, Z, TIMP);
Sendclientmessage(playerid, color_Color, "Scuzati-ma pentru greseala, ti-am deschis poarta");
return 1;
}

Acum nu ar m-ai trebui sa iti da nici o eroare, ti-am adaugat Y!M, o sa te contactez ;)

Romania Zone Accelerate

SAU

Romania True Roleplay

Posted

C:\Users\Radu\Desktop\BaseNorton V2\gamemodes\Gamemode.pwn(345) : error 017: undefined symbol "cmd"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

LINIA;345:if(strcmp(cmd,"/opengate", true) == 0) {  va roog ajutatima

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.