Pickup probblem!
#1

Hello people i want to make script when player enter in pickup he teleport in building
but i have in pawno 3 erros plz help me what i need to change

Код:
new pickup;
new pickup1;
and now i added


Код:
pickup = CreatePickup(1276, 1,318.30764770508, -2247.7016601563, 19.656326293945, -1);
pickup1 = CreatePickup(1276, 1, 967.01745605469, -53.267635345459, 1000.6781005859, -1);
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup) SetPlayerPos(playerid, 967.01745605469, -53.267635345459, 1000.6781005859);
    if(pickupid == pickup1) SetPlayerPos(playerid, 318.30764770508, -2247.7016601563, 19.656326293945);
	return 1;
}
Reply
#2

Quote:
Originally Posted by [MD]Gangster
Посмотреть сообщение
Hello people i want to make script when player enter in pickup he teleport in building
but i have in pawno 3 erros plz help me what i need to change

Код:
new pickup;
new pickup1;
and now i added


Код:
pickup = CreatePickup(1276, 1,318.30764770508, -2247.7016601563, 19.656326293945, -1);
pickup1 = CreatePickup(1276, 1, 967.01745605469, -53.267635345459, 1000.6781005859, -1);
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup) SetPlayerPos(playerid, 967.01745605469, -53.267635345459, 1000.6781005859);
    if(pickupid == pickup1) SetPlayerPos(playerid, 318.30764770508, -2247.7016601563, 19.656326293945);
	return 1;
}
The errors?
Reply
#3

Quote:
Originally Posted by SparkZ_
Посмотреть сообщение
The errors?
Код:
 warning 202: number of arguments does not match definition
 warning 202: number of arguments does not match definition

2 Warnings.
Reply
#4

pawn Код:
new pickup;
new pickup1;
pawn Код:
pickup = CreatePickup(1276, 1,318.30764770508, -2247.7016601563, 19.656326293945, -1);
pickup1 = CreatePickup(1276, 1, 967.01745605469, -53.267635345459, 1000.6781005859, -1);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup)
    {
        //code


    }
    else if(pickupid == pickup1)
    {
        //code

    }
    return 1;
}
Reply
#5

Your coordinates is bad.
Reply
#6

Quote:
Originally Posted by maxas
Посмотреть сообщение
Your coordinates is bad.
Код:
    CreateObject(1276, 318.30764770508, -2247.7016601563, 19.656326293945, 0, 0, 2);
    CreateObject(1276, 967.01745605469, -53.267635345459, 1000.6781005859, 0, 0, 0);
Reply
#7

https://sampwiki.blast.hk/wiki/CreateObject
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)