SA-MP Forums Archive
Identifier error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Identifier error (/showthread.php?tid=493852)



Identifier error - Lidor124 - 10.02.2014

What the fuck is wrong with that line? it seems okay with ; at the end...

Код:
C:\Users\Mor\Desktop\CGRP v1.00 0.3z RC4\gamemodes\CGRP.pwn(61139) : error 001: expected token: ";", but found "-identifier-"
line 61139:

Код:
Points[pointid][PointPickupID] = CreateDynamicPickup( 1239, 23, Points[pointid][Pointx], Points[pointid][Pointy], Points[pointid][Pointz]);
full code:

Код:
if (!strcmp(choice, "position", true))
        {
			new Float: slx, Float: sly, Float: slz;
			GetPlayerPos(playerid, slx, sly, slz);
			Points[pointid][Pointx] = slx;
			Points[pointid][Pointy] = sly;
			Points[pointid][Pointz] = slz;
			DestroyDynamicPickup(Points[pointid][PointPickupID])
			Points[pointid][PointPickupID] = CreateDynamicPickup( 1239, 23, Points[pointid][Pointx], Points[pointid][Pointy], Points[pointid][Pointz]);
			format(string, sizeof(string), "You have set point's ID %d position to X: %f Y: %f Z: %f", pointid, slx, sly, slz);
			SendClientMessageEx(playerid, COLOR_WHITE, string);
			UpdatePoints();
        }



Re: Identifier error - kbalor - 10.02.2014

I don't know what I did. Just give a try

Quote:

if (!strcmp(choice, "position", true))
{
new Float: slx, Float: sly, Float: slz;
GetPlayerPos(playerid, slx, sly, slz);
Points[pointid][Pointx] = slx;
Points[pointid][Pointy] = sly;
Points[pointid][Pointz] = slz;
DestroyDynamicPickup(Points[pointid][PointPickupID]);
Points[pointid][PointPickupID] = CreateDynamicPickup( 1239, 23, Points[pointid][Pointx], Points[pointid][Pointy], Points[pointid][Pointz]);
format(string, sizeof(string), "You have set point's ID %d position to X: %f Y: %f Z: %f", pointid, slx, sly, slz);
SendClientMessageEx(playerid, COLOR_WHITE, string);
UpdatePoints();
}




Re: Identifier error - SwisherSweet - 10.02.2014

Код:
Points[pointid][PointPickupID] = CreateDynamicPickup( 1239, 23, Points[pointid][Pointx], Points[pointid][Pointy], Points[pointid][Pointz], 0, 0, 0, 0);



Re: Identifier error - Lidor124 - 10.02.2014

Ty +REP
Issue fixed - i didnt pay attention for the DestroyDynamicPickup(Points[pointid][PointPickupID]) - it hasn't ;