/maut
- FiLL3FL0WS
- Geschlossen
- Erledigt
-
-
Welche Erros?
-
Die hier =>
C:\Users\****\Desktop\maut.pwn(11) : warning 217: loose indentation
C:\Users\****\Desktop\maut.pwn(15) : error 076: syntax error in the expression, or invalid function call
C:\Users\****\Desktop\maut.pwn(15) : error 029: invalid expression, assumed zero
C:\Users\****\Desktop\maut.pwn(15) : warning 215: expression has no effect
C:\Users\****\Desktop\maut.pwn(15) : error 001: expected token: ";", but found ")"
C:\Users\****\Desktop\maut.pwn(15) : fatal error 107: too many error messages on one line -
Die Zeile bitte einmal.
-
#include <a_samp>
public OnFilterScriptInit()
{
print("Loaded");
new MautStation1;MautStation1 = CreateObject(5837,2117.53,848.988,7.33973,0.0,0.0,180.0);
if(strcmp,"/auf",true)==0);
{
if(IsPlayerInRangeOfPoint(playerid,10,2115.39,855.229,7.24);
{
GivePlayerMoney(playerid,-5);
SendClientMessage(playerid,0xA1FF00FF,"5$ bezahlt, viel Spaß bei der Weiterfahrt");
MoveObject(Maut4,2115.39,855.229,0.0,3.5);
MoveObject(MautStation1,0.0,0.0,0.0,0.0);
MoveObject(Maut1,0.0,0.0,0.0,0.0);
MoveObject(Maut2,0.0,0.0,0.0,0.0);
MoveObject(Maut3,0.0,0.0,0.0,0.0);
MoveObject(Maut5,0.0,0.0,0.0,0.0);
SetTimer("MautTorTimer1",5000,0);
}
}
public OnFilterScriptExit()
{
print("UNLOADED");return 1;
} -
Ich frage mich, wo du return 1; stehen hast?
-
nen Cmd kommt doch nich bei OnFilterScriptInit hin? o0 zum anderen, musst du, wenn ud mehrere Tore hast, mehrere if(IsPlayerInRangeOfPint())) abfragen machen, nich nur eine^^
-
WO muss ich jetzt return 1; einfügen?
-
if(strcmp,"/auf",true)==0);
{
if(IsPlayerInRangeOfPoint(playerid,10,2115.39,855.229,7.24);
{
GivePlayerMoney(playerid,-5);
SendClientMessage(playerid,0xA1FF00FF,"5$ bezahlt, viel Spaß bei der Weiterfahrt");
MoveObject(Maut4,2115.39,855.229,0.0,3.5);
MoveObject(MautStation1,0.0,0.0,0.0,0.0);
MoveObject(Maut1,0.0,0.0,0.0,0.0);
MoveObject(Maut2,0.0,0.0,0.0,0.0);
MoveObject(Maut3,0.0,0.0,0.0,0.0);
MoveObject(Maut5,0.0,0.0,0.0,0.0);
SetTimer("MautTorTimer1",5000,0);
}
return 1;
} -
Danke
Es geht jetzt ohne die Errors
Vielen Dank für eure Hilfe
.:CLOSED:.
-