[AJUDA]salvarposiзгo e irposiзгo
#1

Coloquei isso no meu gm mas eta dando erro em uma linha. Assim:
Код:
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.
Essa й o comando.

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;
}
O erro estб dando na 3Є linha, nesse comando:
pawn Код:
GetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
Reply


Messages In This Thread
[AJUDA]salvarposiзгo e irposiзгo - by DPS|NeW| - 14.05.2011, 20:21
Re: [AJUDA]salvarposiзгo e irposiзгo - by Gamal - 14.05.2011, 20:26
Re: [AJUDA]salvarposiзгo e irposiзгo - by Shadoww5 - 14.05.2011, 20:31
Re: [AJUDA]salvarposiзгo e irposiзгo - by The Knight - 14.05.2011, 20:33
Re: [AJUDA]salvarposiзгo e irposiзгo - by DPS|NeW| - 14.05.2011, 20:34
Re: [AJUDA]salvarposiзгo e irposiзгo - by [S]trong - 14.05.2011, 20:37
Re: [AJUDA]salvarposiзгo e irposiзгo - by Shadoww5 - 14.05.2011, 20:38
Re: [AJUDA]salvarposiзгo e irposiзгo - by The Knight - 14.05.2011, 20:40
Re: [AJUDA]salvarposiзгo e irposiзгo - by [S]trong - 14.05.2011, 20:40
Re: [AJUDA]salvarposiзгo e irposiзгo - by The Knight - 14.05.2011, 20:44

Forum Jump:


Users browsing this thread: 2 Guest(s)