01.08.2009, 12:07
Quote:
|
Originally Posted by tturvas
So i made the code by my self, but it says error
Код:
if(strcmp(cmdtext,"/mgate",true ) == 0 )
{
if(PlayerToPoint(13.0,playerid,-505.2811,2592.9241,53.4345))
{
SendClientMessage(playerid,red,"To open the gate type /mgate");
}
if(mgate == 0)
{
if(GetPlayerMoney(playerid) < 2000)
{
SendClientMessage(playerid, red, "You dont have enough money");
return 1;
}
else
{
MoveObject(gate,-504.925720, 2584.749756, 53.475311, 2.00 );
MoveObject(gate2,-504.894165, 2601.114014, 53.470360, 2.00);
SendClientMessage(playerid, aqua, "Gate of bike parking is now opened, it cost you 2000$");
GivePlayerMoney(playerid,-2000);
SetTimer("gateclose",60000,0);
mgate = 1;
return 1;
}
}
else
{
MoveObject(gate, -504.925720, 2590.153564, 53.475311, 2.0);
MoveObject(gate2, -504.894165, 2595.635498, 53.470360, 2.0);
SendClientMessage(playerid, aqua, "Gate of bike parking is now closed");
mgate = 0;
return 1;
}
}
else
{
{
SendClientMessage(playerid, 0x804040FF, "You're not near the gate!");
return 1;
}
}
}
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\samp02Xserver.win32\gamemodes\tturvas.pwn(509) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |

