Filescript Help - Errors
#1

Hello guys! I have those errors...

Quote:

C:\Users\AnaC\Desktop\supmobil.pwn(238 ) : error 029: invalid expression, assumed zero
C:\Users\AnaC\Desktop\supmobil.pwn(238 ) : warning 215: expression has no effect
C:\Users\AnaC\Desktop\supmobil.pwn(238 ) : error 001: expected token: ";", but found ")"
C:\Users\AnaC\Desktop\supmobil.pwn(238 ) : error 029: invalid expression, assumed zero
C:\Users\AnaC\Desktop\supmobil.pwn(238 ) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Lines:
Quote:

234: new Float, Float:y, Float:z;
235: GetPlayerPos(playerid, x, y, z);
236: new car = AddStaticVehicle(480,x,y,z,1.0290,159,160) ;
237: PutPlayerInVehicle(playerid,car,0);
238: SendClientMessage(playerid, Gelb, "Du hast dir einen Cometen gespawnt");
239: sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100); 240:AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.5,0.0,0.85,0,0,0);
241: UCL[GetPlayerVehicleID(playerid)] = 1;
242: }

FIX IT AND COMMENT IT ON A REPLY
Reply
#2

pawn Код:
Gelb
Is it colours?
Reply
#3

yes
Gelb means Yellow
Reply
#4

do you define it?
pawn Код:
#define Gelb  0xFFFF00AA
Reply
#5

Quote:
Originally Posted by Giroud12
Посмотреть сообщение
do you define it?
pawn Код:
#define Gelb  0xFFFF00AA
My latest errors:
Quote:

C:\Users\AnaC\Desktop\supmobil.pwn(239) : error 029: invalid expression, assumed zero
C:\Users\AnaC\Desktop\supmobil.pwn(239) : error 001: expected token: ";", but found "]"
C:\Users\AnaC\Desktop\supmobil.pwn(239) : error 029: invalid expression, assumed zero
C:\Users\AnaC\Desktop\supmobil.pwn(239) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Line 239: sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
Reply
#6

try
pawn Код:
sirene1[GetPlayerVehicleID(playerid)]; = CreateObject(18646,0,0,0,0,0,0,100);
;
Reply
#7

Quote:
Originally Posted by Giroud12
Посмотреть сообщение
try
pawn Код:
sirene1[GetPlayerVehicleID(playerid)]; = CreateObject(18646,0,0,0,0,0,0,100);
;
Same...

Quote:

C:\Users\AnaC\Desktop\supmobil.pwn(239) : error 029: invalid expression, assumed zero
C:\Users\AnaC\Desktop\supmobil.pwn(239) : error 001: expected token: ";", but found "]"
C:\Users\AnaC\Desktop\supmobil.pwn(239) : error 029: invalid expression, assumed zero
C:\Users\AnaC\Desktop\supmobil.pwn(239) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Reply
#8

pawn Код:
sirene1[GetPlayerVehicleID(playerid);] = CreateObject(18646,0,0,0,0,0,0,100);
This??
Reply
#9

Quote:
Originally Posted by Giroud12
Посмотреть сообщение
pawn Код:
sirene1[GetPlayerVehicleID(playerid);] = CreateObject(18646,0,0,0,0,0,0,100);
This??
Errors:
Quote:

C:\Users\AnaC\Desktop\supmobil.pwn(239) : error 029: invalid expression, assumed zero
C:\Users\AnaC\Desktop\supmobil.pwn(239) : error 029: invalid expression, assumed zero
C:\Users\AnaC\Desktop\supmobil.pwn(240) : error 029: invalid expression, assumed zero
C:\Users\AnaC\Desktop\supmobil.pwn(240) : error 001: expected token: ";", but found "]"
C:\Users\AnaC\Desktop\supmobil.pwn(240) : error 029: invalid expression, assumed zero
C:\Users\AnaC\Desktop\supmobil.pwn(240) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.

Please add me on skype: gregor.kouk
Reply
#10

pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new car = AddStaticVehicle(480,x,y,z,1.0290,159,160) ;
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid, Gelb, "Du hast dir einen Cometen gespawnt");
sirene1 = CreateObject(18646,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene1,car,-0.5,0.0,0.85,0,0,0);
so, it will be

pawn Код:
#define Gelb  0xFFFF00AA


new sirene1;



CMD:attachobject(playerid, params[])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new car = AddStaticVehicle(480,x,y,z,1.0290,159,160) ;
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid, Gelb, "Du hast dir einen Cometen gespawnt");
sirene1 = CreateObject(18646,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene1,car,-0.5,0.0,0.85,0,0,0);
return 1;

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)