OnPlayerKeyStateChange Problem
#2

When I indent your code propertly see what I have:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/cligon", cmdtext, true, 10) == 0)
    {
        format(string, sizeof(string), "%s viens d'activer/dйsactiver ses clignotants", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SendClientMessage(playerid, COLOR_GREEN, "Clignotant dйsactivй/activй");
        Delete3DTextLabel(gauche[playerid]);
        Delete3DTextLabel(droite[playerid]);
        return 1;
}
See?

Replace that with this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/cligon", cmdtext, true, 10) == 0)
    {
        format(string, sizeof(string), "%s viens d'activer/dйsactiver ses clignotants", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SendClientMessage(playerid, COLOR_GREEN, "Clignotant dйsactivй/activй");
        Delete3DTextLabel(gauche[playerid]);
        Delete3DTextLabel(droite[playerid]);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
OnPlayerKeyStateChange Problem - by Mearu - 25.03.2012, 13:31
Re: OnPlayerKeyStateChange Problem - by [MG]Dimi - 25.03.2012, 13:58
Re : OnPlayerKeyStateChange Problem - by Mearu - 25.03.2012, 14:06
Re: OnPlayerKeyStateChange Problem - by emokidx - 25.03.2012, 14:21
Re : OnPlayerKeyStateChange Problem - by Mearu - 25.03.2012, 15:06
Re: Re : OnPlayerKeyStateChange Problem - by 2KY - 25.03.2012, 15:10

Forum Jump:


Users browsing this thread: 4 Guest(s)