roli28111 0 Odesláno: 16. Duben, 2012 Share Odesláno: 16. Duben, 2012 Skušal som spravit branu na otvorenie ale je v tom niaka chyba pls pomohol by mi niekto s tim ? Toto mi vipisuje pri komplikovani v pawno: D:\Documents and Settings\Administrator\Desktop\samp\pawno\ds.pwn(35) : error 001: expected token: "#endif", but found "-end of file-" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. A tu je kod: // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include #if defined FILTERSCRIPT public OnFilterScriptInit() { CreateObject(987,1638.00000000,621.20001221,9.80000019,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (1) CreateObject(987,1648.90002441,621.09997559,9.80000019,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (2) CreateObject(974,1628.30004883,641.29998779,12.60000038,0.00000000,0.00000000,0.00000000); //trololo CreateObject(985,1620.90002441,641.29998779,9.80000019,0.00000000,0.00000000,0.00000000); //object(gate_autor) (1) CreateObject(985,1635.59997559,641.20001221,9.80000019,0.00000000,0.00000000,0.00000000); //object(gate_autor) (2) return 1; } public OnFilterScriptExit() { return 1; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/otvor", cmdtext, true, 10) == 0) { new string[50]; new movetime = MoveObject(974, 1628.30004883, 641.29998779, 50.60000038, 0); format(string, sizeof(string), "Brana otvorena", movetime); SendClientMessage(playerid, 0xFF000000, string); return 1; } return 0; } VopredĎakujem :rap: Link to comment Share on other sites More sharing options...
0 G4NG 1 Odesláno: 16. Duben, 2012 Share Odesláno: 16. Duben, 2012 #include public OnFilterScriptInit() { CreateObject(987,1638.00000000,621.20001221,9.80000019,0.00000000,0.00000000,0.00000000); CreateObject(987,1648.90002441,621.09997559,9.80000019,0.00000000,0.00000000,0.00000000); new brana; brana = CreateObject(974,1628.30004883,641.29998779,12.60000038,0.00000000,0.00000000,0.00000000); CreateObject(985,1620.90002441,641.29998779,9.80000019,0.00000000,0.00000000,0.00000000); CreateObject(985,1635.59997559,641.20001221,9.80000019,0.00000000,0.00000000,0.00000000); return 1; } public OnFilterScriptExit() { return 1; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/otvor", cmdtext, true, 10) == 0) { new string[50]; oveObject(brana, 1628.30004883, 641.29998779, 50.60000038, 0); format(string, sizeof(string), "Brana otvorena"); SendClientMessage(playerid, 0xFF000000, string); return 1; } return 0; } Link to comment Share on other sites More sharing options...
0 roli28111 0 Odesláno: 16. Duben, 2012 Author Share Odesláno: 16. Duben, 2012 mam tam #include public OnFilterScriptInit() { CreateObject(987,1638.00000000,621.20001221,9.80000019,0.00000000,0.00000000,0.00000000); CreateObject(987,1648.90002441,621.09997559,9.80000019,0.00000000,0.00000000,0.00000000); new brana; brana = CreateObject(974,1628.30004883,641.29998779,12.60000038,0.00000000,0.00000000,0.00000000); CreateObject(985,1620.90002441,641.29998779,9.80000019,0.00000000,0.00000000,0.00000000); CreateObject(985,1635.59997559,641.20001221,9.80000019,0.00000000,0.00000000,0.00000000); return 1; } public OnFilterScriptExit() { return 1; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/otvor", cmdtext, true, 10) == 0) { new string[50]; MoveObject(brana, 1628.30004883, 641.29998779, 50.60000038, 0); format(string, sizeof(string), "Brana otvorena"); SendClientMessage(playerid, 0xFF000000, string); return 1; } return 0; } ale furt vipisuje: D:\Documents and Settings\Administrator\Desktop\samp\pawno\ggg.pwn(11) : warning 217: loose indentation D:\Documents and Settings\Administrator\Desktop\samp\pawno\ggg.pwn(8) : warning 204: symbol is assigned a value that is never used: "brana" D:\Documents and Settings\Administrator\Desktop\samp\pawno\ggg.pwn(18) : warning 225: unreachable code D:\Documents and Settings\Administrator\Desktop\samp\pawno\ggg.pwn(18) : error 029: invalid expression, assumed zero D:\Documents and Settings\Administrator\Desktop\samp\pawno\ggg.pwn(18) : error 004: function "OnPlayerCommandText" is not implemented D:\Documents and Settings\Administrator\Desktop\samp\pawno\ggg.pwn(20) : error 017: undefined symbol "cmdtext" D:\Documents and Settings\Administrator\Desktop\samp\pawno\ggg.pwn(23) : error 017: undefined symbol "brana" D:\Documents and Settings\Administrator\Desktop\samp\pawno\ggg.pwn(25) : error 017: undefined symbol "playerid" D:\Documents and Settings\Administrator\Desktop\samp\pawno\ggg.pwn(26) : warning 217: loose indentation D:\Documents and Settings\Administrator\Desktop\samp\pawno\ggg.pwn(30) : error 030: compound statement not closed at the end of file (started at line 16) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 16. Duben, 2012 Share Odesláno: 16. Duben, 2012 #include public OnFilterScriptInit() { CreateObject(987,1638.00000000,621.20001221,9.80000019,0.00000000,0.00000000,0.00000000); CreateObject(987,1648.90002441,621.09997559,9.80000019,0.00000000,0.00000000,0.00000000); new brana; brana = CreateObject(974,1628.30004883,641.29998779,12.60000038,0.00000000,0.00000000,0.00000000); CreateObject(985,1620.90002441,641.29998779,9.80000019,0.00000000,0.00000000,0.00000000); CreateObject(985,1635.59997559,641.20001221,9.80000019,0.00000000,0.00000000,0.00000000); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/otvor", cmdtext, true, 10) == 0) { new string[50]; MoveObject(brana, 1628.30004883, 641.29998779, 50.60000038, 0); format(string, sizeof(string), "Brana otvorena"); SendClientMessage(playerid, 0xFF000000, string); return 1; } return 0; } Link to comment Share on other sites More sharing options...
Dotaz
roli28111 0
Skušal som spravit branu na otvorenie ale je v tom niaka chyba
pls pomohol by mi niekto s tim ?
Toto mi vipisuje pri komplikovani v pawno:
D:\Documents and Settings\Administrator\Desktop\samp\pawno\ds.pwn(35) : error 001: expected token: "#endif", but found "-end of file-"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
A tu je kod:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
CreateObject(987,1638.00000000,621.20001221,9.80000019,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (1)
CreateObject(987,1648.90002441,621.09997559,9.80000019,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (2)
CreateObject(974,1628.30004883,641.29998779,12.60000038,0.00000000,0.00000000,0.00000000); //trololo
CreateObject(985,1620.90002441,641.29998779,9.80000019,0.00000000,0.00000000,0.00000000); //object(gate_autor) (1)
CreateObject(985,1635.59997559,641.20001221,9.80000019,0.00000000,0.00000000,0.00000000); //object(gate_autor) (2)
return 1;
}
public OnFilterScriptExit()
{
return 1;
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/otvor", cmdtext, true, 10) == 0)
{
new string[50];
new movetime = MoveObject(974, 1628.30004883, 641.29998779, 50.60000038, 0);
format(string, sizeof(string), "Brana otvorena", movetime);
SendClientMessage(playerid, 0xFF000000, string);
return 1;
}
return 0;
}
VopredĎakujem :rap:
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