ITs For someone will help me. Dont go and please dont SUprim.
#1

What is my error ?
Reply
#2

what is the problem?
Reply
#3

Hard to tell what is your problem when we dont even see it
Reply
#4

I will show you
Reply
#5

I want to make my gate Open and close. What is not corect in my script ?

gate = CreateObject(971, 1003.3539428711, -643.64379882813, 124.03198242188, 0, 0, 27.789794921875);


if(strcmp(cmdtext, "/Deregio", true) == 0)
{
MoveObject(gate,0,1001.8137,-639.7086,120.9831,199.0235,0,0,0,0,0,0); //
SendClientMessage(playerid, COLOR_RED, "Bienvenue chez toi Alex");
return 1;
}
if(strcmp(cmdtext, "/dclose", true) == 0)
{
MoveObject(gate,0,1004.6483,-647.7470,121.2289,21.3851,0,0,0,0,0,0); //
SendClientMessage(playerid, COLOR_RED, "Aurevoire");
return 1;
}



public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(specplayer, 10, cmdtext);
dcmd(specoff, 7, cmdtext);
new gate;
new string[256];
new playermoney;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new cmd[256];
new tmp[256];
new giveplayerid, moneys, idx;
new idcar = GetPlayerVehicleID(playerid);
new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
cmd = strtok(cmdtext, idx);
Reply
#6

2 things
why "new gate;" under OnPlayerCommandText
and put the code into [pawn] blocks next time
i'll try to fix it anyway
Reply
#7

change the object movement speed
and it is
pawn Код:
MoveObject(objectid, newx, newy, newz, speed);
wasn't your compiler giving warnings or errors?
Reply
#8

The Two
Reply
#9

MoveObject(deregiogate, 0,1004.6483,-647.7470,121.2289,21.3851,0,0,0,0,0,0,);


Can you change that please ?
Reply
#10

Код:
AddPlayerClass(0,1004.6483,-647.7470,121.2289,21.3851,0,0,0,0,0,0); //
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)