03.01.2013, 16:54
Hola muy buenas estes es mi primer post, hoy tengo un problemilla a la hora de compilar un Filterscript y esque de da crash al compilarlo este es el filterscript aver si podeis compilarlo vosotros.
if (strcmp("/s", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, GREEN, "Saved position. For return to your saved position type /r");
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
GetVehiclePos(VehicleID, posx[playerid], posy[playerid], posz[playerid]);
GetVehicleZAngle(VehicleID, zangle[playerid]);
} else {
GetPlayerPos(playerid, posx[playerid], posy[playerid], posz[playerid]);
GetPlayerFacingAngle(playerid, zangle[playerid]);
}
return 1;
}
if (strcmp("/r", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, GREEN, "You are returned to your saved position.");
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, posx[playerid], posy[playerid], posz[playerid]);
SetVehicleZAngle(VehicleID, zangle[playerid]);
}
else
{
SetPlayerPos(playerid, posx[playerid], posy[playerid], posz[playerid]);
SetPlayerFacingAngle(playerid, zangle[playerid]);
}
return 1;
}
if (strcmp("/s", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, GREEN, "Saved position. For return to your saved position type /r");
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
GetVehiclePos(VehicleID, posx[playerid], posy[playerid], posz[playerid]);
GetVehicleZAngle(VehicleID, zangle[playerid]);
} else {
GetPlayerPos(playerid, posx[playerid], posy[playerid], posz[playerid]);
GetPlayerFacingAngle(playerid, zangle[playerid]);
}
return 1;
}
if (strcmp("/r", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, GREEN, "You are returned to your saved position.");
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, posx[playerid], posy[playerid], posz[playerid]);
SetVehicleZAngle(VehicleID, zangle[playerid]);
}
else
{
SetPlayerPos(playerid, posx[playerid], posy[playerid], posz[playerid]);
SetPlayerFacingAngle(playerid, zangle[playerid]);
}
return 1;
}