Errors -
Serux - 17.10.2010
Im sorry to ask for help with this, but when i try to compile my script i get this
So can anyone help me with it?
C:\Users\James\Desktop\Project\Roleplayv1.pwn(977) : error 001: expected token: "-identifier-", but found "["
C:\Users\James\Desktop\Project\Roleplayv1.pwn(980) : error 029: invalid expression, assumed zero
C:\Users\James\Desktop\Project\Roleplayv1.pwn(980) : error 035: argument type mismatch (argument 1)
C:\Users\James\Desktop\Project\Roleplayv1.pwn(980) : error 020: invalid symbol name ""
C:\Users\James\Desktop\Project\Roleplayv1.pwn(980) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Re: Errors -
whitedragon - 17.10.2010
Show us lines 976-982
Re: Errors -
Serux - 17.10.2010
{
new tmp[255];
TankString[playerid]=string;
TextDrawDestroy(medidorTanque[playerid]);
format(tmp, sizeof(tmp), "%s %s",TankString[playerid],SpeedString[playerid]);
medidorTanque[playerid] = TextDrawCreate(500.0, 100.0,tmp);
TextDrawFont(medidorTanque[playerid],3);
Re: Errors -
Mauzen - 17.10.2010
80% a missing/misplaced bracket somewhere before those lines.
Re: Errors -
whitedragon - 17.10.2010
make size to 256.. but it's weard... he should work..
TankString is MAX_PLAYERS right?
Re: Errors -
Serux - 17.10.2010
Hmm
Mabey this will help
Lines 975 - 988
actualizarMedidor(playerid,string[255])
{
new tmp[255];
TankString[playerid]=string;
TextDrawDestroy(medidorTanque[playerid]);
format(tmp, sizeof(tmp), "%s %s",TankString[playerid],SpeedString[playerid]);
medidorTanque[playerid] = TextDrawCreate(500.0, 100.0,tmp);
TextDrawFont(medidorTanque[playerid],3);
TextDrawColor(medidorTanque[playerid], COLOR_GREEN);
TextDrawLetterSize(medidorTanque[playerid], 1, 1.33);
TextDrawTextSize(medidorTanque[playerid], 50.0, 35.0);
TextDrawSetOutline(medidorTanque[playerid],1);
TextDrawShowForPlayer(playerid,medidorTanque[playerid]);
}
Re: Errors -
whitedragon - 17.10.2010
should it be actualizarMedidor(playerid,string[]) ?
Re: Errors -
Serux - 17.10.2010
Well, i have tryed it, and still the same errors
Re: Errors -
whitedragon - 22.10.2010
what it should do?
Re: Errors -
LarzI - 22.10.2010
Quote:
Originally Posted by whitedragon
should it be actualizarMedidor(playerid,string[]) ?
|
That's true.
You can't set string like integers (variable = string

You have to either format it, or use strmid or anything else that would work.
pawn Код:
strmid( TankString, string, 0, 255 );