SA-MP Forums Archive
[Ajuda] Como arrumar isso ..... - 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] Como arrumar isso ..... (/showthread.php?tid=497840)



Como arrumar isso ..... - LucasTadeu - 28.02.2014

Alguem sabe como eu arrumo isso ? Ja tentei arrumar mas nгo deu :/ ...




Re: Como arrumar isso ..... - N3XTMapper - 28.02.2014

Posta o cуdigo


Re: Como arrumar isso ..... - yNexus - 28.02.2014

manda o cуdigo, mais й por isso aqui:

PHP Code:
cmdtext,1,strlen(cmdtext)); 
almente para 6

PHP Code:
cmdtext,6,strlen(cmdtext)); 



Re: Como arrumar isso ..... - LucasTadeu - 28.02.2014

Code:
if(strcmp(cmd,"/tmega",true)==0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file, "Profissao") == Temac) {
new tmp[128];
//new msg[256];
strmid(tmp,cmdtext,2,strlen(cmdtext));
if(!strlen(tmp)) {
SendClientMessage(playerid,LARANJA, "Digite: /tmega [texto]");
return 1;
} else {
format(string, sizeof(string), "O Temac %s diz: %s ", aname, tmp);
SendClientMessageToAll(C_Temac,string);
return 1;
}
}else{
SendClientMessage(playerid,Vermelho,"(ERRO) Vocк nгo tem permissгo!");
return 1;
}
}

if(strcmp(cmd,"/v",true)==0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(vip[playerid] == 1) {
new tmp[256];
//new msg[256];
strmid(tmp,cmdtext,2,strlen(cmdtext));
if(!strlen(tmp)) {
SendClientMessage(playerid,LARANJA, "Digite: /v [texto]");
return 1;
} else {
format(string, sizeof(string), "O VIP Anuncia %s diz: %s ", aname, tmp);
SendClientMessageToAll(C_Mecanico,string);
return 1;
}
}else{
SendClientMessage(playerid,Vermelho,"(ERRO) Vocк nгo tem permissгo!");
return 1;
}
}



Re: Como arrumar isso ..... - LucasTadeu - 28.02.2014

Vlw deu certo yNexus


Re: Como arrumar isso ..... - N3XTMapper - 28.02.2014

Faz o que o yNexus disse acima e resolverб