So ich bin Gerade beim Scripten eines Paydays.
Dann kommt das:
C:\Program Files\Rockstar Games\GTA SA SAMP\gamemodes\Test.pwn(275) : warning 235: public function lacks forward declaration (symbol "payday")
Hier ist der Schnipsel:
public payday() {
for (new i = 0; i < MAX_PLAYERS; i++) {
SendClientMessage(i,0xFFFF00FF,"Payday! Du erhältst $10000!");
GivePlayerMoney(i,10000);
}
return 1;
}
Was ist Falsch?
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
-
joa
-
Benutz SuFu, samp wiki oder mein Tut
MfG
-
Hab ich schon aber is genau gleich und kommen sogar noch mehr fehler
-
zeig mal alle zeilen -.-
-
#include <a_samp>
// Ein Test Gamemode von _KinG_Philip_
#if defined FILTERSCRIPT
forward payday();
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}public OnFilterScriptExit()
{
return 1;
}#else
main()
{
print("\n-------------------------------------");
print(" Test Gamemode coded by _KinG_Philip_");
print("-------------------------------------\n");
}#endif
public OnGameModeInit()
{
SetTimer("payday",600000,1);SetGameModeText("TEST SCRIPT");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(1,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(2,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(47,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(48,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(55,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(59,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(60,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(63,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(64,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(66,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(67,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(85,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(87,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(91,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(93,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(97,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(98,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(100,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(101,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(102,2001.7898,-1331.3816,23.9844,182.7078,0,0,0,0,0,0); // ballas
AddPlayerClass(103,2001.7898,-1331.3816,23.9844,182.7078,0,0,0,0,0,0); // ballas
AddPlayerClass(104,2001.7898,-1331.3816,23.9844,182.7078,0,0,0,0,0,0); // ballas
AddPlayerClass(105,2518.4673,-1678.1327,14.4883,73.2320,0,0,0,0,0,0); // groove
AddPlayerClass(106,2518.4673,-1678.1327,14.4883,73.2320,0,0,0,0,0,0); // groove
AddPlayerClass(107,2518.4673,-1678.1327,14.4883,73.2320,0,0,0,0,0,0); // groove
AddPlayerClass(108,2175.3960,-996.2379,62.9518,175.5055,0,0,0,0,0,0); // vagos
AddPlayerClass(109,2175.3960,-996.2379,62.9518,175.5055,0,0,0,0,0,0); // vagos
AddPlayerClass(110,2175.3960,-996.2379,62.9518,175.5055,0,0,0,0,0,0); // vagos
AddPlayerClass(114,1803.5978,-2122.7800,13.5543,359.3465,0,0,0,0,0,0); // losaztecas
AddPlayerClass(115,1803.5978,-2122.7800,13.5543,359.3465,0,0,0,0,0,0); // losaztecas
AddPlayerClass(116,1803.5978,-2122.7800,13.5543,359.3465,0,0,0,0,0,0); // losaztecas
AddPlayerClass(163,1550.7854,-1675.0646,15.5579,92.5067,0,0,0,0,0,0); // F.B.I.
AddPlayerClass(164,1550.7854,-1675.0646,15.5579,92.5067,0,0,0,0,0,0); // F.B.I.
AddPlayerClass(165,1550.7854,-1675.0646,15.5579,92.5067,0,0,0,0,0,0); // F.B.I. Special
AddPlayerClass(166,1550.7854,-1675.0646,15.5579,92.5067,0,0,0,0,0,0); // F.B.I. Special
AddPlayerClass(185,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(186,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(217,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(223,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(230,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(233,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(237,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(238,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(239,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(240,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(241,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(242,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(244,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(245,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(246,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(247,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(248,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(249,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(254,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(264,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(280,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
AddPlayerClass(281,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
AddPlayerClass(282,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
AddPlayerClass(283,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
AddPlayerClass(284,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
AddPlayerClass(285,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
AddPlayerClass(286,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // FBI
AddPlayerClass(287,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // ARMY
AddPlayerClass(288,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // ARMY
AddPlayerClass(299,2518.5679,-1678.5813,14.5389,41.6612,0,0,0,0,0,0); //
AddPlayerClass(297,2518.5679,-1678.5813,14.5389,41.6612,0,0,0,0,0,0); //
AddPlayerClass(296,2518.5679,-1678.5813,14.5389,41.6612,0,0,0,0,0,0); //
AddPlayerClass(294,2518.5679,-1678.5813,14.5389,41.6612,0,0,0,0,0,0); //AddStaticVehicle(411,2505.8499,-1680.2323,16.2300,329.7411,106,1); //Grove Cars
AddStaticVehicle(411,2509.9155,-1671.3341,16.1337,353.8630,106,1); //Grove Cars
AddStaticVehicle(411,2507.5286,-1661.4607,16.2278,27.6488,106,1); //Grove Cars
AddStaticVehicle(411,2495.2949,-1654.5693,16.1246,80.2036,106,1); //Grove Cars
AddStaticVehicle(411,2482.8394,-1653.1891,16.1157,87.1623,106,1); //Grove Cars
AddStaticVehicle(411,2467.9585,-1667.7203,16.1109,198.9807,106,1); //Grove Cars
AddStaticVehicle(411,2475.1865,-1679.9703,16.0790,237.1062,106,1); //Grove Cars
AddStaticVehicle(411,2473.8167,-1696.8429,16.2444,352.9933,106,1); //Grove Carsreturn 1;
}public OnGameModeExit()
{
return 1;
}public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}public OnPlayerRequestSpawn(playerid)
{
return 1;
}public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s hat den Server Betreten.", pName);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, pName, sizeof(pName));switch(reason)
{
case 0: format(string, sizeof(string), "%s hat den Server verlassen. (Error)", pName);
case 1: format(string, sizeof(string), "%s hat den Server verlassen.", pName);
case 2: format(string, sizeof(string), "%s hat den Server verlassen. (Kick/ban)", pName);
}SendClientMessageToAll(0xAAAAAAAA, string);
return 1;}
public OnPlayerSpawn(playerid)
{
return 1;
}public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}public OnVehicleSpawn(vehicleid)
{
return 1;
}public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}public OnPlayerText(playerid, text[])
{
return 1;
}public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 1;
}public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}public OnPlayerInfoChange(playerid)
{
return 1;
}public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}public OnRconCommand(cmd[])
{
return 1;
}public OnObjectMoved(objectid)
{
return 1;
}public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}public OnPlayerExitedMenu(playerid)
{
return 1;
}public payday() {
for (new i = 0; i < MAX_PLAYERS; i++) {
SendClientMessage(i,0xFFFF00FF,"Payday! Du erhältst $10000!");
GivePlayerMoney(i,10000);
}
return 1;
} -
und jetzt die errors -.-
-
-.-
C:\Program Files\Rockstar Games\GTA SA SAMP\gamemodes\Test.pwn(37) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA SA SAMP\gamemodes\Test.pwn(275) : warning 235: public function lacks forward declaration (symbol "payday")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase2 Warnings.
-
so geht es bei mir:
#include <a_samp>
// Ein Test Gamemode von _KinG_Philip_
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}public OnFilterScriptExit()
{
return 1;
}#else
main()
{
print("\n-------------------------------------");
print(" Test Gamemode coded by _KinG_Philip_");
print("-------------------------------------\n");
}#endif
forward payday();
public OnGameModeInit()
{
SetTimer("payday",600000,1);SetGameModeText("TEST SCRIPT");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(1,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(2,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(47,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(48,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(55,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(59,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(60,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(63,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(64,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(66,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(67,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(85,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(87,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(91,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(93,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(97,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(98,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(100,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(101,2519.1052,-1677.9048,14.6167,74.3126,0,0,0,0,0,0); //
AddPlayerClass(102,2001.7898,-1331.3816,23.9844,182.7078,0,0,0,0,0,0); // ballas
AddPlayerClass(103,2001.7898,-1331.3816,23.9844,182.7078,0,0,0,0,0,0); // ballas
AddPlayerClass(104,2001.7898,-1331.3816,23.9844,182.7078,0,0,0,0,0,0); // ballas
AddPlayerClass(105,2518.4673,-1678.1327,14.4883,73.2320,0,0,0,0,0,0); // groove
AddPlayerClass(106,2518.4673,-1678.1327,14.4883,73.2320,0,0,0,0,0,0); // groove
AddPlayerClass(107,2518.4673,-1678.1327,14.4883,73.2320,0,0,0,0,0,0); // groove
AddPlayerClass(108,2175.3960,-996.2379,62.9518,175.5055,0,0,0,0,0,0); // vagos
AddPlayerClass(109,2175.3960,-996.2379,62.9518,175.5055,0,0,0,0,0,0); // vagos
AddPlayerClass(110,2175.3960,-996.2379,62.9518,175.5055,0,0,0,0,0,0); // vagos
AddPlayerClass(114,1803.5978,-2122.7800,13.5543,359.3465,0,0,0,0,0,0); // losaztecas
AddPlayerClass(115,1803.5978,-2122.7800,13.5543,359.3465,0,0,0,0,0,0); // losaztecas
AddPlayerClass(116,1803.5978,-2122.7800,13.5543,359.3465,0,0,0,0,0,0); // losaztecas
AddPlayerClass(163,1550.7854,-1675.0646,15.5579,92.5067,0,0,0,0,0,0); // F.B.I.
AddPlayerClass(164,1550.7854,-1675.0646,15.5579,92.5067,0,0,0,0,0,0); // F.B.I.
AddPlayerClass(165,1550.7854,-1675.0646,15.5579,92.5067,0,0,0,0,0,0); // F.B.I. Special
AddPlayerClass(166,1550.7854,-1675.0646,15.5579,92.5067,0,0,0,0,0,0); // F.B.I. Special
AddPlayerClass(185,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(186,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(217,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(223,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(230,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(233,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(237,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(238,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(239,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(240,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(241,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(242,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(244,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(245,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(246,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(247,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(248,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(249,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(254,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(264,2518.9888,-1678.3950,14.5805,65.3996,0,0,0,0,0,0); //
AddPlayerClass(280,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
AddPlayerClass(281,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
AddPlayerClass(282,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
AddPlayerClass(283,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
AddPlayerClass(284,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
AddPlayerClass(285,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // police
AddPlayerClass(286,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // FBI
AddPlayerClass(287,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // ARMY
AddPlayerClass(288,1551.3326,-1675.9990,15.8053,90.4008,0,0,0,0,0,0); // ARMY
AddPlayerClass(299,2518.5679,-1678.5813,14.5389,41.6612,0,0,0,0,0,0); //
AddPlayerClass(297,2518.5679,-1678.5813,14.5389,41.6612,0,0,0,0,0,0); //
AddPlayerClass(296,2518.5679,-1678.5813,14.5389,41.6612,0,0,0,0,0,0); //
AddPlayerClass(294,2518.5679,-1678.5813,14.5389,41.6612,0,0,0,0,0,0); //AddStaticVehicle(411,2505.8499,-1680.2323,16.2300,329.7411,106,1); //Grove Cars
AddStaticVehicle(411,2509.9155,-1671.3341,16.1337,353.8630,106,1); //Grove Cars
AddStaticVehicle(411,2507.5286,-1661.4607,16.2278,27.6488,106,1); //Grove Cars
AddStaticVehicle(411,2495.2949,-1654.5693,16.1246,80.2036,106,1); //Grove Cars
AddStaticVehicle(411,2482.8394,-1653.1891,16.1157,87.1623,106,1); //Grove Cars
AddStaticVehicle(411,2467.9585,-1667.7203,16.1109,198.9807,106,1); //Grove Cars
AddStaticVehicle(411,2475.1865,-1679.9703,16.0790,237.1062,106,1); //Grove Cars
AddStaticVehicle(411,2473.8167,-1696.8429,16.2444,352.9933,106,1); //Grove Carsreturn 1;
}public OnGameModeExit()
{
return 1;
}public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}public OnPlayerRequestSpawn(playerid)
{
return 1;
}public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s hat den Server Betreten.", pName);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, pName, sizeof(pName));switch(reason)
{
case 0: format(string, sizeof(string), "%s hat den Server verlassen. (Error)", pName);
case 1: format(string, sizeof(string), "%s hat den Server verlassen.", pName);
case 2: format(string, sizeof(string), "%s hat den Server verlassen. (Kick/ban)", pName);
}SendClientMessageToAll(0xAAAAAAAA, string);
return 1;}
public OnPlayerSpawn(playerid)
{
return 1;
}public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}public OnVehicleSpawn(vehicleid)
{
return 1;
}public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}public OnPlayerText(playerid, text[])
{
return 1;
}public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 1;
}public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}public OnPlayerInfoChange(playerid)
{
return 1;
}public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}public OnRconCommand(cmd[])
{
return 1;
}public OnObjectMoved(objectid)
{
return 1;
}public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}public OnPlayerExitedMenu(playerid)
{
return 1;
}public payday() {
for (new i = 0; i < MAX_PLAYERS; i++) {
SendClientMessage(i,0xFFFF00FF,"Payday! Du erhältst $10000!");
GivePlayerMoney(i,10000);
}
return 1;
}MfG
-
danke jetzt gehts
Edit:
Hab jez nochmal ne frage -.-
wie kann man machen dass die nit so wie frauen rennen? xD
und hat wer ein filterscript wo in ganz ls cars stehen? also ich will nähmlich nit alle einzeln rein machen xD -
wie kann man machen dass die nit so wie frauen rennen? xD
Ohne Scheiß ! Hier darf keine Antwort geschrieben werden ! Wenn ich in der Sufu gucke find ich mind. 20 Seiten + Lösung!
-
hmmmmm sufu muss man schon benutzen können xd
UsePlayerPedAnims();
so laufen die richtig
-
Danke
-
breadfish.de
Hat das Thema geschlossen.