Script problem
#1

Hello,

I've downloaded a Turn Indicator Filterscript not long ago and i edited it so it works with keyboard buttons but i've got a few errors.

Here's my compile :

Код:
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(66) : error 029: invalid expression, assumed zero
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(70) : warning 202: number of arguments does not match definition
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(71) : error 035: argument type mismatch (argument 1)
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(71) : error 033: array must be indexed (variable "gauche")
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(75) : error 029: invalid expression, assumed zero
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(79) : warning 202: number of arguments does not match definition
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(80) : error 035: argument type mismatch (argument 1)
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(80) : error 033: array must be indexed (variable "droite")
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(88) : warning 202: number of arguments does not match definition
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(89) : warning 213: tag mismatch
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(89) : error 033: array must be indexed (variable "gauche")
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(90) : warning 213: tag mismatch
I:\Users\Misume\Downloads\samp03dsvr_R2_win32\filterscripts\clig.pwn(90) : error 033: array must be indexed (variable "droite")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
And here's the script

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    new 
string[256];
    if (
PRESSED(KEY_LEFT))
    {
                            
SendClientMessage(playeridCOLOR_YELLOW"<<==== Gauche <<====");
                            
format(stringsizeof(string), "%s a mit son clignotant gauche"name);
                            
SendClientMessageToAll(COLOR_WHITE);
                            
gauche Create3DTextLabel(playerid"<<====");
                            return 
1;
                            }
    if (
PRESSED(KEY_RIGHT))
    {
                             
SendClientMessage(playeridCOLOR_YELLOW"====>> Droite ====>>");
                            
format(stringsizeof(string), "%s a mit son clignotant droite"name);
                            
SendClientMessageToAll(COLOR_WHITE);
                            
droite Create3DTextLabel(playerid"====>>");
                            return 
1;
                            }
                        if (
strcmp("/cligon"cmdtexttrue10) == 0)
            {
                    
SendClientMessage(playeridCOLOR_GREEN"Clignotant dйsactivй/activй");
                    
format(stringsizeof(string), "%s viens de dйsactiver/activer ses clignotants"name);
                    
SendClientMessageToAll(COLOR_WHITE);
                            
gauche Delete3DTextLabel(playerid);
                            
droite Delete3DTextLabel(playerid);
            }
            return 
1;
    } 
If you want to see anything else ask me


Thanks.
Reply
#2

i don't have much time to go over your script but i noticed that all of your
"SendClientMessageToAll" have only color... you suppose to add string to show...
for example:
Quote:

SendClientMessageToAll(COLOR_WHITE,"Hello");

Reply
#3

Errrrrrm?
pawn Код:
droite = Create3DTextLabel(playerid, "====>>");
Create3DTextLabel
Reply
#4

Thanks for help.

Fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)