25.03.2012, 14:06
Oh lol i didn't see that thank you ! Now i got this error
And the script :
Код:
I:\Users\Misume\Documents\samp03dsvr_R2_win32\filterscripts\clig.pwn(107) : error 029: invalid expression, assumed zero I:\Users\Misume\Documents\samp03dsvr_R2_win32\filterscripts\clig.pwn(117) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_LEFT)) // here is the error
{
SendClientMessage(playerid, COLOR_YELLOW, "Vous mettez les clignotants gauche");
format(string, sizeof(string), "** %s met son clignotant gauche..", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
gauche[playerid] = Create3DTextLabel("<<== Clignotant gauche <<==",0x008B00FF,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(gauche[playerid], playerid, 0,0,0);
return 1;
}
if (PRESSED(KEY_RIGHT)) // here is the error
{
SendClientMessage(playerid, COLOR_YELLOW, "Vous mettez les clignotants droite");
format(string, sizeof(string), "** %s met son clignotant droite..", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
droite[playerid] = Create3DTextLabel("==>> Clignotant droite ==>>",0x008B00FF,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(gauche[playerid], playerid, 0,0,0);
return 1;
}
return 0;
}