29.06.2011, 18:13
Hey. I added a gate in the map, this is the code i added:
First in the script:
OnPlayerCommandText line:
OnPlayerCommandText line:
And when i click run, the pawno crash, and in the run window, is it no text. and my .amx gamemode is 0 kb, and .pwn 1899 kb.
I tryed on 2 computers, and i get same thing. no erro, but it wont save. Help?
First in the script:
Код:
new ahgate
Код:
ahgate = CreateObject(980,1742.20727539,-1755.67358398,15.28825760,0.00000000,0.00000000,0.00000000); //object(airportgate)
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/ahopen", true)==0) { SendClientMessage(playerid, COLOR_BLUE, "The front gate has opened. Welcome Admin!"); MoveObject(Gate1, 810.798,-1755.6728515625,15.288257598877, 3.0); return 1; } if(strcmp(cmdtext, "/ahclose", true)==0) { SendClientMessage(playerid, COLOR_BLUE, "The front gate has closed. Goodbye!"); MoveObject(Gate1,829.798,-1755.6728515625,15.288257598877.690,14.727); return 1; } } return 1; }
I tryed on 2 computers, and i get same thing. no erro, but it wont save. Help?
