20.07.2018, 02:18
No que eu errei nesse comando?
PHP код:
CMD:minhaposicao(playerid)
{
new Float:x, Float:y, Float:z, Float:a, string[64];
if(GetPlayerInterior(playerid) = 0)
{
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
format(string, sizeof(string), "Sua posicгo й: %f %f %f %f !", x, y, z, a);
SendClientMessage(playerid, -1, string);
}
else if(GetPlayerInterior(playerid) > 1)
{
SendClientMessage(playerid, -1, "Vocк nгo pode digitar esse comando estando em um interior!");
}
return 1;
}
PHP код:
C:\Users\victo\Downloads\Server\gamemodes\GM.pwn(317) : warning: 211: possibly unintended assignment
C:\Users\victo\Downloads\Server\gamemodes\GM.pwn(317) : error: 022: must be lvalue (non-constant)
C:\Users\victo\Downloads\Server\gamemodes\GM.pwn(317) : warning: 215: expression has no effect
C:\Users\victo\Downloads\Server\gamemodes\GM.pwn(317) : error: 001: expected token: ";", but found ")"
C:\Users\victo\Downloads\Server\gamemodes\GM.pwn(317) : error: 029: invalid expression, assumed zero
C:\Users\victo\Downloads\Server\gamemodes\GM.pwn(317) : error fatal: 107: too many error messages on one line