error 001: expected token: ";", but found "-identifier-"
#1

I have this error and warning:
Код:
C:\Users\blank\Documents\Personal Things\GTA files\GTA SA files\SAMP\gamemodes\X-tremeFreeRoam.pwn(143) : error 001: expected token: ";", but found "-identifier-"
C:\Users\blank\Documents\Personal Things\GTA files\GTA SA files\SAMP\gamemodes\X-tremeFreeRoam.pwn(2901) : warning 202: number of arguments does not match definition
C:\Users\blank\Documents\Personal Things\GTA files\GTA SA files\SAMP\gamemodes\X-tremeFreeRoam.pwn(2910) : warning 202: number of arguments does not match definition
Line 143: health1 = CreatePickup(1240, 2, 2000.5692,1550.5258,13.6088, -1);
Line 2901: if(IsPlayerInRangeOfPoint(playerid, 20, 2476.5989,-1655.3254,13.3279,103.7772))//Checking if the player in the range of the gate
Line 2910:if(IsPlayerInRangeOfPoint(playerid, 20, 2446.9636,-1661.8767,13.3047,271.1472))//Checking if the player in the range of the gate
Reply
#2

IsPlayerInRangeOfPoint Parameters: playerid, range , X , Y , Z
you also added player angle...
change it to :

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 20, 2476.5989,-1655.3254,13.3279))
if(IsPlayerInRangeOfPoint(playerid, 20, 2446.9636,-1661.8767,13.3047))

also show your 142th and 144th line...
Reply
#3

Line 142://End of line of gate in grove street
Line 144: health2 = CreatePickup(1240, 2, 2295.8291,2451.6721,10.8203, -1);

*note: line 142 is a comment/note for me to know which line is the end of that one mapping.
Reply
#4

Line 2901: if(IsPlayerInRangeOfPoint(playerid, 20, 2476.5989,-1655.3254,13.3279,103.7772))//Checking if the player in the range of the gate

Change to
Код:
if(IsPlayerInRangeOfPoint(playerid, 20.00, 2476.5989,-1655.3254,13.3279,103.7772))//Checking if the player in the range of the gate
Line 2910:if(IsPlayerInRangeOfPoint(playerid, 20, 2446.9636,-1661.8767,13.3047,271.1472))//Checking if the player in the range of the gate

Change to :
Код:
if(IsPlayerInRangeOfPoint(playerid, 20.00, 2446.9636,-1661.8767,13.3047,271.1472))//Checking if the player in the range of the gate
IsPlayerInRangeOfPoint(playerid, Float:range, Float, Float:y, Float:z)
You must use Float for "range" parameter
Reply
#5

Have you done this:

new health1; // Put this out of callbacks somewhere at the top of the script

and than: health1 = CreatePickup(1240, 2, 2000.5692,1550.5258,13.6088, -1);
Reply
#6

so somewhere you forgot to add " ; " at the end of a function or...

check your code
Reply
#7

For your info NoDi522, sir, the entire health pickup paragraph is together with the armour pickup paragraph,
Код:
    health1 = CreatePickup(1240, 2, 2000.5692,1550.5258,13.6088, -1);
    health2 = CreatePickup(1240, 2, 2295.8291,2451.6721,10.8203, -1);
    health3 = CreatePickup(1240, 2, 2815.1177,2220.7527,10.8203, -1);
    health4 = CreatePickup(1240, 2, 2512.2412,-1689.4377,13.5462, -1);
    health5 = CreatePickup(1240, 2, 1952.9031,-2178.9592,13.5469, -1);
    health6 = CreatePickup(1240, 2, 379.1831,-2021.0963,7.8301, -1);
    health7 = CreatePickup(1240, 2, -2026.8362,157.8332,29.0391, -1);
    health8 = CreatePickup(1240, 2, -2026.7570,155.7559,29.0391, -1);
    health9 = CreatePickup(1240, 2, 416.1350,2531.0210,19.1743, -1);
    health10 = CreatePickup(1240, 2, -2244.9875,-1747.1136,480.1212, -1);
    health11 = CreatePickup(1240, 2, -2246.2415,-1741.2682,479.5885, -1);
    armour1 = CreatePickup(1242, 2, 2537.3953,1840.4320,10.8203, -1);
    armour2 = CreatePickup(1242, 2, 1714.5308,1591.5752,10.2819, -1);
    armour3 = CreatePickup(1242, 2, 2414.6643,1122.1198,10.8203, -1);
    armour4 = CreatePickup(1242, 2, 1512.3834,-1651.6810,13.5469, -1);
    armour5 = CreatePickup(1242, 2, 2794.0193,-2019.4633,13.5547, -1);
    armour6 = CreatePickup(1242, 2, 1178.3281,-2036.8881,69.0078, -1);
    armour7 = CreatePickup(1242, 2, -2026.8362,157.8332,29.0391, -1);
    armour8 = CreatePickup(1242, 2, -1541.0465,-436.3874,6.0000, -1);
    armour9 = CreatePickup(1242, 2, -2160.3352,-406.5087,35.3359, -1);
    armour10 = CreatePickup(1242, 2, -2246.2415,-1741.2682,479.5885, -1);
    armour11 = CreatePickup(1242, 2, 423.6602,2533.0632,16.5793, -1);
Reply
#8

as for the callback line here it is:
Код:
new health1, health2, health3, health4, health5, health6, health7, health8, health9, health10, health11;
new armour1, armour2, armour3, armour4, armour5, armour6, armour7, armour8, armour9, armour10, armour11;
new PickupedPickups[MAX_PLAYERS];
Reply
#9

Agh this is weird
this is before change:
Код:
//End of line of gate in grove street
	health1 = CreatePickup(1240, 2, 2000.5692,1550.5258,13.6088, -1);
with the error still there, but after the change:
Код:
//End of line of gate in grove street
	;
	health1 = CreatePickup(1240, 2, 2000.5692,1550.5258,13.6088, -1);
no more errors, solved
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)