Kann es sein, dass keine Autos gespawnt werden?
Beiträge von Narushi
-
-
Sterbe wenn ich das sehe *hust* xD
Hier ist sein PWN-Code
if(strcmp(cmd, "/supcar", true) == 0)
{
if(AdminDuty[playerid] == 1)
{
if(supmobil[playerid] == 0)
{
ShowPlayerDialog(playerid, supcar, DIALOG_STYLE_LIST, "{D200FF}Sup Cars", "Comet\nSultan\nWayfarer", "Auswählen", "Beenden");
}
else if(supmobil[playerid] == 1)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1;
{
DestroyObject(sfl1[GetPlayerVehicleID(playerid)]);
DestroyObject(sfl2[GetPlayerVehicleID(playerid)]);
DestroyObject(sfl3[GetPlayerVehicleID(playerid)]);
DestroyObject(sfl4[GetPlayerVehicleID(playerid)]);
DestroyObject(sfl5[GetPlayerVehicleID(playerid)]);
DestroyObject(sfl6[GetPlayerVehicleID(playerid)]);
DestroyObject(GetPVarInt(playerid, "pink"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "pink1"));
DeletePVar(playerid, "neon");
DestroyVehicle(GetPlayerVehicleID(playerid));
RemovePlayerFromVehicle(playerid);
supmobil[playerid] = 0;
SendClientMessage(playerid,0x8C00FFFF, "Du hast dein Sup Car gelöscht");
Delete3DTextLabel( supcar3d[GetPlayerVehicleID(playerid)] );
SetVehicleHealth(playerid,1000);
return true;
}
}
}
else
SendClientMessage(playerid,rot, "Du bist nicht aduty");
return 1;
}//OnDialogResponse
if(dialogid == supcar)
{
if(response)
{
if(listitem == 0)
{
new string[256];
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(480, X,Y,Z, 0.0, 149, 149, 60000);
CreatedCars[CreatedCar] = carid;
CreatedCar++;
SetVehicleNumberPlate(carid, "Sup Car");
SetVehicleToRespawn(carid);
PutPlayerInVehicle(playerid, carid, 0);
SetTimerEx("supmotoran",1,0, "i", playerid);
SetTimerEx("suplichtan",2,0, "i", playerid);
sfl5[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,-1000,0,0,0,100);
ttachObjectToVehicle(sfl5[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.600000,-1.000000,0.700000,0.000000,0.000000,0.000000);
sfl6[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,-1000,0,0,0,100);
ttachObjectToVehicle(sfl6[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.600000,-1.000000,0.700000,0.000000,0.000000,0.000000);
sfl1[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,-1000,0,0,0,100);
sfl2[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,-1000,0,0,0,100);
sfl3[GetPlayerVehicleID(playerid)] = CreateObject(19290,0,0,-1000,0,0,0,100);
sfl4[GetPlayerVehicleID(playerid)] = CreateObject(19290,0,0,-1000,0,0,0,100);
ttachObjectToVehicle(sfl1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.365000,2.200000,0.049999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(sfl2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.405000,2.200000,0.049999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(sfl3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.270000,2.200000,0.019999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(sfl4[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.304999,2.200000,0.019999,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "neon", 1);
SetPVarInt(playerid, "pink", CreateObject(18651, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,100.0));
SetPVarInt(playerid, "pink1", CreateObject(18651, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,100.0));
AttachObjectToVehicle(GetPVarInt(playerid, "pink"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "pink1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SetVehicleHealth(playerid,1000);
SendClientMessage(playerid,0x8C00FFFF, "Du hast ein Comet Sup Car erstellt");
supmobil[playerid] = 1;
new spname[MAX_PLAYER_NAME];
GetPlayerName(playerid, spname, sizeof(spname));
format(string,sizeof(string),"Sup Car von %s", spname);
supcar3d[carid] = Create3DTextLabel(string, 0x8C00FFFF, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( supcar3d[carid] , carid, 0.0, 0.0, 0.0);
return 1;
}
if(listitem == 1)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(560, X,Y,Z, 0.0, 149, 149, 60000);
CreatedCars[CreatedCar] = carid;
CreatedCar++;
SetVehicleNumberPlate(carid, "Sup Car");
SetVehicleToRespawn(carid);
PutPlayerInVehicle(playerid, carid, 0);
SetTimerEx("supmotoran",1,0, "i", playerid);
SetTimerEx("suplichtan",1,0, "i", playerid);
SetPVarInt(playerid, "neon", 1);
SetPVarInt(playerid, "pink", CreateObject(18651, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,100.0));
SetPVarInt(playerid, "pink1", CreateObject(18651, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,100.0));
AttachObjectToVehicle(GetPVarInt(playerid, "pink"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "pink1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
sfl1[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,-1000,0,0,0,100);
sfl2[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,-1000,0,0,0,100);
sfl3[GetPlayerVehicleID(playerid)] = CreateObject(19290,0,0,-1000,0,0,0,100);
sfl4[GetPlayerVehicleID(playerid)] = CreateObject(19290,0,0,-1000,0,0,0,100);
sfl5[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(sfl1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.365000,2.250000,0.049999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(sfl2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.405000,2.250000,0.049999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(sfl3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.270000,2.275000,0.019999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(sfl4[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.304999,2.275000,0.019999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(sfl5[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.589999,-0.069999,0.869999,0.000000,0.000000,0.000000);
SetVehicleHealth(playerid,1000);
SendClientMessage(playerid,0x8C00FFFF, "Du hast ein Sultan Sup Car erstellt");
supmobil[playerid] = 1;
new spname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, spname, sizeof(spname));
format(string,sizeof(string),"Sup Car von %s", spname);
supcar3d[carid] = Create3DTextLabel(string, 0x8C00FFFF, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( supcar3d[carid] , carid, 0.0, 0.0, 0.0);
return 1;
}
if(listitem == 2)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(586, X,Y,Z, 0.0, 149, 149, 60000);
CreatedCars[CreatedCar] = carid;
CreatedCar++;
SetVehicleNumberPlate(carid, "Sup Car");
SetVehicleToRespawn(carid);
PutPlayerInVehicle(playerid, carid, 0);
SetTimerEx("supmotoran",1,0, "i", playerid);
SetTimerEx("suplichtan",1,0, "i", playerid);
sfl5[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(sfl5[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.000000,-1.200000,0.700000,0.000000,0.000000,0.000000);
SetVehicleHealth(playerid,1000);
SendClientMessage(playerid,0x8C00FFFF, "Du hast ein Wayfarer Sup Car erstellt");
supmobil[playerid] = 1;
new spname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, spname, sizeof(spname));
format(string,sizeof(string),"Sup Car von %s", spname);
supcar3d[carid] = Create3DTextLabel(string, 0x8C00FFFF, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( supcar3d[carid] , carid, 0.0, 0.0, 0.0);
return 1;
}
}
}//EDIT:: Zeile richtig eingerückt
-
-
Was hat dieser Error zu bedeuten?
Bin neu im Gebrauch mit MySQL (habe gehört soll sehr gut sein)
Ich verstehe nicht, warum ich nicht Connecten kann.
Habe 'Navicat Lite' und 'xampp' installiert.
Was soll ich jetzt tun?Narushi
-
Vielen Dank für eure zahlreichen, guten Feedback's
Übrigens: Falls es Verbesserungsvorschläge geben sollte, könnt ihr sie hier posten..
Werde das dann ein bisschen weiter ausarbeiten -
Vielen dank Caseriino für deine Bewertung .. Werde vllt mal mehrere bzw. größere FS erstellen/hochladen..
-
Vielen Dank habs übrigens gemerkt, habe Download + Pastebin vergessen
Füge schnell hinzu
-
404 Error fobitten
Steht bei mir wenn ich dein link klicke ._.
-
Hey Leute,
ich habe mal ein kleines Event FS erstellt.. Er ist nicht besonderes ( einfach eben )
Die Funktionen:
- Bis zu 5 Events erstellbar
- /createevent [1-5] [Eventart]
- /delevent [1-5]
- /eventlist
- /event [1-5]Es erstellt ganz einfach eine Eventpoint an den man sich mit /event hinporten kann..
Hier sind paar Screens..Benötigt wird::
a_samp
ocmd
sscanf2Spoiler anzeigen /createevent [1-5] [Eventart]Spoiler anzeigen
/event [1-5]Spoiler anzeigen /eventlist
/delevent [1-5]Pastebin (fsevent)
--------------------------
Download Filterscipt
--------------------------
Download Includes -
versteh ich nichtAlso GANZ oben machst du
new TimerJail, TimerKnast; //Damit definierst du die Timer bzw. das ist die timeridDann startest du den Timer beim einbuchten:
TimerKnast = SetTimer("Knastcheck",ZEIT,false);
TimerJail = SetTimer("Jailcheck",ZEIT,false);dann da wo der Timer "gekillt" wird:
KillTimer(TimerKnast);
KillTimer(TimerJail); -
ganz oben:
new TimerKnast, TimerJail;//Beim Einbuchten
TimerKnast = KillTimer("Knastcheck");
TimerJail = KillTimer("Jailcheck");KillTimer(TimerKnast);
KillTimer(TimerJail); -
Danke, musste zwar
kleinigkeit ändern, aber jetzt gehts.. danke -
Es fehlt ja eben keine Klammer :O
Da hat der Fehlererklärbär wohl nicht geholfen
-
Error immernoch da..
stock CreatePickupEx(model,type,Float:X,Float:Y,Float:Z,virtualworld,color,Float:range,string[]) // hier war der fehler, glaube ich zumindest
{
virtualworld = 0;
Create3DTextLabel(string[], color, Float:X, Float:Y, Float:Z, Float:range, virtualworld, 0);
CreatePickup(model,type,Float:X,Float:Y,Float:Z,virtualworld);
return 1;
}Betroffene Zeile::
Create3DTextLabel(string[], color, Float:X, Float:Y, Float:Z, Float:range, virtualworld, 0); -
Hey,
ich bekomme immer einen Error in diesem stock.. Was ist falsch??
stock CreatePickupEx(model,type,Float:X,Float:Y,Float:Z,virtualworld=0,color,Float:range,string[])
{
Create3DTextLabel(string[], color, Float:X, Float:Y, Float:Z, Float:range, 0, 0);
CreatePickup(model,type,Float:X,Float:Y,Float:Z,virtualworld=0);
return 1;
}public OnGameModeInit()
{
CreatePickupEx(1240,2,1,50,50,50,0xFEFEFEFE,3.0,"Heyho");
}.:: FEHLER ::.
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(464) : error 029: invalid expression, assumed zero
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(465) : warning 204: symbol is assigned a value that is never used: "virtualworld"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase1 Error.
-
nice 20/10
-
Facepalm* xD
thx
-
Jo ist auch bestes (finde ich), wenn es ja LAN ist..
Viel Erfolg!
-
-
Hey,
wie bekomme ich diese Errors weg?
Bin kein Neuling, verstehe den Sinn der Errors, aber ich kann sie nicht behebenC:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(934) : error 029: invalid expression, assumed zero
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(934) : warning 215: expression has no effect
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(934) : error 001: expected token: ";", but found "if"
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(936) : error 029: invalid expression, assumed zero
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(936) : warning 215: expression has no effect
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(936) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase4 Errors.
Hier ist Codeschnipsel:
/*932*/if(strcmp(cmdtext, "/tanken", true) == 0)
/*933*/ {
/*934*/ else if(GetPlayerVehicleSeat(playerid) != 0) return SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Fahrzeug (oder kein Fahrer).");
/*935*/ new car = GetPlayerVehicleID(playerid);
/*936*/ else if(TanktGerade[car]) return SendClientMessage(playerid,COLOR_GREY,"Du tankst schon!");
/*937*/ else if(Motor[car] == true) return SendClientMessage(playerid,COLOR_GREY,"Du musst vor dem Tanken den Motor ausschalten.");
/*938*/ new ZuTanken = 100-Tank[car];
/*939*/ new preis = ZuTanken * BENZINPREIS;
/*940*/ if (GetPlayerMoney(playerid)-preis < 0) return SendClientMessage(playerid,COLOR_GREY,"Du hast nicht genug Geld!");
/*941*/ GivePlayerMoney(playerid, -preis);
/*942*/ SendClientMessage(playerid, COLOR_GREEN, "Tanken wird gestartet.");
/*943*/ SetCameraBehindPlayer(playerid);
/*944*/ TogglePlayerControllable(playerid,0);
/*945*/ TanktGerade[car] = true;
/*946*/ tanktimer[playerid] = SetTimerEx("Auftanken",500,true,"i",playerid);
/*947*/ return 1;
/*948*/ }