Errors
#1

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.
Reply
#2

Show us lines 976-982
Reply
#3

{
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);
Reply
#4

80% a missing/misplaced bracket somewhere before those lines.
Reply
#5

make size to 256.. but it's weard... he should work..
TankString is MAX_PLAYERS right?
Reply
#6

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]);
}
Reply
#7

should it be actualizarMedidor(playerid,string[]) ?
Reply
#8

Well, i have tryed it, and still the same errors
Reply
#9

what it should do?
Reply
#10

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 );
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)