[Ajuda] Contar quantos caracteres foram usados no params
#1

pawn Код:
new mensagem[100];
    if(!IsPlayerConnected(playerid) && !IsPlayerNPC(playerid) && gPlayerLogged[playerid] == 0)
        return SendClientMessage(playerid, -1, "Vocк nгo estб online.");
    if(PlayerInfo[playerid][pVip] == 0)
        return SendClientMessage(playerid, -1, "Vocк nгo й vip.");
    if(sscanf(params, "s[100]", mensagem))
        return SendClientMessage(playerid, -1, "USO: /an(uncio) [TEXTO DO ANUNCIO]");
Como contar quantos caracteres foram usados no params "s[100]" ?
Reply
#2

Reply
#3

Poderia me mostrar sу um exemplo de como contar o "mensagem" ali ? Vlw
Reply
#4

A prуpria wiki jб te da o exemplo.

pawn Код:
new strLenght = strlen(mensagem);
printf("Foi digitado um total de %d caracteres", strLenght);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)