Jump to content
  • 0

pomoc Jak na Rampy


Lukas115

Dotaz

7 odpovědí na tuto otázku

Recommended Posts

  • 0
  • Globální moderátor

new rampa;

 

na zacatek modu

 

prikaz /rampa

 

rampa = CreateObject(....);

 

prikaz /delete

 

DestroyObject(rampa);

Link to comment
Share on other sites

  • 0
#define FILTERSCRIPT

#include 

new Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz;
new Rampa1;

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/ramp", cmdtext, true, 4) == 0)
{
	GetPlayerPos(playerid, x, y, z);
	Rampa1 = CreateObject(1020, x, y, z, rx, ry, rz);
	return 1;
}

if (strcmp("/dramp", cmdtext, true, 5) == 0)
{
	DestroyObject(Rampa1);
	return 1;
}
return 0;
}

Link to comment
Share on other sites

  • 0

potřebuju poradit nejde mi tendle fs píše to todle: 

 

C:\Users\danecek\Desktop\pawno\ramp.pwn(44) : error 030: compound statement not closed at the end of file (started at line 19)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
 
 
1 Error.
Link to comment
Share on other sites

  • 0

 

#define FILTERSCRIPT #include new Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz; new Rampa1; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/ramp", cmdtext, true, 4) == 0) { GetPlayerPos(playerid, x, y, z); Rampa1 = CreateObject(1020, x, y, z, rx, ry, rz); return 1; } if (strcmp("/dramp", cmdtext, true, 5) == 0) { DestroyObject(Rampa1); return 1; } return 0; }

Ano strašná blbost . . . Hráč udělá rampu a bugneš ho tam -_- 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...