Help here a bit +rep
#1

Here problem with checkpoint

Код:
C:\Users\Robin\Desktop\New folder\gamemodes\test.pwn(1118) : error 020: invalid symbol name ""
C:\Users\Robin\Desktop\New folder\gamemodes\test.pwn(1118) : error 036: empty statement
C:\Users\Robin\Desktop\New folder\gamemodes\test.pwn(1118) : error 017: undefined symbol "i"
C:\Users\Robin\Desktop\New folder\gamemodes\test.pwn(1118) : fatal error 107: too many error messages on one line
here code

pawn Код:
}
    for(new i = 0; i < sizeof(247); i++)
    {
        if(PlayerToPoint(2.0,playerid,2.1507,-29.0139,1003.5494))
        {
            ShowPlayerDialog(playerid, 752, DIALOG_STYLE_LIST, "Welcome", "Radio($150) \nBaseballbat($10) \nToolkit($35) \nCigarettes($7) \nLighter($5) \nScratch Card($35) \nGas Can($50) \nMask($250) \nShovel($7) \nCellphone($50) \nCards($25) \nDice($2) \nParachute($15)\nCane($5)\nCamera($45)", "Buy", "Cancel");
        }
    }
Reply
#2

Anyone know? appreciate if anyone can help me.
Reply
#3

pawn Код:
for(new i = 0; i < 247; i++)
    {
        if(PlayerToPoint(2.0,i,2.1507,-29.0139,1003.5494))
        {
            ShowPlayerDialog(i, 752, DIALOG_STYLE_LIST, "Welcome", "Radio($150) \nBaseballbat($10) \nToolkit($35) \nCigarettes($7) \nLighter($5) \nScratch Card($35) \nGas Can($50) \nMask($250) \nShovel($7) \nCellphone($50) \nCards($25) \nDice($2) \nParachute($15)\nCane($5)\nCamera($45)", "Buy", "Cancel");
        }
    }
What are you even trying to do?
Reply
#4

try to make a red checkpoint inside 24/7. but when i got inside there is nothing there how can i make that here the code

this is the code
Код:
	}
	for(new i = 0; i < 247; i++)
	{
	    if(PlayerToPoint(2.0,playerid,2.1507,-29.0139,1003.5494))
	    {
	        ShowPlayerDialog(playerid, 752, DIALOG_STYLE_LIST, "Welcome", "Radio($150) \nBaseballbat($10) \nToolkit($35) \nCigarettes($7) \nLighter($5) \nScratch Card($35) \nGas Can($50) \nMask($250) \nShovel($7) \nCellphone($50) \nCards($25) \nDice($2) \nParachute($15)\nCane($5)\nCamera($45)", "Buy", "Cancel");
	        SetPlayerCheckpoint(playerid, 2.1507,-29.0139,1003.5494, 2.0);
    	}
	}
Reply
#5

pawn Код:
public OnPlayerConnect(playerid)
{
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, 2.1507,-29.0139,1003.5494, 2.0);
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    ShowPlayerDialog(playerid, 752, DIALOG_STYLE_LIST, "Welcome", "Radio($150) \nBaseballbat($10) \nToolkit($35) \nCigarettes($7) \nLighter($5) \nScratch Card($35) \nGas Can($50) \nMask($250) \nShovel($7) \nCellphone($50) \nCards($25) \nDice($2) \nParachute($15)\nCane($5)\nCamera($45)", "Buy", "Cancel");
}
Note that you can only have one checkpoint at a time. Unless you use a checkpoint streamer
Reply
#6

But when im outside the 24/7 i can see the red marker on map how can i remove it? so is only when im inside 24/7 look at pic

Reply
#7

pawn Код:
#include <a_samp>

public OnPlayerConnect(playerid)
{
    DisablePlayerCheckpoint(playerid);
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    ShowPlayerDialog(playerid, 752, DIALOG_STYLE_LIST, "Welcome", "Radio($150) \nBaseballbat($10) \nToolkit($35) \nCigarettes($7) \nLighter($5) \nScratch Card($35) \nGas Can($50) \nMask($250) \nShovel($7) \nCellphone($50) \nCards($25) \nDice($2) \nParachute($15)\nCane($5)\nCamera($45)", "Buy", "Cancel");
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    if (oldinteriorid == /*interior id of 24/7*/)
    {
        DisablePlayerCheckpoint(playerid);
    }
    if (newinteriorid == /*interior id of 24/7*/)
    {
        SetPlayerCheckpoint(playerid, 2.1507,-29.0139,1003.5494, 2.0);
    }
    return 1;
}
Reply
#8

Thank i will test this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)