GiftBox Problems
#4

Quote:
Originally Posted by Longover
Посмотреть сообщение
Hello!
I'm have a code:
Код:
GetObjectPos(19056, gx, gy, gz);
1.When i'm type /getgift,checkpoint is placed in center of the map[Why?]
Because you are using GetObjectPos with an object model, not the object id given by CreateObject

Quote:
Originally Posted by Longover
Посмотреть сообщение
Hello!
I'm have a code:
Код:
GetObjectPos(19056, gx, gy, gz);
Please store the object id like this:
Код:
new giftbox = CreateObject(19056, ...);
// ...
GetObjectPos(giftbox, gx, gy, gz);
https://sampwiki.blast.hk/wiki/GetObjectPos

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Код:
dcmd_getgift(playerid, params[])
{
	#pragma unused params
As stated above, you shouldn't use this...

Код:
dcmd_getgift(playerid) // If it doesn't need params, then why assign them...
{ //No more ugly Pragma bullshit
Because that will complain the macro?
Quote:

warning 202: number of arguments does not match definition

Reply


Messages In This Thread
GiftBox Problems - by Longover - 30.12.2017, 22:30
Re: GiftBox Problems - by Abagail - 30.12.2017, 23:03
Re: GiftBox Problems - by Sew_Sumi - 30.12.2017, 23:06
Re: GiftBox Problems - by RoboN1X - 30.12.2017, 23:32
Re: GiftBox Problems - by Sew_Sumi - 31.12.2017, 01:01
Re: GiftBox Problems - by Longover - 31.12.2017, 14:50

Forum Jump:


Users browsing this thread: 1 Guest(s)