03.09.2014, 19:54
Deu isso ae amigo!
(4489) : error 029: invalid expression, assumed zero
(4489 -- 4490) : warning 215: expression has no effect
(4490) : error 001: expected token: ";", but found "}"
(4483) : warning 204: symbol is assigned a value that is never used: "string"
LINHAS DOS ERROS
MEU ONPLAYERUPDATE!
(4489) : error 029: invalid expression, assumed zero
(4489 -- 4490) : warning 215: expression has no effect
(4490) : error 001: expected token: ";", but found "}"
(4483) : warning 204: symbol is assigned a value that is never used: "string"
LINHAS DOS ERROS
pawn Код:
+= 0
}
new Float:Pos[3], string[50];
pawn Код:
public OnPlayerUpdate(playerid)
{
SetPVarInt(playerid, "SegundosTick", gettime());
if( gettime() - GetPVarInt(playerid, "SegundosTick") > 1) {
salvarJogador(playerid);
Msg(playerid, -1, "salvo");
}
new Float:Pos[3], string[50];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
if(GetTickCount() - Tick[playerid] >= 120000)
{
if(GetPVarFloat(playerid, "X") == Pos[0] && GetPVarFloat(playerid, "Y") == Pos[1] && GetPVarFloat(playerid, "Z") == Pos[2])
{
+= 0
}
}
SetPVarFloat(playerid, "X", Pos[0]);
SetPVarFloat(playerid, "Y", Pos[1]);
SetPVarFloat(playerid, "Z", Pos[2]);
Tick[playerid] = GetTickCount();
return 1;
}