OBJECT PROBLEM
#1

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

Wait, you have at the top
pawn Код:
Float: X;
and at your code
pawn Код:
BombX-55
Reply
#3

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 ??
Reply
#4

You want to create a vehicle with CreateObject(); (553 = vehicle ID for Nevada)
CreateObject is for OBJECTS only.
Reply
#5

so what should i do ?
Reply
#6

Replace the vehicle ID you entered with the ID of a plane object.
Reply
#7

oook but what is id for that ??
Reply
#8

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.
Reply
#9

Quote:
Originally Posted by Drebin
Посмотреть сообщение
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.
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 ??
Reply
#10

Vehicle ID: 553
Vehicle Name: Nevada

If this you are looking for
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)