danke dir, es hat geklappt.
Beiträge von Nate
-
-
danke dir, es klappt.
-
Zitat
(47) : error 017: undefined symbol "MAX_PLAYERS"
(40) : error 017: undefined symbol "MAX_PLAYERS"
(33) : error 017: undefined symbol "Kick"
(31) : error 017: undefined symbol "MAX_PLAYERS"
(24) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterVehicle")
(20) : error 017: undefined symbol "SetTimer"
(19) : error 017: undefined symbol "SetTimer"
(18) : error 017: undefined symbol "SetTimer"
(15) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
(12) : error 009: invalid array size (negative, zero or out of bounds)
(12) : error 017: undefined symbol "MAX_PLAYERS"//========================[Defines]=====================
#define MAXIMALE_JACKS (3)
#define MINIMALE_JACKS (0)
#pragma tabsize 0//========================[Forwards]=====================
forward public AutoDiebstahlTimer();
forward public VernichteAutoDieb();
forward public AutoDieb();//========================[News]=====================
new Entered[MAX_PLAYERS];//========================[Timer]=====================
public OnFilterScriptInit()
{
//===================[Timer für Brotfisch Diebstahl]=====================
SetTimer("AutoDieb",1000,true);
SetTimer("AutoDiebstahlTimer",10000,true);
SetTimer("VernichteAutoDieb",2000,true);
return 1;
}public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
Entered[playerid]++;
return 1;
}public AutoDieb() {
for(new i=0;i<MAX_PLAYERS;i++) {
if(Entered[i]==MAXIMALE_JACKS) {
return Kick(i); //Kannst du natürlich einstellen, ob die Spieler gekickt oder mit SetPlayerHealth auf 0 Hp gesetzt werden sollen
}
}
return 1;
}public VernichteAutoDieb() {
for(new i=0;i<MAX_PLAYERS;i++) {
return Entered[i]=MINIMALE_JACKS;
}
return 1;
}public AutoDiebstahlTimer() {
for(new i=0;i<MAX_PLAYERS;i++) {
if(Entered[i]==MAXIMALE_JACKS) {
return Entered[i]=MAXIMALE_JACKS;
}
}
return 1;
} -
toll, dan stirbt doch jeder, der ein wagen nimmt
-
so, habe script, aber da kommen warnings:
Zitatwarning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition#include <a_samp>
#pragma tabsize 0
#if defined FILTERSCRIPTpublic 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
public OnGameModeInit()
{return 1;
}public OnGameModeExit()
{
return 1;
}public OnPlayerSpawn(playerid)
{
SetPlayerWorldBounds(playerid, 992,6194, 233,5575, 1086,042, 665,6389);
return 1;
} -
bei jedem car jack.
-
Wie muss ich die Coords. einsetzen???
-
nein, ich möchte es bei meinem stunt gm einfügen.
-
Zitat
fatal error 107: too many error messages on one line
error 029: invalid expression, assumed zero
error 001: expected token: ";", but found "]"
warning 215: expression has no effect
error 017: undefined symbol "mats"
error 017: undefined symbol "COLOR_YELLOW"
error 017: undefined symbol "sscanf"
error 017: undefined symbol "dcmd_deal"
error 017: undefined symbol "dcmd"
error 017: undefined symbol "dcmd"
error 017: undefined symbol "dcmd"#include <a_samp>
#pragma tabsize 0
#if defined FILTERSCRIPT
new Jobs[MAX_PLAYERS];
new Taxi[MAX_PLAYERS];
new Dealer[MAX_PLAYERS];
new Arzt[MAX_PLAYERS];
new mats[MAX_PLAYERS];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
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);
return 1;
}public OnGameModeExit()
{
return 1;
}public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(job,3,cmdtext);
dcmd(deal,4,cmdtext);
dcmd(get,3,cmdtext);
//Außerhalb eines CallBacks
dcmd_deal(playerid,params[])
{new form[100];
new playa;
new mat;
if(sscanf(params,"dd",playa,mat))
{
SendClientMessage(playerid,COLOR_YELLOW,"Verwende: /deal [ID] [DROGENANZAHL]");
return 1;
}
if(mat > mats[playerid])
{
SendClientMessage(playerid,COLOR_BLUE,"So viele drogen hast du nicht !");
return 1;
}
if(!IsPlayerConnected(playa))
{
SendClientMessage(playerid,COLOR_BLUE,"Angegebener User nicht online!");
return 1;
}
if(Dealer[playerid] == 1)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playa,name,sizeof name);
new name2[MAX_PLAYER_NAME];
GetPlayerName(playerid,name2,sizeof name2);
format(form,sizeof form,"Du hast %s %d Drogen gegeben",name,mat);
SendClientMessage(playerid,COLOR_YELLOW,form);
new Float:h;
GetPlayerHealth(playa,h);
SetPlayerHealth(playerid,h+mat);
new form2[100];
format(form2,sizeof form2,"Du hast von %s %d Drogen erhalten",name2,mat);
SendClientMessage(playa,COLOR_YELLOW,form2);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_BLUE,"Du bist kein Dealer");
return 1;
}
}
dcmd_get(playerid, params[])
{
new form[100];
new mat = strval(params);
if(!strlen(params))
{
SendClientMessage(playerid,COLOR_YELLOW,"Verwende: /get [AMMOUNT]");
return 1;
}
if(!PlayerToPoint(5.0,playerid,1958.33, 1343.12, 15.36))//Deine Koords
{
SendClientMessage(playerid,COLOR_RED,"Du bist nicht am Drogen Ort");
return 1;
}
if(Dealer[playerid] == 1)
{
ApplyAnimation(playerid,"DEALER","DEALER_DEAL",4.1,1,1,1,1,1);
mats[playerid] += mat;
//GivePlayerMoney(playerid,-500);
format(form,sizeof form,"Du hast %d Drogen erworben",mat);
SendClientMessage(playerid,COLOR_BLUE,form);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Du bist kein Dealer");
return 1;
}}dcmd_job(playerid,params[])
{
new form[100];
new name[MAX_PLAYER_NAME];
new job[100];
if(sscanf(params,"s",job))
{
SendClientMessage(playerid,COLOR_RED,"Verwende: /job [NAME]");
SendClientMessage(playerid,COLOR_YELLOW,"===== JOBS =====");
SendClientMessage(playerid,COLOR_BLUE," Taxifahrer , Arzt , Dealer ");
SendClientMessage(playerid,COLOR_YELLOW,"===== JOBS =====");
return 1;
}
if(strcmp(job,"Taxifahrer",true,strlen(job))==0)
{
Jobs[playerid] = 1;
Taxi[playerid] = 1;
SendClientMessage(playerid,COLOR_YELLOW,"***INFO: Du bist nun Taxifahrer");
GetPlayerName(playerid, name, sizeof name);
format(form,sizeof form,"***INFO:%s ist nun Taxifahrer",name);
SendClientMessage(playerid,COLOR_BLUE,form);
return 1;
}
else if(strcmp(job,"Arzt",true,strlen(job)) ==0)
{
Jobs[playerid] = 1;
Arzt[playerid] = 1;
SendClientMessage(playerid,COLOR_YELLOW,"***INFO: Du bist nun Arzt");
GetPlayerName(playerid, name, sizeof name);
format(form,sizeof form,"***INFO:%s ist nun Arzt (Medic)",name);
SendClientMessage(playerid,COLOR_BLUE,form);
return 1;
}
else if(strcmp(job,"Dealer",true,strlen(job)) ==0)
{
Jobs[playerid] = 1;
Dealer[playerid] = 1;
SendClientMessage(playerid,COLOR_YELLOW,"***INFO: Du bist nun Dealer");
GetPlayerName(playerid, name, sizeof name);
format(form,sizeof form,"***INFO:%s ist nun Dealer",name);
SendClientMessage(playerid,COLOR_BLUE,form);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Diesen Job gibt es nicht!");
SendClientMessage(playerid,COLOR_BLUE,"Jobs: Taxifahrer , Dealer , Arzt ");
return 1;
}
return 0;
} -
Anzahl der Argumente nicht mit Definition
-
dann frag deine admins, ob die was gemacht haben.
-
das muss du eigentlich wissen, sowas kann man nicht sehen.
also, du musst doch wissen, was du zuletzt installiert hast, oder? -
geh auf den folgenden link um das paket zu de-installieren, was du zuletzt installiert hast:
http://www.reallife-streets.de/wbb/acp/ -
was hast du zu letzt installiert???
-
ja genau, man soll einfach iwie so machen, beispiel:
/jobs
Job übersicht... -
nimm einfach den hier:
http://forum.sa-mp.de/wbb/inde…=DownloadDBData&dataID=32
der müsste helfen -
nur so, weil man kann stunt machen und job.
-
Ich suche einen Job Script, wo man als Taxifahrer oder Sonstiges machen kann. Mein GM ist kein GF, es wird ein Stuntgamemode. Und von daher suche ich einen Job Script. Habe schon SuFu benutzt, der findet leider nichts.
-
Danke dir, es passt auch gut zu meinen Stuntgamemode.
-