Zitatehm gehört sowas nicht in scripting base rein?? ..
Ja,
es ist ja ein wunsch das es geht!
Zitatehm gehört sowas nicht in scripting base rein?? ..
Ja,
es ist ja ein wunsch das es geht!
Ja,
ich drücke "alt"
new's:
new sfpd1;
new sfpd2;
new sfpd3;
dan erklärung:
sfpd1 = CreateObject(980, -1571.962890625, 661.53253173828, 8.9608917236328, 0, 0, 270.27026367188);
sfpd2 = CreateObject(971, -1700.1300048828, 684.7265625, 26.201324462891, 0, 0, 270.27026367188);
sfpd3 = CreateObject(972, -1633.2635498047, 691.58752441406, 6.1875, 0, 0, 270.27026367188);
forwards:
forward sfpd1timer();
forward sfpd2timer();
forward sfpd3timer();
public:
public sfpd1timer()
{
MoveObject (sfpd1,-1571.962890625, 661.53253173828, 8.9608917236328, 4);
return 1;
}
public sfpd2timer()
{
MoveObject (sfpd2,-1700.1300048828, 684.7265625, 26.201324462891, 4);
return 1;
}
public sfpd3timer()
{
MoveObject (sfpd3,-1633.2635498047, 691.58752441406, 6.1875, 4);
return 1;
}
das wars^^
//edit... [hat sein grund]
Also wieso wollen die Tore nicht
aufgehen wenn man es im Auto macht?
Also zu Fuß gehen sie auf;(
Danke^^
Aber kannst du es bitte wo anderst uploaden
,weil da muss man seine Daten angeben
Hallo,
ich hab ne frage...
... also ich hab Tore gemacht
aber die wollen net auf wenn man im Auto
sitzt
Hier:
if(newkeys == (KEY_WALK))
{
if (PlayerToPoint(40.0, playerid, -1571.9320068359, 661.54284667969, 8.1212449073792))
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
new car = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(playerid, car))
{
MoveObject(sfpd1,-1571.9320068359, 661.54284667969, 3.1212449073792, 4);
SetTimer("sfpd1timer", 5000, 0);
}
}
}
else if (PlayerToPoint(40.5, playerid, -1700.0808105469, 684.21929931641, 26.706785202026))
{// PD--
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
new car = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(playerid, car))
{
MoveObject(sfpd2,-1700.0808105469, 684.21929931641, 16.706785202026, 4);
SetTimer("sfpd2timer", 5000, 0);
}
}
}
else if (PlayerToPoint(45.5, playerid, -1633.2602539063, 691.55584716797, 6.4729248285294))
{// PD--
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
new car = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(playerid, car))
{
MoveObject(sfpd3,-1633.2602539063, 691.55584716797, -1.4729248285294, 4);
SetTimer("sfpd3timer", 5000, 0);
}
}
}
}
Wieso wollen sie nicht?
Danke
mfg Pascal
Also ich finde es geil!
Mit was machst du das?
und darf es jeder benutzen?
Also ich Check in mein server ab ob der Spieler in ein Flugzeug / Heli ist
wenn ja dann darf er igal wie hoch fliegen
aber wenn der in ein Auto / zu Fuß höher als der Server erlaubt ist dann
bekomm ich Admin-Warnung und dann kann ihc ihn bannen!
Danke aber das macht mehr Errors...
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27454) : warning 217: loose indentation
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27473) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27527) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27537) : warning 209: function "OnDialogResponse" should return a value
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27538) : error 054: unmatched closing brace ("}")
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27539) : error 010: invalid function or declaration
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27542) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27543) : error 010: invalid function or declaration
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27544) : error 010: invalid function or declaration
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27547) : error 021: symbol already defined: "ABroadCast"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27552) : error 010: invalid function or declaration
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27554) : error 021: symbol already defined: "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27556) : error 010: invalid function or declaration
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27557) : error 010: invalid function or declaration
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27560) : error 021: symbol already defined: "ABroadCast"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27567) : error 010: invalid function or declaration
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27569) : error 010: invalid function or declaration
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27571) : error 010: invalid function or declaration
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27578) : error 010: invalid function or declaration
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27585) : error 010: invalid function or declaration
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27699) : warning 203: symbol is never used: "str"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
16 Errors.
Alles anzeigen
Leider geht das net
am besten damit:
http://forum.sa-mp.com/index.php?topic=143025
Mfg Pascal
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27419) : warning 217: loose indentation
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27482) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27498) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27500) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27501) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27502) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27502) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27502) : error 029: invalid expression, assumed zero
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27502) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
Alles anzeigen
Hallo,
ich hab ein /report dialog gemacht:
if(strcmp(cmd, "/report", true) == 0)//REPORTMENUE
{
if(IsPlayerConnected(playerid))
{
ShowPlayerDialog(playerid, REPORTMENUE, DIALOG_STYLE_LIST, "Wähle deine Kategorie aus", "Cheater Report\nReport\nAllgemeine Frage\nSonstiges", "Auswählen", "Abbrechen");
}
return 1;
}
und da bei dialogRe..
if(dialogid == REPORTMENUE)
{
if(response)
{
if(listitem == 0)
{
new reportname[64];
new reportstring[128];
GetPlayerName(playerid,reportname,sizeof(reportname));
format(reportstring,sizeof(reportstring),"Willkommen im Cheatersystem\n\n\n Name: %s.\n\nWas möchtest du melden?\n\n\n",reportname);
ShowPlayerDialog(playerid,REPORTMENU,DIALOG_STYLE_INPUT,"CHEATERSYSTEM",reportstring,"Senden","Abbrechen");
}
if(listitem == 1)
{
new chname[64];
new chstring[128];
GetPlayerName(playerid,chname,sizeof(chname));
format(chstring,sizeof(chstring),"Willkommen im Reportsystem\n\n\n Name: %s.\n\nWas möchtest du melden?\n\n\n",chname);
ShowPlayerDialog(playerid,REPORTMENU,DIALOG_STYLE_INPUT,"Reportsystem",chstring,"Senden","Abbrechen");
}
if(listitem == 2)
{
new fragname[64];
new fragstring[128];
GetPlayerName(playerid,fragname,sizeof(fragname));
format(fragstring,sizeof(fragstring),"Willkommen im Fragesystem\n\n\n Name: %s.\n\nWas möchtest du fragen?\n\n\n",fragname);
ShowPlayerDialog(playerid,REPORTMENU,DIALOG_STYLE_INPUT,"Fragesystem",fragstring,"Senden","Abbrechen");
}
if(listitem == 3)
{
new sonname[64];
new sonstring[128];
GetPlayerName(playerid,sonname,sizeof(sonname));
format(sonstring,sizeof(sonstring),"Willkommen im sonstige Meldungssystem\n\n\n Name: %s.\n\nWas möchtest du uns mitteilen?\n\n\n",sonname);
ShowPlayerDialog(playerid,REPORTMENU,DIALOG_STYLE_INPUT,"Sonstige Meldungssystem",sonstring,"Senden","Abbrechen"); }
}
}
if(dialogid == REPORTMENU)
{
new str[160];
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
for (new i = 0; i < MAX_PLAYER_NAME; i++)
if (str[i] == '_')
str[i] = ' ';
format(str, sizeof(str), "[ID:%d] %s meldet Cheater: %s",playerid, str, (inputtext));
ABroadCast(COLOR_YELLOW,str,1);
SendClientMessage(playerid, COLOR_YELLOW, "Dein Cheat-Report wurde an die Admins gesendet!");
}
}
}
if(dialogid == CHEATERMENU)
{
new stra[160];
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
for (new i = 0; i < MAX_PLAYER_NAME; i++)
if (str[playerid] == '_')
str[playerid] = ' ';
format(str, sizeof(str), "[ID:%d] %s meldet: %s",playerid, str, (inputtext));
ABroadCast(COLOR_YELLOW,str,1);
SendClientMessage(playerid, COLOR_YELLOW, "Dein Report wurde an die Admins gesendet!");
}
}
}
if(dialogid == FRAGEMENU)
{
new str[160];
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
for (new i = 0; i < MAX_PLAYER_NAME; i++)
if (str[i] == '_')
str[i] = ' ';
format(str, sizeof(str), "[ID:%d] %s fragt: %s",playerid, str, (inputtext));
ABroadCast(COLOR_YELLOW,str,1);
SendClientMessage(playerid, COLOR_YELLOW, "Deine 'Frage' wurde an die Admins gesendet!");
}
}
}
if(dialogid == SONMENU)
{
new str[160];
GetPlayerName(playerid, str, MAX_PLAYER_NAME);
for (new i = 0; i < MAX_PLAYER_NAME; i++)
if (str[i] == '_')
str[i] = ' ';
format(str, sizeof(str), "[ID:%d] %s möchtet mitteilen: %s",playerid, str, (inputtext));
ABroadCast(COLOR_YELLOW,str,1);
SendClientMessage(playerid, COLOR_YELLOW, "Dein Text wurde an die Admins gesendet!");
}
}
}
if(dialogid == hotel) //
{
if(response)
{
if(listitem == 0) // Zimmer mieten
{
PlayerInfo[playerid][pOrigin] = 2;
SetPlayerPos(playerid,-2422.3594,337.7117,37.0023);
SendClientMessage(playerid, COLOR_YELLOW, "Du hast dir jetzt für 200$ ein Zimmer gemietet.");
SendClientMessage(playerid, COLOR_YELLOW, "Nach dem nächsten Payday wird deine Wohnung gekündigt!");
}
if(listitem == 1) // Zimmer anschauen
{
SetPlayerInterior(playerid,12);
SetPlayerPos(playerid,445.16778564453,509.36322021,1001.41949462);
}
}
}
Aber ich bekomme i-wie diese Errors:
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27419) : warning 217: loose indentation
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27482) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27498) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27500) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27501) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27502) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27502) : error 017: undefined symbol "str"
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27502) : error 029: invalid expression, assumed zero
C:\Users\Pascal\Desktop\GF Probe\gamemodes\gf.pwn(27502) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
Alles anzeigen
Wieso bekomme ich diese Errors?
Wär net wenn ihr mir helfen könnt...
Danke
Mfg Pascal
meinst du vill. Camera hack?
Hier ich hab mal ein Vid. also
DIE SPEICHERUNGEN KOMMEN IMMER SELBER!!!!
ICH MACH NIX
Bild erwünscht