16.06.2009, 10:55
I'm created admin door. "/kapiac" is opening admin door command. But my commands is wrong. I dont know wrongs. Help me.
[code=Command]
if (strcmp(cmdtext, "/kapiac", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
SendPlayerFormattedText(playerid, "Sadece adminler kapiyi acabilir.", 0);
}
. else
.. {
... if(AttachObjectToPlayer(adminkapi,playerid,1.5, 0.5, 0, 0, 1.5, 2)
1853: {
... MoveObject(adminkapi, 1256.65, -766.82, 92.75, ;
.. }
. else
{
PlayerPlaySound(playerid, 1035, 0.0, 0.0, 0.0);
MoveObject(adminkapi, 1256.65, -766.82, 92.75, ;
}
}
return 1;
}
[/code]
[code=Wrong]
(1853) : error 001: expected token: ")", but found "{"
[/code]
[code=Command]
if (strcmp(cmdtext, "/kapiac", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
SendPlayerFormattedText(playerid, "Sadece adminler kapiyi acabilir.", 0);
}
. else
.. {
... if(AttachObjectToPlayer(adminkapi,playerid,1.5, 0.5, 0, 0, 1.5, 2)
1853: {
... MoveObject(adminkapi, 1256.65, -766.82, 92.75, ;
.. }
. else
{
PlayerPlaySound(playerid, 1035, 0.0, 0.0, 0.0);
MoveObject(adminkapi, 1256.65, -766.82, 92.75, ;
}
}
return 1;
}
[/code]
[code=Wrong]
(1853) : error 001: expected token: ")", but found "{"
[/code]