Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (
/showthread.php?tid=544704)
Help -
Trollerz - 03.11.2014
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"
Re: Help -
Eth - 03.11.2014
delete this:
pawn Код:
GangZoneShowForPlayer(playerid, ahad, 0x00000096);
the one ingamemodeinit
Re: Help -
HY - 03.11.2014
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;
}
//======================