29.01.2012, 22:05
pawn Код:
new index;
new tmp[256];
tmp = strtok(cmdtext, index);
if(strcmp(cmd, "/an", true) == 0)
{
new val = strval(tmp);
new anuncio[256];
new anunciado[256];
if(GetPlayerMoney(playerid) > 250)
{
format(anunciado,sizeof anunciado,"%s",val);
format(anuncio, sizeof anuncio, "%s Anunciou: %s",String,anunciado);
SendClientMessageToAll(VERDE,"*--------------------------------------------*");
SendClientMessageToAll(AMARELO, anuncio);
SendClientMessage(playerid,VERMELHO,"Esse anuncio custou 250 R$");
GivePlayerMoney(playerid,-250);
}
else
{
SendClientMessage(playerid,VERMELHO,"Vocк nгo tem dinheiro para anunciar");
}
return 1;
}
return 1;
}
quando eu digito /an [texto]
aparece:
*-----------------------------------*
NOME Anunciou: ??
Este anuncio le custou 250 R$
Onde ta ?? й a mesma coisa que nada, eu digito o texto mas nгo sai nada
desde jб agradeзo !