[Ajuda] Carro Proprio
#4

Exemplo tosco e sem sentido.
pawn Код:
stock CompararNomes(playerid, OutroID){

    new NomePlayer[MAX_PLAYER_NAME], NomeOutroID[MAX_PLAYER_NAME];
    GetPlayerName(playerid, NomePlayer, MAX_PLAYER_NAME);
    GetPlayerName(OutroID, NomeOutroID, MAX_PLAYER_NAME);

    if(!strcmp(NomePlayer, NomeOutroID))
        return SendClientMessage(playerid, -1, "Nomes iguais!");

    else return SendClientMessage(playerid, -1, "Nomes diferentes!");

    return true;
}

Usando:

pawn Код:
CMD:compararmeunome(playerid, params[]{
    if(isnull(params))
        return SendClientMessage(playerid, -1, "Uso: /compararmeunome [Outro Id]");
    CompararNomes(playerid, strval(params));
    return true;
}
Reply


Messages In This Thread
Carro Proprio - by iCracker - 16.05.2013, 04:42
Re: Carro Proprio - by Gii - 16.05.2013, 05:45
Re: Carro Proprio - by iCracker - 16.05.2013, 06:20
Re: Carro Proprio - by Gii - 16.05.2013, 12:12
Re: Carro Proprio - by iCracker - 16.05.2013, 21:01
Re: Carro Proprio - by Don_Speed - 16.05.2013, 21:21
Re: Carro Proprio - by iCracker - 16.05.2013, 21:51

Forum Jump:


Users browsing this thread: 1 Guest(s)