Identifier error
#1

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

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();
}

Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)