[Ajuda] Aqui por favor!!
#1

Код:
new Matou[MAX_PLAYERS];
new Morreu[MAX_PLAYERS];
Quote:

public OnPlayerDeath(playerid, killerid, reason)
{
Matou[killerid] += 1;
Morreu[playerid] += 1;
if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SendDeathMessage(killerid, playerid, reason);
return 1;
}

Quote:

public OnPlayerClickPlayer(playerid,clickedplayerid,sourc e)
{
new string[64],name[24];
GetPlayerName(clickedplayerid,name,sizeof(name));
format(string,sizeof(string),"Nick: %s\nDinheiro: %d\nMatou: %d\nMorreu: %d\nRelaзгo: [%0.2f]",name,GetPlayerScore(clickedplayerid),GetPlayerMo ney(clickedplayerid),Matou[clickedplayerid],Morreu[clickedplayerid]);
ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX,"Player Status", string, "Fechar");

return 1;
}

Compilando com 4 Waring e no jogo nao ta funfando -.-

Ajudo nisso = +REP
Reply
#2

posta os warnings
Reply
#3

C:\Documents and Settings\Lucas ®\Desktop\B4S\gamemodes\B4S.pwn(347) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Lucas ®\Desktop\B4S\gamemodes\B4S.pwn(377) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Lucas ®\Desktop\B4S\gamemodes\B4S.pwn(691) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Lucas ®\Desktop\B4S\gamemodes\B4S.pwn(847) : warning 235: public function lacks forward declaration (symbol "SendMSG")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Reply
#4

'-----------'
kd o resto?
>________<

Bota ex:

pawn Код:
public MEGUSTA(playerid) // LINHA 552
{ // linha 560
Reply
#5

deu erro nessas linhas

SetPlayerPos(playerid,1074.2808,1243.2609,10.8275, 4.8330); //347

SetPlayerPos(playerid,4721.3652,-1769.8309,613.0718,89.4956);//377

ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX,"Player Status", string, "Fechar");//691

nessa: public SendMSG()//847

e na 854 que nao tem nada
Reply
#6

Troque por isso

SetPlayerPos(playerid,1074.2808,1243.2609,10.8275) ; //347

SetPlayerPos(playerid,4721.3652,-1769.8309,613.071;//377

ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX,"Player Status", string, "Fechar","");//691

forward SendMSG();
public SendMSG()//847
Reply
#7

pawn Код:
SetPlayerPos(playerid,1074.2808,1243.2609,10.8275);

SetPlayerPos(playerid,4721.3652,-1769.8309,613.0718);

ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX,"Player Status", string, "Fechar" , "");
forward SendMSG();
public SendMSG()
{ // Bote sу se n tiver '-'
@
TEMOS NINJA'S AGORA NO FORUM ! ¬¬'
Reply
#8

O SetPlayerPos tem somente 3 coordenadas, X, Y, Z. Vocк colocou 4, que imagino que seja o вngulo, mas creio que nгo precisa nesse caso.

Tente assim nos SetPlayerPos:

pawn Код:
SetPlayerPos(playerid,1074.2808,1243.2609,10.8275);

SetPlayerPos(playerid,4721.3652,-1769.8309,613.0718);
Na dialog, tente dessa forma:
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX,"Player Status", string, "Fechar", "");
Jб no problema da public SendMSG, poste essa public.
Reply
#9

DEU CERTO AKI +REP PARA [LF]Player me ajudo bastante

mais obrigado por todos aii !!
Reply
#10

Encontrei um bug =/ o score ta sendo contado como dinheiro...

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)