[AJUDA]for(new i = 0; -
blackinhu214 - 14.09.2010
dae galera to com um problema aki...
seguinte eu fiz um comando aki pra setar o life de todos pra 100 ate ae tudo bem o problema eh nao funciona com o player id 0.
aki ta o code
pawn Код:
if(strcmp(cmdtext,"/eventodm",true)==0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerHealt(i, 100);
return 1;
}
}
se alguem sabe o q pode ser plz ajuda xD
vlw galera
Re: [AJUDA]for(new i = 0; -
StreetGT - 14.09.2010
para a proxima procura em antes de postar sff
https://sampforum.blast.hk/showthread.php?tid=155103
Respuesta: [AJUDA]for(new i = 0; -
ipsBruno - 14.09.2010
Era para funcionar!
pawn Код:
if(strcmp(cmdtext,"/eventodm",true)==0)
{
for(new i = 0; i <= MAX_PLAYERS; i++) {
SetPlayerHealt(i, 100);
SetPlayerHealt(0, 100);
}
return 1;
}
Respuesta: [AJUDA]for(new i = 0; -
BiieL - 14.09.2010
nao seria o SetPlayerHealth (i hate english, but i love and i can't speak this very well)
Re: Respuesta: [AJUDA]for(new i = 0; -
SuB_ZeRo0_ - 14.09.2010
Quote:
Originally Posted by [WinG]BiieL
nao seria o SetPlayerHealth (i hate english, but i love and i can't speak this very well)
|
Seria.. kkkkkk
pawn Код:
if(strcmp(cmdtext,"/eventodm",true)==0)
{
for(new i = 0; i <= MAX_PLAYERS; i++) {
SetPlayerHealth(i, 100);
}
return 1;
}
Respuesta: [AJUDA]for(new i = 0; -
BiieL - 14.09.2010
ou talvez SetPlayerHealt (sem h) eh um comando do carinha ali, para saber precisa-se aguardar a resposta dele :P
Re: Respuesta: [AJUDA]for(new i = 0; -
SuB_ZeRo0_ - 14.09.2010
Quote:
Originally Posted by [WinG]BiieL
ou talvez SetPlayerHealt (sem h) eh um comando do carinha ali, para saber precisa-se aguardar a resposta dele :P
|
Tenho quase 100% de certeza que ele nгo fez. xD
Quote:
seguinte eu fiz um comando aki pra setar o life de todos pra 100 ate ae tudo bem o problema eh nao funciona com o player id 0.
aki ta o code
|
Re: [AJUDA]for(new i = 0; -
blackinhu214 - 14.09.2010
dae vlw por tentarem ajudar xD
pq eu nao fiz? lol...
bom de qualqr jeito descobri uma coisa aki o code ta assim
pawn Код:
if(strcmp(cmdtext,"/darvidaall",true)==0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerHealTH(i, 100);//bom agora com o TH? xD
SendClientMessage(i,COLOR_RED,"Voce foi curado");
return 1;
}
}
blz assim nao vai
agora se eu tirar o return 1; e por entre as 2 ultimas chaves funciona mais a msg fik se repetindo direto =p
tem como resolver isso de algum jeito?
Re: [AJUDA]for(new i = 0; -
Gustavob - 14.09.2010
pawn Код:
if(strcmp(cmdtext,"/darvidaall",true)==0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerHealth(i, 100);
}
SendClientMessage(i,COLOR_RED,"Voce foi curado");
return 1;
}
nao tenho certeza mas acho q vai funcionar normal, tenta ;]
Re: [AJUDA]for(new i = 0; -
SuB_ZeRo0_ - 14.09.2010
Quote:
Originally Posted by Gustavob
pawn Код:
if(strcmp(cmdtext,"/darvidaall",true)==0) { for(new i = 0; i < MAX_PLAYERS; i++) { SetPlayerHealth(i, 100); } SendClientMessage(i,COLOR_RED,"Voce foi curado"); return 1; }
nao tenho certeza mas acho q vai funcionar normal, tenta ;]
|
Nгo, o i faz parte do loop, fora darб undefined symbol.
Use SendClientMessageToAll, mais facil entгo.