14.05.2011, 20:21
Coloquei isso no meu gm mas eta dando erro em uma linha. Assim:
Essa й o comando.
O erro estб dando na 3Є linha, nesse comando:
Код:
C:\Users\Gabriel\Desktop\area2\sv\gamemodes\kdedrift.pwn(804) : error 017: undefined symbol "PosX" C:\Users\Gabriel\Desktop\area2\sv\gamemodes\kdedrift.pwn(804) : warning 215: expression has no effect C:\Users\Gabriel\Desktop\area2\sv\gamemodes\kdedrift.pwn(804) : error 001: expected token: ";", but found "]" C:\Users\Gabriel\Desktop\area2\sv\gamemodes\kdedrift.pwn(804) : error 029: invalid expression, assumed zero C:\Users\Gabriel\Desktop\area2\sv\gamemodes\kdedrift.pwn(804) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
if (strcmp(cmdtext, "/salvar", true)==0)
{
GetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
GetPlayerFacingAngle(playerid, PosA[playerid]);
SendClientMessage(playerid, COR, "Vocк guardou a posiзгo use '/irsalvo'!");
PosI[playerid] = (GetPlayerInterior(playerid));
PlayerPlaySound(playerid, 1137 , 0.0, 0.0, 0.0);
return 1;
}
if (strcmp(cmdtext, "/irsalvo", true)==0)
{
if (!floatsqroot(PosX[playerid]+PosY[playerid]+PosZ[playerid]))
{
return SendClientMessage(playerid, COR, "Deve salvar antes!'/salvar'");
}
else
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid), PosX[playerid], PosY[playerid], PosZ[playerid]);
SetVehicleZAngle(GetPlayerVehicleID(playerid), PosA[playerid]);
SetCameraBehindPlayer(playerid);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), PosI[playerid]);
}
else
{
EnCoche[playerid] = false;
SetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
SetPlayerFacingAngle(playerid, PosA[playerid]);
SetCameraBehindPlayer(playerid);
}
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
SetPlayerInterior(playerid, PosI[playerid]);
SendClientMessage(playerid, COLOR_ORANGE, "Posiзгo carregada com sucesso!!");
}
return 1;
}
pawn Код:
GetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);