OnPlayerKeyStateChange Problem
#3

Oh lol i didn't see that thank you ! Now i got this error

Код:
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.
And the script :

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if (
PRESSED(KEY_LEFT)) // here is the error
    
{
                            
SendClientMessage(playeridCOLOR_YELLOW"Vous mettez les clignotants gauche");
                            
format(stringsizeof(string), "** %s met son clignotant gauche.."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            
gauche[playerid] = Create3DTextLabel("<<== Clignotant gauche <<==",0x008B00FF,0,0,0,50,-1,1);
                            
Attach3DTextLabelToPlayer(gauche[playerid], playerid0,0,0);
                            return 
1;
                            }
    if (
PRESSED(KEY_RIGHT)) // here is the error
    
{
                             
SendClientMessage(playeridCOLOR_YELLOW"Vous mettez les clignotants droite");
                            
format(stringsizeof(string), "** %s met son clignotant droite.."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            
droite[playerid] = Create3DTextLabel("==>> Clignotant droite ==>>",0x008B00FF,0,0,0,50,-1,1);
                            
Attach3DTextLabelToPlayer(gauche[playerid], playerid0,0,0);
                            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: 2 Guest(s)