SA-MP Forums Archive
Qual й o erro ? - 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: Qual й o erro ? (/showthread.php?tid=277460)



Qual й o erro ? - CanTLoGin - 18.08.2011

Sempre que uma pessoa mata alguem
ele da uns espaзo no chat
aonde estб o erro ?

pawn Код:
public OnPlayerDeath(playerid, killerid, reason) // MORRENDO
{
        if(GetPVarInt(playerid, "X1") == 1) x1--;
        GameTextForPlayer(playerid,"~y~Se ~y~Fudeu!!!",4000,3);
        if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
     SendDeathMessage(killerid, playerid, reason);
        new Matou[35];
        static Nome[24], string[128];GetPlayerName(killerid, Nome, 24);
        if( kX1[ playerid ] == true )
{
        kX1[ playerid ] = false;
        kX1[ killerid ] = false;
        GetPlayerName( playerid, kMorreu, sizeof( kMorreu ) );
        GetPlayerName( playerid, kMatou, sizeof( kMatou ) );
        format( sStr, sizeof( sStr ), "» Jogador(a) %s ganhou ao jogador(a) %s no x1", kMatou, kMorreu );
        SendClientMessageToAll( -1, sStr );
        kQuantidade = 0;
}
        return SendClientMessageToAll(0xFF0606FF, string),Matou[killerid]++, true;
}



Re: Qual й o erro ? - ViniBorn - 18.08.2011

Lб embaixo.
string nгo contйm nada.
pawn Код:
SendClientMessageToAll(0xFF0606FF, string)



Re: Qual й o erro ? - histire - 18.08.2011

espaso tipw


pula linhas?


@Edit
ja responderao


Re: Qual й o erro ? - CanTLoGin - 18.08.2011

Sim. ele pula linhas.

Vini eu tirei aqela String e deu 26 erros D:


pawn Код:
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(513) : warning 217: loose indentation
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(514) : warning 217: loose indentation
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(528) : warning 217: loose indentation
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(528) : error 029: invalid expression, assumed zero
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(528) : error 004: function "OnVehicleSpawn" is not implemented
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(533) : warning 225: unreachable code
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(533) : error 029: invalid expression, assumed zero
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(533) : error 004: function "OnVehicleDeath" is not implemented
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(538) : warning 225: unreachable code
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(538) : error 029: invalid expression, assumed zero
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(538) : error 004: function "OnPlayerText" is not implemented
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(543) : warning 225: unreachable code
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(543) : error 029: invalid expression, assumed zero
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(543) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(546) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(551) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(559) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(572) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(579) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(595) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(602) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(621) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(637) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(654) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(685) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(713) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(715) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(725) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(732) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(740) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(746) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(752) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(763) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(769) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(779) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(785) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(795) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(801) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(811) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(817) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(819) : warning 202: number of arguments does not match definition
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(823) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(828) : error 017: undefined symbol "cmdtext"
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(834) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\YanMatheus\Desktop\Sv 0.3c ASD38\fUERTE APACHE 0.3 -xd\gamemodes\VPGM2011.pwn(841) : error 017: undefined symbol "cmdtext"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.



Re: Qual й o erro ? - ViniBorn - 18.08.2011

Nгo precisa tirar a string, й sу tirar o SendClientMessageToAll


Re: Qual й o erro ? - histire - 18.08.2011

cara vc nao tira vc poen a mesagen '--' SendClientMessageToAll(0xFF0606FF, "mesagen", string) creio ki sseja isso.


@Edit
OMG nao vi vc postando saiu junto quase -er qwoiqw :@ ou vc deleta ou poen messagen '--'


Re: Qual й o erro ? - CanTLoGin - 18.08.2011

Bug Arrumado.

Reputation pros 2 ^^ '


Re: Qual й o erro ? - ViniBorn - 18.08.2011

Quote:
Originally Posted by histire
Посмотреть сообщение
cara vc nao tira vc poen a mesagen '--' SendClientMessageToAll(0xFF0606FF, "mesagen", string) creio ki sseja isso.
SendClientMessageToAll sу possui dois parвmetros, Cor e mensagem.

Ou vocк usa assim (0xFF0606FF, "mesagen")

Ou usa assim (0xFF0606FF, string)


Re: Qual й o erro ? - histire - 18.08.2011

entendi vlw ai nao sabia nao