25.03.2012, 13:58
When I indent your code propertly see what I have:
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;
}
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;
}