09.05.2009, 17:58
if(strcmp(cmd, "/LSPDBarrier1open", true) == 0) // Command
{
if(IsACop(playerid)) // Checks if the player is in the police
{
SetObjectRot(LSPDBarrier1,0.000000,0.000000,269.81 8847); // Moves the object
}
}
if(strcmp(cmd, "/LSPDBarrier1close", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(LSPDBarrier1,0.000000,89.000000,269.8 18847);
}
return 1;
}
C:\Documents and Settings\pc\Desktop\GTA San Andreas\pawno\WC-RP.pwn(8451) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\pawno\WC-RP.pwn(8457) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\pawno\WC-RP.pwn(8462) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\pawno\WC-RP.pwn(28645) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph" (did forward GetPointDistanceToPointExMorph but says another mistake)
{
if(IsACop(playerid)) // Checks if the player is in the police
{
SetObjectRot(LSPDBarrier1,0.000000,0.000000,269.81 8847); // Moves the object
}
}
if(strcmp(cmd, "/LSPDBarrier1close", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(LSPDBarrier1,0.000000,89.000000,269.8 18847);
}
return 1;
}
C:\Documents and Settings\pc\Desktop\GTA San Andreas\pawno\WC-RP.pwn(8451) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\pawno\WC-RP.pwn(8457) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\pawno\WC-RP.pwn(8462) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\pawno\WC-RP.pwn(28645) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph" (did forward GetPointDistanceToPointExMorph but says another mistake)