i have a problem with my pawno
#1

Hey guys,
I tried to make a moveable gate with these lines:

if (strcmp(cmd, "/opengate, true == 0) {
MoveObject(lvaenterg1, 96.699996948242, 1920.5999755859, 13.60000038147, 1);
//To move the gate
SendClientMessage(playerid, COLOR_BLUE, "The Entergate is opened.");
return 1;
}


if (strcmp(cmd, "/closegate, true == 0) {
MoveObject(lvaenterg1, 996.699996948242, 1920.5999755859, 17.700000762939, 1);
//To move the gate
SendClientMessage(playerid, COLOR_BLUE, "The Entergate is closed.");
return 1;
}

But after i added those lines and i tried to compile it, my pawno just crashes and it doesn't compile.
(I also get an .amx file with 0 bytes).

Can someone please help me out.
jw
Reply
#2

Did you add it in OnPlayerCommandText(playerid, cmdtext[])?
Did you define "cmd" ?
Do you have variable lvaenterg defined to an object using CreateObject?
Reply
#3

-yeah i did
-i don't know (but if i search #define and keep pressing the search button i don't see #define cmd)
-yeah i have
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)