SA-MP Forums Archive
[Ajuda] Erro nгo consigo resolver - 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] Erro nгo consigo resolver (/showthread.php?tid=467306)



Erro nгo consigo resolver - lucaskill66 - 02.10.2013

Estou com uma erro no format e nгo consigo resolver:

Код:
		case DIALOG_ORGS:
	    {
	        new Str[128];
	        if(response)
	        {
	            PlayerInfo[playerid][pOrganizacao] = GetPVarInt(playerid, "OrgConvidado");
	            PlayerInfo[playerid][pCargo] = 1;
	            format(Str, sizeof(Str), "%s aceitou seu Convite.", PlayerName);//ERRO
	            SendClientMessage(GetPVarInt(playerid, "QuemConvidou"), COR_SKYBLUE, Str);
	            format(Str, sizeof(Str), "%s й o mais novo membro da Organizaзгo.", PlayerName);//ERRO
	            SendFamilyMessage(PlayerInfo[playerid][pOrganizacao], GetPlayerColor(playerid), Str);
	            SendClientMessage(playerid, COR_SKYBLUE, "Vocк aceitou o Convite.");
	            DeletePVar(playerid, "OrgConvidado");
	            DeletePVar(playerid, "QuemConvidou");
	            SpawnPlayer(playerid);
	        }
	        else
	        {
	            format(Str, sizeof(Str), "%s rejeitou seu Convite.", PlayerName);//ERRO
	            SendClientMessage(GetPVarInt(playerid, "QuemConvidou"), COR_SKYBLUE, Str);
	            SendClientMessage(playerid, COR_SKYBLUE, "Vocк rejeitou o Convite.");
	            DeletePVar(playerid, "OrgConvidado");
	            DeletePVar(playerid, "QuemConvidou");
	        }
	    }
Код:
C:\Users\\Desktop\\gamemodes\(474) : error 076: syntax error in the expression, or invalid function call
C:\Users\\Desktop\\gamemodes\(476) : error 076: syntax error in the expression, or invalid function call
C:\Users\\Desktop\\gamemodes\(485) : error 076: syntax error in the expression, or invalid function call



Re: Erro nгo consigo resolver - arakuta - 02.10.2013

Provavelmente este PlayerName. Deve ser alguma funзao. Provavelmente PlayerName(playerid)


Re: Erro nгo consigo resolver - lucaskill66 - 02.10.2013

Quote:
Originally Posted by arakuta
Посмотреть сообщение
Provavelmente este PlayerName. Deve ser alguma funзao. Provavelmente PlayerName(playerid)
Obrigado ai pela ajuda +REP.

#EDIT: nгo posso te dar +REP.