Jump to content
  • 0

Problema cod generat


FOCA

Question

Salutare , am folosit si eu programelul acela numit scripting machine , pentru a crea o poarta , ma rog , a fost mai mult de munca...am folosit un fs pt a creea poarta in joc....ca sa pot afla coordonatele , apoi am bagat coordonatele in scripting machine....am facut toate setarile ok...si mi-a rezultat codul asta:

#include <a_samp>
#include <zcmd>

new Gate, bool:GateClosed = true;

public OnFilterScriptInit()
{
	Gate = CreateObject(976, 1463.594726, -1047.723510, 22.946386, -0.299999, -0.399999, -44.900009, 100.0);
	return 1;
}

CMD:/dp(playerid, params[])
{
	if(GateClosed){
		if(IsPlayerInRangeOfPoint(playerid, 15.0, 1463.594726, -1047.723510, 22.946386)){
			GateClosed = false;
			MoveObject(Gate, 1467.425415, -1051.542114, 22.984130, 3.0, 0.600000, 0.100000, -85.600036);
			return SendClientMessage(playerid, 0x0000AEFF, "Poarta a fost deschisa!");
		}
	}
	else{
		if(IsPlayerInRangeOfPoint(playerid, 15.0, 1463.594726, -1047.723510, 22.946386)){
			GateClosed = true;
			MoveObject(Gate, 1463.594726, -1047.723510, 22.946386, 3.0, -0.299999, -0.399999, -44.900009);
			return SendClientMessage(playerid, 0x00BA00FF, "Poarta a fost inchisa!");
		}
	}
}

dar cand incerc sa creez fs-ul folosindu-ma de codul rezultat , imi da eroare...imi poate da cnv codul bun va rog?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
Citat

C:\Users\TaNNu\Downloads\a.pwn(12) : error 001: expected token: "(", but found "/"
C:\Users\TaNNu\Downloads\a.pwn(12) : error 001: expected token: ";", but found "-identifier-"
C:\Users\TaNNu\Downloads\a.pwn(12) : error 001: expected token: ";", but found "/"
C:\Users\TaNNu\Downloads\a.pwn(12) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
 

astea-s erorile aparute incercand sa compilez codul de mai sus

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.