OBJECT PROBLEM - 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: OBJECT PROBLEM (
/showthread.php?tid=295683)
OBJECT PROBLEM -
jiwan - 07.11.2011
hi everyone
i have made this so far i want that plane to move over the head of the person who uses command /show
but when i go in-game and try i don't see any plane but >> this it shows me on chat :>> "Warning(Opencode 0x107):Exception 0xC0000005 at 0x59F8B4"
i don't know what is this can you please help me with this error !!
pawn Код:
// this on on top
new Float: X;
new Float: Y;
new Float: Z;
new Nevada[MAX_PLAYERS];
// this is on my command
if(!strcmp (cmdtext, "/show", true, 5))
{
GetPlayerPos(playerid,X,Y,Z);
Nevada[playerid] = CreateObject(553,BombX-55,BombY,BombZ+75,0.000000,0.000000,90);
MoveObject(Nevada[playerid],X+250,Y,Z+75,30);
return 1;
}
Re: OBJECT PROBLEM -
Kostas' - 07.11.2011
Wait, you have at the top
and at your code
Re: OBJECT PROBLEM -
jiwan - 07.11.2011
oh!! sorry man but i posted wrong if it will be this then my .pwn will not compile sorry for the wrong post i have corrected it but this do not solve my problem ??
AW: OBJECT PROBLEM -
Drebin - 07.11.2011
You want to create a vehicle with CreateObject(); (553 = vehicle ID for Nevada)
CreateObject is for OBJECTS only.
Re: OBJECT PROBLEM -
jiwan - 07.11.2011
so what should i do ?
AW: OBJECT PROBLEM -
Drebin - 07.11.2011
Replace the vehicle ID you entered with the ID of a plane object.
Re: OBJECT PROBLEM -
jiwan - 07.11.2011
oook but what is id for that ??
AW: OBJECT PROBLEM -
Drebin - 07.11.2011
Use this map editor:
https://sampforum.blast.hk/showthread.php?tid=282801
Or Multi Theft Auto (program) to look through all objects and see if you can find one.
Re: AW: OBJECT PROBLEM -
jiwan - 07.11.2011
Quote:
Originally Posted by Drebin
|
nice but i am already using this
BTW where can i find a Navada id in editor
eh!!! do you mean to cycle through all the objects in editor ??
Re: OBJECT PROBLEM -
Kostas' - 07.11.2011
Vehicle ID: 553
Vehicle Name: Nevada
If this you are looking for