SA-MP Forums Archive
[Ajuda] /reporter - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] /reporter (/showthread.php?tid=620579)



/reporter - ViniciusTUF - 31.10.2016

Rapaziada quero saber porque essa codigo nгo ta funcionando, entro no servidor e digito /reporter mais nгo acontece nada!


if(strcmp(cmdtext, "/reporter", true) == 0)
{
if(EmTrabalho[playerid] == 1)
{
if(PlayerInfo[playerid][pRgt] >= 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),1073.03 77,1242.0303,10.8275);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.7145);
return 1;
}
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1073.0377,1242.0303,10.8275) ;
SetPlayerFacingAngle(playerid, 0.7145);
GivePlayerWeapon(playerid,43,999999);
SetPlayerColor(playerid, COR_REPORTER);
SetPlayerSkin(playerid, 187 );
EmTrabalho[playerid] = 1;
GetPlayerName(playerid, sendername, 30);
format(string,sizeof(string),"Repуrter %s estб em trabalho.", sendername);
SendClientMessageToAll(COR_NEGATIVO, string);

}
else
{
SendClientMessage(playerid, COR_ERRO, "Vocк nгo й um reporter!");
return 1;
}
}
return 1;
}


Re: /reporter - RazorGuigo - 31.10.2016

Quote:

EmTrabalho[playerid]

se ele nгo for 1, o codigo nгo ira fazer nada, nem mostrar nenhuma mensagem de erro ao jogador!, veja como ela esta sendo manipulada anteriormente!