28.05.2012, 10:00
Okay thank you
when you solve the problem send me a privte message or type here
when you solve the problem send me a privte message or type here
Why i can create only one gate
when i try to make antoher one its says "you already created dynamic gate" help me please |
CMD:placegate( playerid, params[] )
{
if( isnull( params) )
return SendClientMessage( playerid, -1, "Syntax: /placegate [password]" );
if( !strval( params ) )
return SendClientMessage( playerid, -1, "You need to input numbers." );
if( IsPlayerInAnyVehicle( playerid ) )
return SendClientMessage( playerid, -1, "You need to exit your vehicle." );
// if you want to place more than 1 gate per player comment this code
/*new szName[24];
GetPlayerName( playerid, szName, 24 );
for( new i = 0; i != MAX_GATES; i++ )
if( GateInfo[i][gCreated] == 1 )
if( !strcmp( szName, GateInfo[i][gPlacedBy], true ) )
return SendClientMessage( playerid, -1, "You already placed a movable gate." );
else
continue;*/
new Float:pPos[4];
GetPlayerPos( playerid, pPos[0], pPos[1], pPos[2] );
GetPlayerFacingAngle( playerid, pPos[3] );
CreateGate( playerid, strval( params ), pPos[0], pPos[1], pPos[2], pPos[3] );
SendClientMessage( playerid, -1, "You succesfully created a movable gate. Use /gopen or /gclose." );
return 1;
}
Update your includes & check this thread out (https://sampforum.blast.hk/showthread.php?tid=256961).
|
C:\Documents and Settings\Mehdi\Desktop\Algerian-Trucking\filterscripts\Gates.pwn(3) : fatal error 100: cannot read from file: "Dini"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
what do i need to do now?
Код:
C:\Users\WGSoshiPacoIU\Desktop\Trucking\filterscripts\Gates.pwn(68) : error 017: undefined symbol "IsObjectMoving" C:\Users\WGSoshiPacoIU\Desktop\Trucking\filterscripts\Gates.pwn(110) : error 017: undefined symbol "IsObjectMoving" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
#define IsObjectMoving