#1

hello guyz can you tell me what is the problem in this script??


pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined playerid

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif
new ahad;

public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    //zones
    GangZoneShowForPlayer(playerid, ahad, 0x00000096);
    return 1;
   
}

public OnPlayerSpawn(playerid) {
    GangZoneShowForPlayer(playerid, ahad, 0x00000096);
    return 1;
}
//======================

it says undefined symbol "playerid"
Reply
#2

delete this:
pawn Код:
GangZoneShowForPlayer(playerid, ahad, 0x00000096);
the one ingamemodeinit
Reply
#3

pawn Код:
#include <a_samp>

new ahad;

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

public OnGameModeInit()
{
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    //Zones
    ahad = GangZoneCreate(123132123,13123.123,213.23132,3324); // Replace with your Coordinates !
    return 1;

}

public OnPlayerSpawn(playerid)
{
    GangZoneShowForPlayer(playerid, ahad, 0x00000096);
    return 1;
}
//======================
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)