Help here a bit +rep -
N0FeaR - 24.02.2012
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");
}
}
Re: Help here a bit +rep -
N0FeaR - 24.02.2012
Anyone know? appreciate if anyone can help me.
Re: Help here a bit +rep -
dice7 - 24.02.2012
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?
Re: Help here a bit +rep -
N0FeaR - 24.02.2012
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);
}
}
Re: Help here a bit +rep -
dice7 - 24.02.2012
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
Re: Help here a bit +rep -
N0FeaR - 24.02.2012
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
Re: Help here a bit +rep -
dice7 - 24.02.2012
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;
}
Re: Help here a bit +rep -
N0FeaR - 24.02.2012
Thank i will test this