[Ajuda] Ajuda meu GM, so tem um warning
#3

Quote:
Originally Posted by Ouro
Посмотреть сообщение
pawn Код:
if(strcmp("/bdd", cmdtext, true, 10) == 0)
{
ResetPlayerWeapons(playerid);
new name[MAX_PLAYER_NAME],string12[100];
GetPlayerName(playerid, name, sizeof(name));
format(string12, sizeof(string12), "[Teletransporte] %s foi para o Bairro do Death Match(DM) (/bdd)", name );
SendClientMessageToAll(COLOR_GRAD1, string12);

SetPlayerPos(playerid,1554.7645,-1246.8375,279.3455);
SetPlayerInterior(playerid,0);
ResetPlayerWeapons(playerid),GivePlayerWeapon(play erid,24,999),GivePlayerWeapon(playerid,31,999),Set PlayerHealth(playerid,100),SetPlayerArmour(playeri d,100);
SendClientMessage(playerid,COLOR_YELLOW,"Bem-Vindo ao Bairro do Death Match(DM)! (by Wanderson)");

return 1;
}
PHP код:

if(strcmp("/bdd"cmdtexttrue4) == 0// 10 e igual o numero de caracteres entre "" no caso ae so tem 4 caracteres contando com a / puxa vida sera qe ninguem sabe disso ?
{
    
ResetPlayerWeapons(playerid);
    new 
name[MAX_PLAYER_NAME],string12[100];
    
GetPlayerName(playeridnamesizeof(name));
    
format(string12sizeof(string12), "[Teletransporte] %s foi para o Bairro do Death Match(DM) (/bdd)"name );
    
SendClientMessageToAll(COLOR_GRAD1string12);
    
SetPlayerPos(playerid,1554.7645,-1246.8375,279.3455);
    
SetPlayerInterior(playerid,0);
    
ResetPlayerWeapons(playerid),GivePlayerWeapon(play erid,24,999),GivePlayerWeapon(playerid,31,999),Set PlayerHealth(playerid,100),SetPlayerArmour(playeri d,100);
    
SendClientMessage(playerid,COLOR_YELLOW,"Bem-Vindo ao Bairro do Death Match(DM)! (by Wanderson)");
    return 
1;
}
/*esse warning e causado por conflito de variaveis assim trocando o nome de uma resolve!
return true = return 1
return false = return 0
eu gosto de citar isso acima por que antigamente eu me confundia muito com isso!
*/ 
Reply


Messages In This Thread
Ajuda meu GM, so tem um warning - by Wanderson_SAMP - 26.10.2012, 19:58
Re: Ajuda meu GM, so tem um warning - by Ouro - 26.10.2012, 19:59
Re: Ajuda meu GM, so tem um warning - by Q.I - 26.10.2012, 20:06
Re: Ajuda meu GM, so tem um warning - by Bruno Bastos - 26.10.2012, 20:08
Re: Ajuda meu GM, so tem um warning - by Wanderson_SAMP - 26.10.2012, 20:08
Re: Ajuda meu GM, so tem um warning - by Wanderson_SAMP - 26.10.2012, 20:11
Re: Ajuda meu GM, so tem um warning - by Bruno Bastos - 26.10.2012, 20:13
Re: Ajuda meu GM, so tem um warning - by Q.I - 26.10.2012, 20:18
Re: Ajuda meu GM, so tem um warning - by Wanderson_SAMP - 26.10.2012, 20:22
Re: Ajuda meu GM, so tem um warning - by TreePuncher - 26.10.2012, 20:27

Forum Jump:


Users browsing this thread: 1 Guest(s)