Not implemented - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Not implemented (
/showthread.php?tid=138600)
Not implemented -
anumaz - 02.04.2010
I got an error 'PlayerToPoint is not implemented'
Here's the code:
Код:
if (!strcmp("/concessionnaire", cmdtext, true))
{
if (GetOwnedVehicleID(playerid) != INVALID_VEHICLE_ID) return SendClientMessage(playerid, RED, "You already own a vehicle!");
if (GetPlayerInterior(playerid) != 0) return SendClientMessage(playerid, RED, "You must not be in an interior"); // To prevent screw ups
if (PlayerToPoint(2.0, playerid,-208.6910,1220.8314,19.8906)) {
GetPlayerPos(playerid, OrgX[playerid], OrgY[playerid], OrgZ[playerid]);
GetPlayerFacingAngle(playerid, OrgA[playerid]);
new Float:X,Float:Y;
new color1 = CarColor[playerid][0];
new color2 = CarColor[playerid][1];
X = VEHSHOW_X;
Y = VEHSHOW_Y;
TogglePlayerControllable(playerid, false);
X -= (10.0 * floatsin(-VEHSHOW_A+90, degrees));
Y -= (10.0 * floatcos(-VEHSHOW_A+90, degrees));
SetPlayerCameraPos(playerid, X, Y, VEHSHOW_Z);
X += (10.0 * floatsin(-VEHSHOW_A+90, degrees));
Y += (10.0 * floatcos(-VEHSHOW_A+90, degrees));
SetPlayerCameraLookAt(playerid, X, Y, VEHSHOW_Z);
SetPlayerVirtualWorld(playerid, playerid);
ShopCar[playerid] = CreateVehicle(CarModels[0], VEHSHOW_X, VEHSHOW_Y, VEHSHOW_Z, 0.0, color1, color2, 6000000);
SetVehicleVirtualWorld(ShopCar[playerid], playerid);
PutPlayerInVehicle(playerid, ShopCar[playerid], 0);
TogglePlayerControllable(playerid, false);
CarShopping[playerid] = true;
SetTimerEx("BrowseCars", 300, 0, "d", playerid);
//SetTimerEx("FreezeCar", 100, 0, "d", playerid);
return 1;
}
}
I can't find the missing bracket, anyone have any ideas?
Re: Not implemented -
Mikep. - 02.04.2010
There are 2 closing brackets, and 1 opening one.
Re: Not implemented -
anumaz - 02.04.2010
No... there are two closing, two opening.
Re: Not implemented -
Mikep. - 02.04.2010
If you indented properly, you would be able to find the missing bracket in 10 seconds.
Re: Not implemented -
anumaz - 02.04.2010
I can't find it.
Re: Not implemented -
Mikep. - 02.04.2010
There are no missing brackets. It must be elsewhere.
Re: Not implemented -
anumaz - 02.04.2010
I've checked it all:
http://pastebin.com/sgyHssXg
Here are the errors/warnings:
Код:
C:\Users\Anthony\Desktop\concessionnaire.pwn(639) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\Anthony\Desktop\concessionnaire.pwn(655) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Anthony\Desktop\concessionnaire.pwn(727) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
Re: Not implemented -
¤Adas¤ - 02.04.2010
OMG, you don't have SA-MP 0.2 anymore.
Re: Not implemented -
anumaz - 02.04.2010
Eh... I don't have it, do I? Btw, just tell me how to fix my problem, please! And maybe a download link if I have the wrong version? :P
Re: Not implemented -
anumaz - 03.04.2010
So, how am I suppose to fix this problem? I don't see any missing brackets