[HELP]Eror 017 PWN
#1

When I Delete Map, And I Copy To pwn .

Код:
RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25);
RemoveBuildingForPlayer(playerid, 4044, 1481.1875, -1785.0703, 22.3828, 0.25);
RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
RemoveBuildingForPlayer(playerid, 3980, 1481.1875, -1785.0703, 22.3828, 0.25);
RemoveBuildingForPlayer(playerid, 4003, 1481.0781, -1747.0313, 33.5234, 0.25);
And Pwn
Код:
Erorerror 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
Anyone Can Help Me?
Reply
#2

Where the hell are you putting it? Learn basic scripting before asking for help. You are putting it somewhere that playerid isn't specified. If you want the buildings to be removed when the player enters, or when the gamemode starts (impossible) just place that code under OnPlayerConnect.

pawn Код:
public OnGameModeInit()
{
    //Wrong, no playerid parameter
   
public OnPlayerConnect(playerid) //Playerid parameter
{
    //Correct
Reply
#3

Quote:
Originally Posted by Kindred
Посмотреть сообщение
Where the hell are you putting it? Learn basic scripting before asking for help. You are putting it somewhere that playerid isn't specified. If you want the buildings to be removed when the player enters, or when the gamemode starts (impossible) just place that code under OnPlayerConnect.

pawn Код:
public OnGameModeInit()
{
    //Wrong, no playerid parameter
   
public OnPlayerConnect(playerid) //Playerid parameter
{
    //Correct
Where I Put That Pawn Code?
Reply
#4

Not even going to tell you, because you cannot even understand basic shit.

Put. The. RemoveBuildingForPlayer. Under. OnPlayerConnect. Or. Somewhere. With. Playerid. As. A. Parameter.

Capisce?
Reply
#5

You need a function that has the playerid param.
Such as OnPlayerSpawn or OnPlayerConnect.

EDIT: too late
Код:
This forum requires that you wait 120 seconds between posts. Please try again in 86 seconds.
Reply
#6

On a newbie language guys.
Add RemoveBuilding etc.. under
pawn Код:
public OnPlayerConnect(playerid)
{
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)