ich brauche ein scipt das wen ich /v[I/NAME] eingebe car spawn kann (für ale users!) und man kann maximal 3 Cars Spawn! und wen man mal ein car verliert (verschlamp :D) sollte man den command /ruf1-3 machen können dieser wirk das das Car sich wieder hertellt brauche den sript währe nett!
/v und /ruf (slots)
- Y3Z0N
- Geschlossen
- Erledigt
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
-
-
Ich war mal so nett und habs versucht muss es jetzt aber noch testen
new Auto1[MAX_PLAYERS];
new Auto3[MAX_PLAYERS];
new Auto2[MAX_PLAYERS];
new slot[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(strget(cmdtext,0),"/v",true)==0)
{
new vID = strval(strget(cmdtext,1));
new Float:X,Float:Y,Float:Z,Float:Roat;
new rand1=random(10);
new rand2=random(10);
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Roat);
if(Auto1[playerid] == 999 ||Auto2[playerid] == 999 ||Auto3[playerid] == 999)
{
PutPlayerInVehicle(playerid,CreateVehicle(vID,X,Y,Z,Roat,rand1,rand2,-1),1);
if(Auto1[playerid]== 999)
{
Auto1[playerid]=GetPlayerVehicleID(playerid);
slot[playerid]=1;
}
else if(Auto2[playerid]== 999)
{
Auto2[playerid]=GetPlayerVehicleID(playerid);
slot[playerid]=2;
}
else if(Auto3[playerid]== 999)
{
Auto3[playerid]=GetPlayerVehicleID(playerid);
slot[playerid]=3;
}
new string[128];
format(string,sizeof(string),"Sie haben ein Auto auf Slot %i gespawnt cl1:%i cl2:%i",slot[playerid],rand1,rand2);
SendClientMessage(playerid,0xddaaffff,string);
}
else
{
SendClientMessage(playerid,0xffaaffaa,"Sie Haben sich schon 3 Autos gerufe /ruf[1-3]um es zu holen");
}
}
if(strcmp(strget(cmdtext,0),"/ruf",true)==0)
{
new slot1 = strval(strget(cmdtext,1));
new Float:X,Float:Y,Float:Z,Float:Roat;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Roat);
if(slot1 == 1)
{
SetVehiclePos(Auto1[playerid],X,Y,Z);
}
else if(slot1 == 2)
{
SetVehiclePos(Auto2[playerid],X,Y,Z);
}
else if(slot1 == 3)
{
SetVehiclePos(Auto3[playerid],X,Y,Z);
}
new string[128];
format(string,sizeof(string),"Sie haben Slot %i gerufen",slot1);
SendClientMessage(playerid,0xddaaffff,string);
}
return 0;
}
stock strget(strx[], pos, search = ' ') {
new arg, ret[128], idxx;
for (new i = 0; i < strlen(strx); i++) {
if(strx[i] == search || i == strlen(strx) || strx[i + 1] == 10) {
arg++;
if (arg == pos + 1){
ret[i-idxx] = EOS;
return ret;
} else if (arg == pos)
idxx= i+1;
}
else if (arg == pos)
ret[i - idxx] = strx[i];
}
return ret;
} -
ich danke dir ich werd es mall versuchen ;D...
-
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(1) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(1) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(2) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(2) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(3) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(3) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(4) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(4) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(5) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandText")
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(7) : error 017: undefined symbol "strcmp"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(9) : error 017: undefined symbol "strval"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(11) : error 017: undefined symbol "random"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(12) : error 017: undefined symbol "random"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(13) : error 017: undefined symbol "GetPlayerPos"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(14) : error 017: undefined symbol "GetPlayerFacingAngle"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(17) : error 017: undefined symbol "PutPlayerInVehicle"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(20) : error 017: undefined symbol "GetPlayerVehicleID"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(25) : error 017: undefined symbol "GetPlayerVehicleID"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(30) : error 017: undefined symbol "GetPlayerVehicleID"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(34) : error 017: undefined symbol "format"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(34) : warning 202: number of arguments does not match definition
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(34) : warning 202: number of arguments does not match definition
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(34) : warning 202: number of arguments does not match definition
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(34) : warning 202: number of arguments does not match definition
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(34) : warning 202: number of arguments does not match definition
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(35) : error 017: undefined symbol "SendClientMessage"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(39) : error 017: undefined symbol "SendClientMessage"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(12) : warning 204: symbol is assigned a value that is never used: "rand2"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(11) : warning 204: symbol is assigned a value that is never used: "rand1"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(10) : warning 203: symbol is never used: "Roat"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(10) : warning 203: symbol is never used: "Z"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(10) : warning 203: symbol is never used: "Y"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(10) : warning 203: symbol is never used: "X"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(9) : warning 204: symbol is assigned a value that is never used: "vID"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(9 -- 42) : error 017: undefined symbol "strcmp"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(44) : error 017: undefined symbol "strval"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(46) : error 017: undefined symbol "GetPlayerPos"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(47) : error 017: undefined symbol "GetPlayerFacingAngle"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(50) : error 017: undefined symbol "SetVehiclePos"Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
-
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(1) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(1) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(2) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(2) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(3) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(3) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(4) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp2.pwn(4) : error 009: invalid array size (negative, zero or out of bounds)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase8 Errors.
-
kann ja sein das ich bestimte includes brauche kannst du die hier uploaden?? MFG JASON!
-
Hier mal aus meinem GM
ocmd:car(playerid,params[])
{
new carid,farbe1,farbe2;
new Float:CarX;
new Float:CarY;
new Float:CarZ;
if(sscanf(params,"iii",carid,farbe1,farbe2)) {
return SendClientMessage(playerid,COLOR_GRAU,"Verwende /car [CarID] [Farbe1] [Farbe2]");
}
if(IsPlayerConnected(playerid)) {
GetPlayerPos(playerid,CarX,CarY,CarZ);
CreateVehicle(carid,CarX,CarY+4,CarZ+4, 82.2873, farbe1,farbe2, 0);
}
else {
SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin!");
}
return 1;
}lg
pS
-
OK Hab es gefixed ohne bugs und wenn es kaputt geht wird der slot wieder frei!
Wenn man off geht sind die auch weg
Keine includes nötig
so also zuerst
new Auto1[MAX_PLAYERS];
new Auto3[MAX_PLAYERS];
new Auto2[MAX_PLAYERS];
new Auto11[MAX_PLAYERS];
new Auto31[MAX_PLAYERS];
new Auto21[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{ Auto1[playerid]=999;
Auto2[playerid]=999;
Auto3[playerid]=999;
return 1;
}public OnPlayerDisconnect(playerid, reason)
{
DestroyVehicle(Auto11[playerid]);
DestroyVehicle(Auto21[playerid]);
DestroyVehicle(Auto31[playerid]);
return 1;
}als zweites wenn die autos kaputt gehen
public OnVehicleDeath(vehicleid, killerid)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(vehicleid == Auto11[i])
{
DestroyVehicle(Auto11[i]);
Auto1[i]=999;
SendClientMessage(i,0xddaaffff,"Slot 1 ist nun frei");
}
else if(vehicleid == Auto21[i])
{
DestroyVehicle(Auto21[i]);
Auto2[i]=999;
SendClientMessage(i,0xddaaffff,"Slot 2 ist nun frei");
}
else if(vehicleid == Auto31[i])
{
DestroyVehicle(Auto31[i]);
Auto3[i]=999;
SendClientMessage(i,0xddaaffff,"Slot 3 ist nun frei");
}
}
}
return 1;
}als drittes die CMD´s:
und für die befehle das strget stock:new slot[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(strget(cmdtext,0),"/v",true)==0)
{
new vID = strval(strget(cmdtext,1));
if( vID <= 611 && vID >= 400)
{
new Float:X,Float:Y,Float:Z,Float:Roat;
new rand1=random(10);
new rand2=random(10);
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Roat);
if(Auto1[playerid]== 999)
{
Auto11[playerid]=CreateVehicle(vID,X,Y,Z,Roat,rand1,rand2,-1);
PutPlayerInVehicle(playerid,Auto11[playerid],0);
slot[playerid]=1;
new string[128];
Auto1[playerid]=1;
format(string,sizeof(string),"Sie haben ein Auto auf Slot %i gespawnt cl1:%i cl2:%i",slot[playerid],rand1,rand2);
SendClientMessage(playerid,0xddaaffff,string);
}
else if(Auto2[playerid]== 999)
{
Auto21[playerid]=CreateVehicle(vID,X,Y,Z,Roat,rand1,rand2,-1);
PutPlayerInVehicle(playerid,Auto21[playerid],0);
slot[playerid]=2;
new string[128];
Auto2[playerid]=1;
format(string,sizeof(string),"Sie haben ein Auto auf Slot %i gespawnt cl1:%i cl2:%i",slot[playerid],rand1,rand2);
SendClientMessage(playerid,0xddaaffff,string);
}
else if(Auto3[playerid]== 999)
{
Auto31[playerid]=CreateVehicle(vID,X,Y,Z,Roat,rand1,rand2,-1);
PutPlayerInVehicle(playerid,Auto31[playerid],0);
Auto3[playerid]=1;
slot[playerid]=3;
new string[128];
format(string,sizeof(string),"Sie haben ein Auto auf Slot %i gespawnt cl1:%i cl2:%i",slot[playerid],rand1,rand2);
SendClientMessage(playerid,0xddaaffff,string);
}
else
{
SendClientMessage(playerid,0xffaaffaa,"Sie Haben sich schon 3 Autos gerufe /ruf[1-3]um es zu holen");
}
return 1;
}
else
{
SendClientMessage(playerid,0xffaaffaa,"Sie müssen eine ID zwischen 400 und 611 wählen");
}
}
if(strcmp(strget(cmdtext,0),"/ruf",true)==0)
{
new slot1 = strval(strget(cmdtext,1));
new Float:X,Float:Y,Float:Z,Float:Roat;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Roat);
if(slot1 == 1)
{
if(Auto1[playerid] != 999)
{
PutPlayerInVehicle(playerid,Auto11[playerid],0);
SetVehiclePos(Auto11[playerid],X,Y,Z);
new string[128];
format(string,sizeof(string),"Sie haben Slot %i gerufen",slot1);
SendClientMessage(playerid,0xddaaffff,string);
}
else
{
SendClientMessage(playerid,0xffaaffaa,"Slot nicht besetzt");
}
}
else if(slot1 == 2)
{
if(Auto2[playerid] != 999)
{
PutPlayerInVehicle(playerid,Auto21[playerid],0);
SetVehiclePos(Auto21[playerid],X,Y,Z);
new string[128];
format(string,sizeof(string),"Sie haben Slot %i gerufen",slot1);
SendClientMessage(playerid,0xddaaffff,string);
}
else
{
SendClientMessage(playerid,0xffaaffaa,"Slot nicht besetzt");
}
}
else if(slot1 == 3)
{
if(Auto3[playerid] != 999)
{
PutPlayerInVehicle(playerid,Auto31[playerid],0);
SetVehiclePos(Auto31[playerid],X,Y,Z);
new string[128];
format(string,sizeof(string),"Sie haben Slot %i gerufen",slot1);
SendClientMessage(playerid,0xddaaffff,string);
}
else
{
SendClientMessage(playerid,0xffaaffaa,"Slot nicht besetzt");
}
}
return 1;
}
return 0;
}
stock strget(strx[], pos, search = ' ') {
new arg, ret[128], idxx;
for (new i = 0; i < strlen(strx); i++) {
if(strx[i] == search || i == strlen(strx) || strx[i + 1] == 10) {
arg++;
if (arg == pos + 1){
ret[i-idxx] = EOS;
return ret;
} else if (arg == pos)
idxx= i+1;
}
else if (arg == pos)
ret[i - idxx] = strx[i];
}
return ret;
}Hoffe es geht auch bei dir/euch
Gruß Blackybecks
;D bitte sagen obs geht und obs das ist was du wolltest -
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(1) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(1) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(2) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(2) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(3) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(3) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(4) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(4) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(5) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(5) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(6) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(6) : error 009: invalid array size (negative, zero or out of bounds)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase12 Errors.
-
poste mal zeilen
bli bla blub -
-
new Auto1[MAX_PLAYERS];
new Auto3[MAX_PLAYERS];
new Auto2[MAX_PLAYERS];
new Auto11[MAX_PLAYERS];
new Auto31[MAX_PLAYERS];
new Auto21[MAX_PLAYERS];#include <a_samp>
#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(" Blank Gamemode by your name here");
print("----------------------------------\n");
}#endif
public OnPlayerConnect(playerid)
{ Auto1[playerid]=999;
Auto2[playerid]=999;
Auto3[playerid]=999;
return 1;
}public OnPlayerDisconnect(playerid, reason)
{
DestroyVehicle(Auto11[playerid]);
DestroyVehicle(Auto21[playerid]);
DestroyVehicle(Auto31[playerid]);
return 1;
}public OnVehicleDeath(vehicleid, killerid)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(vehicleid == Auto11[i])
{
DestroyVehicle(Auto11[i]);
Auto1[i]=999;
SendClientMessage(i,0xddaaffff,"Slot 1 ist nun frei");
}
else if(vehicleid == Auto21[i])
{
DestroyVehicle(Auto21[i]);
Auto2[i]=999;
SendClientMessage(i,0xddaaffff,"Slot 2 ist nun frei");
}
else if(vehicleid == Auto31[i])
{
DestroyVehicle(Auto31[i]);
Auto3[i]=999;
SendClientMessage(i,0xddaaffff,"Slot 3 ist nun frei");
}
}
}
return 1;
}new slot[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(strget(cmdtext,0),"/v",true)==0)
{
new vID = strval(strget(cmdtext,1));
if( vID <= 611 && vID >= 400)
{
new Float:X,Float:Y,Float:Z,Float:Roat;
new rand1=random(10);
new rand2=random(10);
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Roat);
if(Auto1[playerid]== 999)
{
Auto11[playerid]=CreateVehicle(vID,X,Y,Z,Roat,rand1,rand2,-1);
PutPlayerInVehicle(playerid,Auto11[playerid],0);
slot[playerid]=1;
new string[128];
Auto1[playerid]=1;
format(string,sizeof(string),"Sie haben ein Auto auf Slot %i gespawnt cl1:%i cl2:%i",slot[playerid],rand1,rand2);
SendClientMessage(playerid,0xddaaffff,string);
}
else if(Auto2[playerid]== 999)
{
Auto21[playerid]=CreateVehicle(vID,X,Y,Z,Roat,rand1,rand2,-1);
PutPlayerInVehicle(playerid,Auto21[playerid],0);
slot[playerid]=2;
new string[128];
Auto2[playerid]=1;
format(string,sizeof(string),"Sie haben ein Auto auf Slot %i gespawnt cl1:%i cl2:%i",slot[playerid],rand1,rand2);
SendClientMessage(playerid,0xddaaffff,string);
}
else if(Auto3[playerid]== 999)
{
Auto31[playerid]=CreateVehicle(vID,X,Y,Z,Roat,rand1,rand2,-1);
PutPlayerInVehicle(playerid,Auto31[playerid],0);
Auto3[playerid]=1;
slot[playerid]=3;
new string[128];
format(string,sizeof(string),"Sie haben ein Auto auf Slot %i gespawnt cl1:%i cl2:%i",slot[playerid],rand1,rand2);
SendClientMessage(playerid,0xddaaffff,string);
}
else
{
SendClientMessage(playerid,0xffaaffaa,"Sie Haben sich schon 3 Autos gerufe /ruf[1-3]um es zu holen");
}
return 1;
}
else
{
SendClientMessage(playerid,0xffaaffaa,"Sie müssen eine ID zwischen 400 und 611 wählen");
}
}
if(strcmp(strget(cmdtext,0),"/ruf",true)==0)
{
new slot1 = strval(strget(cmdtext,1));
new Float:X,Float:Y,Float:Z,Float:Roat;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Roat);
if(slot1 == 1)
{
if(Auto1[playerid] != 999)
{
PutPlayerInVehicle(playerid,Auto11[playerid],0);
SetVehiclePos(Auto11[playerid],X,Y,Z);
new string[128];
format(string,sizeof(string),"Sie haben Slot %i gerufen",slot1);
SendClientMessage(playerid,0xddaaffff,string);
}
else
{
SendClientMessage(playerid,0xffaaffaa,"Slot nicht besetzt");
}
}
else if(slot1 == 2)
{
if(Auto2[playerid] != 999)
{
PutPlayerInVehicle(playerid,Auto21[playerid],0);
SetVehiclePos(Auto21[playerid],X,Y,Z);
new string[128];
format(string,sizeof(string),"Sie haben Slot %i gerufen",slot1);
SendClientMessage(playerid,0xddaaffff,string);
}
else
{
SendClientMessage(playerid,0xffaaffaa,"Slot nicht besetzt");
}
}
else if(slot1 == 3)
{
if(Auto3[playerid] != 999)
{
PutPlayerInVehicle(playerid,Auto31[playerid],0);
SetVehiclePos(Auto31[playerid],X,Y,Z);
new string[128];
format(string,sizeof(string),"Sie haben Slot %i gerufen",slot1);
SendClientMessage(playerid,0xddaaffff,string);
}
else
{
SendClientMessage(playerid,0xffaaffaa,"Slot nicht besetzt");
}
}
return 1;
}
return 0;
}
stock strget(strx[], pos, search = ' ') {
new arg, ret[128], idxx;
for (new i = 0; i < strlen(strx); i++) {
if(strx[i] == search || i == strlen(strx) || strx[i + 1] == 10) {
arg++;
if (arg == pos + 1){
ret[i-idxx] = EOS;
return ret;
} else if (arg == pos)
idxx= i+1;
}
else if (arg == pos)
ret[i - idxx] = strx[i];
}
return ret;
} -
unter die includes weil die ja angibt was pawno tun soll das definier ja erst alles
Hier Pastebin -
ich glaube mir fehlen includes kannst du mir mall welche schicken weill irrn was stimt nicht -.- weiß aber nicht was da steht immer
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(1) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(1) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(2) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(2) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(3) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(3) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(4) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(4) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(5) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(5) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(6) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Jason\Desktop\WOS\filterscripts\sp3.pwn(6) : error 009: invalid array size (negative, zero or out of bounds)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase12 Errors.
-
also erst #include <a_samp>
dann new auto... -
danke aber wie soll ich die include nenen das bring ja nix ohne name
-
-
hab ich ja aber da steht immer 1 error
-
kannst du nicht mall FS und INC schicken währe nett ich blicke ez garnet mer durch
-
-
jetzt gehts aber xD aber ich kann mir kein car spawn das geht nicht xD dan steht da sie haben 3 alle 3 slots belegt 3 wen ich 7v steht da wählen sie von 400 is 611 un darunter Unknow command