FireChief 0 Odesláno: 22. Srpen, 2014 Share Odesláno: 22. Srpen, 2014 #include <a_samp> //*********************************hzs nová ****************************************** new zavora1, zavora1Status; new zavora2, zavora2Status; public OnFilterScriptInit() { //*********************************hzs nová***************************************** zavora1 = CreateObject(968, -1701.43091, 687.55389, 24.70050, 0.00000, 270.00000, 90.00000); zavora2 = CreateObject(968, -1572.20215, 658.81482, 6.81980, 0.00000, 90.00000, 90.00000); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { //*********************************hzs nová****************************************** if (strcmp("/z1", cmdtext, true, 10) == 0) { if (zavora1Status == 0) { // jsme se píše otevřena MoveObject(zavora1, -1701.43091, 687.55389, 24.70050, 0.5 ,0.00000, 0.00000, 90.00000); zavora1Status = 1; } else { // jsem se píše zavřena vlastne ta která je v CreateObject nahoře MoveObject(zavora1, -1701.43091, 687.55389, 24.70050, 0.5 ,0.00000, 270.00000, 90.00000);// 0.5 je rychlost otvírani stejna jako na stanicích zavora1Status = 0; } return 1; if (strcmp("/z2", cmdtext, true, 10) == 0) { if (zavora2Status == 0) { // jsme se píše otevřena MoveObject(zavora2, -1572.20215, 658.81482, 6.81980, 0.5 , 0.00000, 0.00000, 90.00000 ); zavora2Status = 1; } else { // jsem se píše zavřena vlastne ta která je v CreateObject nahoře MoveObject(zavora2, -1572.20215, 658.81482, 6.81980, 0.5 ,0.00000, 90.00000, 90.00000);// 0.5 je rychlost otvírani stejna jako na stanicích zavora2Status = 0; } return 1; } return 0; } WARNINGI : C:\Users\Vítek\Desktop\zavory.pwn(34) : warning 225: unreachable code C:\Users\Vítek\Desktop\zavory.pwn(34) : warning 217: loose indentation C:\Users\Vítek\Desktop\zavory.pwn(52) : error 030: compound statement not closed at the end of file (started at line 20) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. Předem děkuji za pomoc. Link to comment Share on other sites More sharing options...
0 Drifty 0 Odesláno: 22. Srpen, 2014 Share Odesláno: 22. Srpen, 2014 ehm? public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/z1", cmdtext, true, 10) == 0) { if (zavora1Status == 0) { // jsme se píše otevřena MoveObject(zavora1, -1701.43091, 687.55389, 24.70050, 0.5 ,0.00000, 0.00000, 90.00000); zavora1Status = 1; } else { // jsem se píše zavřena vlastne ta která je v CreateObject nahoře MoveObject(zavora1, -1701.43091, 687.55389, 24.70050, 0.5 ,0.00000, 270.00000, 90.00000);// 0.5 je rychlost otvírani stejna jako na stanicích zavora1Status = 0; } return 1; } if (strcmp("/z2", cmdtext, true, 10) == 0) { if (zavora2Status == 0) { // jsme se píše otevřena MoveObject(zavora2, -1572.20215, 658.81482, 6.81980, 0.5 , 0.00000, 0.00000, 90.00000 ); zavora2Status = 1; } else { // jsem se píše zavřena vlastne ta která je v CreateObject nahoře MoveObject(zavora2, -1572.20215, 658.81482, 6.81980, 0.5 ,0.00000, 90.00000, 90.00000);// 0.5 je rychlost otvírani stejna jako na stanicích zavora2Status = 0; } return 1; } return 0; } Link to comment Share on other sites More sharing options...
0 FireChief 0 Odesláno: 22. Srpen, 2014 Author Share Odesláno: 22. Srpen, 2014 Pomohlo ale teď to píše tohle C:\Users\Vítek\Desktop\zavory.pwn(47) : warning 217: loose indentation Vřešeno LOCCK a Drifty děkuju moc Link to comment Share on other sites More sharing options...
0 Drifty 0 Odesláno: 22. Srpen, 2014 Share Odesláno: 22. Srpen, 2014 Pomohlo ale teď to píše tohle C:\Users\Vítek\Desktop\zavory.pwn(47) : warning 217: loose indentation Vřešeno LOCCK a Drifty děkuju moc warning 217: loose indentation... To stačí jenom zarovnat řádek Link to comment Share on other sites More sharing options...
Dotaz
FireChief 0
Link to comment
Share on other sites
3 odpovědí na tuto otázku
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now