help please
#1

how can i make a teleport marker i mean if you in a checkpoint you will be teliported or if you are in a arrow ? how can you do that?
Reply
#2

Код:
new tpickup;

OnGamemodeInit

 PickupNPC = CreatePickup(1239, 22,2218.6167,2444.5366,10.8203);

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == PickupNPC)
    {
        SetPlayerPos(lsakdadhas);
        SendClientMessage(playerid, COLOR_GREEN, "Y");

        return 1;  pickups
    }
Reply
#3

Quote:
Originally Posted by wheelman_WM
Посмотреть сообщение
Код:
new tpickup;

OnGamemodeInit

 PickupNPC = CreatePickup(1239, 22,2218.6167,2444.5366,10.8203);

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == PickupNPC)
    {
        SetPlayerPos(lsakdadhas);
        SendClientMessage(playerid, COLOR_GREEN, "Y");

        return 1;  pickups
    }
Dude not working help please
Reply
#4

Quote:
Originally Posted by jejemonerz123
Посмотреть сообщение
Dude not working help please
Tell us what's not working then ..
Reply
#5

Quote:
Originally Posted by jejemonerz123
Посмотреть сообщение
pickup1 = CreatePickup(1239, -206.2828, 3504.5945, 12.1000);
pickup2 = CreatePickup(1239, -228.5929, 3472.3557, 1.0790);
pickup3 = CreatePickup(1239, -228.6467, 3479.4548, 1.0790);
pickup4 = CreatePickup(1239, -211.9138, 3578.4888, 13.2000);
pickup5 = CreatePickup(1239, -83.5034, 3540.6436, 1.1000);
return 1;
}

public OnFilterScriptExit()
{
return 1;
}


#endif



public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/poolparty", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,-191.3820, 3491.9910, 12.4000);
SetPlayerHealth(playerid,50000);
SetPlayerArmour(playerid,100);
SetPlayerSkin(playerid,1;
return 1;
}
public OnPlayerPickupPickup(playerid, pickupid)
{
if(pickup1)
{
SetPlayerPos(playerid,-230.6653, 3472.3386, 1.0790);
return 1;
}
if(pickupid == pickup2)
{
SetPlayerPos(pickupid == playerid,-204.4142, 3504.6201, 12.1000);
return 1;
}
if(pickup3)
{
SetPlayerPos(pickupid == playerid,-209.8714, 3578.5115, 13.2000);
return 1;
}
if(pickup4)
{
SetPlayerPos(pickupid == playerid,-231.0251, 3479.3623, 1.0790);
return 1;
}
if(pickup5)
{
SetPlayerPos(pickupid == playerid,-87.4340, 3540.8777, 13.0000);
return 1;
}
return 0;
}
here is the error
Quote:
Originally Posted by jejemonerz123
Посмотреть сообщение
T:\My Documents\poolpartyawesome.pwn(12 : warning 213: tag mismatch
T:\My Documents\poolpartyawesome.pwn(12 : warning 202: number of arguments does not match definition
T:\My Documents\poolpartyawesome.pwn(129) : warning 213: tag mismatch
T:\My Documents\poolpartyawesome.pwn(129) : warning 202: number of arguments does not match definition
T:\My Documents\poolpartyawesome.pwn(130) : warning 213: tag mismatch
T:\My Documents\poolpartyawesome.pwn(130) : warning 202: number of arguments does not match definition
T:\My Documents\poolpartyawesome.pwn(131) : warning 213: tag mismatch
T:\My Documents\poolpartyawesome.pwn(131) : warning 202: number of arguments does not match definition
T:\My Documents\poolpartyawesome.pwn(132) : warning 213: tag mismatch
T:\My Documents\poolpartyawesome.pwn(132) : warning 202: number of arguments does not match definition
T:\My Documents\poolpartyawesome.pwn(156) : error 029: invalid expression, assumed zero
T:\My Documents\poolpartyawesome.pwn(156) : error 017: undefined symbol "OnPlayerPickupPickup"
T:\My Documents\poolpartyawesome.pwn(163) : warning 217: loose indentation
T:\My Documents\poolpartyawesome.pwn(163) : error 017: undefined symbol "pickupid"
T:\My Documents\poolpartyawesome.pwn(165) : error 017: undefined symbol "pickupid"
T:\My Documents\poolpartyawesome.pwn(170) : error 017: undefined symbol "pickupid"
T:\My Documents\poolpartyawesome.pwn(175) : error 017: undefined symbol "pickupid"
T:\My Documents\poolpartyawesome.pwn(180) : error 017: undefined symbol "pickupid"
T:\My Documents\poolpartyawesome.pwn(183) : warning 217: loose indentation
T:\My Documents\poolpartyawesome.pwn(185) : error 030: compound statement not closed at the end of file (started at line 14
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


8 Errors.
Reply
#6

Please pastebin your whole script.
Reply
#7

dude i cant give you
Reply
#8

Quote:
Originally Posted by jejemonerz123
Посмотреть сообщение
dude i cant give you
Well then, dude i cant help you.
Reply
#9

i sent you the link
Reply
#10

lol u nt defined the pickups

Exaple

new pickup;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)