GTAvision.com - Forum - Grand Theft Auto News, Downloads, Community and more...

Position: Grand Theft Auto: San Andreas » Multiplayer » Godfather-Problem » Druckansicht
Rastla, 15.10.2009, 19:50
Code:

1
2
3
4
5
6
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(14) : fatal error 100: cannot read from file: "utils"

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


utils.inc hab ich im Pawno Includes Ordner drin

Wenn ich das #include <utils> rausnehme dann kommt der gleiche error nur mit morphinc.inc


Hoffe mir kann wer helfen
Robdeflop1, 15.10.2009, 20:26
Sind die denn richtig?
Also vielleicht sin die ja fehlerhaft^^
Mach ma morphinc auch ma raus

MFG, RoB
Rastla, 15.10.2009, 20:31
utils.inc:
Code:
1
2
Also, viel schneller? xD
Schnelligkeit hängt doch vom Internet-Anbieter ab, nicht von Browser, wenn dann nur teilweise, weil 
bei mir läuft Firefox sehr schnell


morphinc.inc:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
new pdistance = 1;
forward NameTimer();
Float:GetPointDistanceToPointExMorph(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)
{
new Float:x, Float:y, Float:z;
x = x1-x2;
y = y1-y2;
z = z1-z2;
return floatsqroot(x*x+y*y+z*z);
}
stock SetPDistance(dista)
{
pdistance = dista;
}
stock GetPDistance()
{
return pdistance;
}
stock EnableDistancedNameTag(delay)
{
SetTimer("NameTimer",delay,1);
}
forward NameTimer();
public NameTimer()
   {
   for(new i = 0;i < MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i))
    {
    for(new q = 0;q < MAX_PLAYERS;q++)
    {
   if(IsPlayerConnected(q))
   {
    new Float:p1x;
   new Float:p1y;
   new Float:p1z;
   new Float:p2x;
   new Float:p2y;
   new Float:p2z;
   if(IsPlayerConnected(i) && IsPlayerConnected(q))
   {
   GetPlayerPos(i,p1x,p1y,p1z);
    GetPlayerPos(q,p2x,p2y,p2z);
   if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
      {
       ShowPlayerNameTagForPlayer(i,q,1);
       }
   else
      {
      ShowPlayerNameTagForPlayer(i,q,0);
      }
   }}}}}
}


Wenn ich die beiden #include rausmache:

Code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(6715) : error 017: undefined symbol "SetPDistance"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8512) : warning 217: loose indentation
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8538) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8543) : warning 217: loose indentation
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8554) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8813) : warning 217: loose indentation
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8895) : warning 217: loose indentation
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8908) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8941) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(10514) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(10566) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(10828) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(11018) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(11760) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(12243) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(13623) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(13973) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(14154) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(14221) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(14328) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(14486) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(14526) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(14621) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(14930) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(15007) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(15058) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(15096) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(15201) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(15260) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(15324) : error 017: undefined symbol "ReturnUser"
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(15364) : error 017: undefined symbol "ReturnUser"

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Rastla, 15.10.2009, 20:33
sry,für denn doppelpost, aber jetzt kommen plötzlich nicht mehr die beiden errors sonder die:
Code:

1
2
3
4
5
6
7
8
9
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8512) : warning 217: loose indentation
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8538) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8543) : warning 217: loose indentation
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8813) : warning 217: loose indentation
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\gamemode\GF
F.pwn(8895) : warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Warnings.


sry, nochmal
Robdeflop1, 15.10.2009, 20:40
HI

Loose identitation heißt dass du z.B. n tab vergessen hast oda so.

Beispiel:

public OnPlayerConnect:
{
SetPlayerPos(playerid, blablabla);
return 1;
}

Da ist dann das return falsch, dh das muss dann auf der selben ebene sein wie setplayerpos. Das is
einfach das wegzubekommen.
Einfach zeile guggn.
Un numer of dingens, da stimmt dann was nit, ich glaub wenn man dann z.B. in der klammer von
setplayerpos dann die playerid eingibt, dann die coords un dann noch ne coordinate oda ne zahl
stehen hat, die da nicht stehen sollte. Der syntax (richtig geschrieben?) stimmt also nit.

MFG, RoB

PS: pls korrigiert mich wenn was nit funzt

EDIT: Un der code von utils hast du bestimmt falsch eingefügt, warst bestimmt mit nem freund am
chatten oda so, un hast das dann ausversehen eingefügt :D
Rastla, 15.10.2009, 20:48
Danke, das mit den Loose Idention hab ich jetzt kapiert, muss nur noch mit Tabulator-Taste
rumspielen^^

nur, dsa Number of argumentes does not match definiton.
Was ist hier falsch?

SendClientMessage(playerid,0, "\n", "Du Bist Kein Admin oO!");
Nico, 15.10.2009, 20:51
Code:
1
    SendClientMessage(playerid, COLOR, "MESSAGE");


Das zeigts doch gleich - 3 Parameter, bei dir sinds 4 ;)
Robdeflop1, 15.10.2009, 21:09
genau das meinte ich^^
und morphinc sieht bei mir n bissl anders aus.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
new pdistance = 1;
forward NameTimer();
Float:GetPointDistanceToPointExMorph(Float:mx1,Float:my1,Float:mz1,Float:mx2,Float:my2,Float:mz2)
{
new Float:x, Float:y, Float:z;
x = mx1-mx2;
y = my1-my2;
z = mz1-mz2;
return floatsqroot(x*x+y*y+z*z);
}
stock SetPDistance(dista)
{
pdistance = dista;
}
stock GetPDistance()
{
return pdistance;
}
stock EnableDistancedNameTag(delay)
{
SetTimer("NameTimer",delay,1);
}
forward NameTimer();
public NameTimer()
   {
   for(new i = 0;i < MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i))
    {
    for(new q = 0;q < MAX_PLAYERS;q++)
    {
   if(IsPlayerConnected(q))
   {
    new Float:p1x;
   new Float:p1y;
   new Float:p1z;
   new Float:p2x;
   new Float:p2y;
   new Float:p2z;
   if(IsPlayerConnected(i) && IsPlayerConnected(q))
   {
   GetPlayerPos(i,p1x,p1y,p1z);
    GetPlayerPos(q,p2x,p2y,p2z);
   if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
      {
       ShowPlayerNameTagForPlayer(i,q,1);
       }
   else
      {
      ShowPlayerNameTagForPlayer(i,q,0);
      }
   }}}}}
}


Und utils schaut so aus:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
IsNumeric(const string[])
{
   for (new i = 0, j = strlen(string); i < j; i++)
   {
      if (string[i] > '9' || string[i] < '0') return 0;
   }
   return 1;
}

ReturnUser(text[], playerid = INVALID_PLAYER_ID)
{
   new pos = 0;
   while (text[pos] < 0x21) // Strip out leading spaces
   {
      if (text[pos] == 0) return INVALID_PLAYER_ID; // No passed text
      pos++;
   }
   new userid = INVALID_PLAYER_ID;
   if (IsNumeric(text[pos])) // Check whole passed string
   {
      // If they have a numeric name you have a problem (although names are checked on id failure)
      userid = strval(text[pos]);
      if (userid >=0 && userid < MAX_PLAYERS)
      {
         if(!IsPlayerConnected(userid))
         {
            /*if (playerid != INVALID_PLAYER_ID)
            {
               SendClientMessage(playerid, 0xFF0000AA, "User not connected");
            }*/
            userid = INVALID_PLAYER_ID;
         }
         else
         {
            return userid; // A player was found
         }
      }
      /*else
      {
         if (playerid != INVALID_PLAYER_ID)
         {
            SendClientMessage(playerid, 0xFF0000AA, "Invalid user ID");
         }
         userid = INVALID_PLAYER_ID;
      }
      return userid;*/
      // Removed for fallthrough code
   }
   // They entered [part of] a name or the id search failed (check names just incase)
   new len = strlen(text[pos]);
   new count = 0;
   new name[MAX_PLAYER_NAME];
   for (new i = 0; i < MAX_PLAYERS; i++)
   {
      if (IsPlayerConnected(i))
      {
         GetPlayerName(i, name, sizeof (name));
         if (strcmp(name, text[pos], true, len) == 0) // Check segment of name
         {
            if (len == strlen(name)) // Exact match
            {
               return i; // Return the exact player on an exact match
               // Otherwise if there are two players:
               // Me and MeYou any time you entered Me it would find both
               // And never be able to return just Me's id
            }
            else // Partial match
            {
               count++;
               userid = i;
            }
         }
      }
   }
   if (count != 1)
   {
      if (playerid != INVALID_PLAYER_ID)
      {
         if (count)
         {
            SendClientMessage(playerid, 0xFF0000AA, "Multiple users found, please narrow earch");
         }
         else
         {
            SendClientMessage(playerid, 0xFF0000AA, "No matching user found");
         }
      }
      userid = INVALID_PLAYER_ID;
   }
   return userid; // INVALID_USER_ID for bad return
}


Viel glück ; )

MFG, RoB
Rastla, 16.10.2009, 20:33
Also, wenn ich die GFF.pwn compile, dann kommt die Warning :shock:

Code:

1
2
3
4
5
C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\German Godfather-GGF v.2.00\Pawno\inclu
de\morphinc.inc(35) : warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.


*nee* *nee* *nee* *nee*

Zeile 34-36

Code:
1
2
3
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_WHITE 0xFFFFFFAA
Rafioso, 16.10.2009, 21:32
Dein Script sollte deswegen trotzdem funktionieren. Es geht hierbei nur um eine Formatierungssache.
Rastla, 16.10.2009, 22:13
ne funzt ned:

http://img5.imagebanana.com/img/ygx8rhsc/Unbenannt.jpg
Rafioso, 16.10.2009, 22:14
Wenn der Godfather nicht SA-MP 0.3 kompatibel ist, dann hast du pech gehabt.
Auf jedenfall liegt das nicht, an den Warnungen, die du vorhin gepostet hast.
Rastla, 17.10.2009, 10:20
Grade herausgefunden, dass wenn ich es mit nem SA-MP 0.2x Pawno oder SA-MP 0.3x Pawno konvertiere,
dann kommt der Error dass er nicht vom File utils.inc lesen kann, aber wenn ich es mit dem Pawno
das dabei war compile, dann kommt bloß die Warning :roll:


//edit:

Hab's halbwegs gefixt. Es kommen keine Warnings mehr, nur 2 Probleme:

Im Server(DOS-Fenster) läuft der Server aber es kommt: scriptfiles/BREAD_OED.txt not found
i.was mit EnableTirePopping();
noch was mit pickups max 100 current pickups 80
~~

und der Server startet alle 5 Sec neu


________________________________________________

Falls das nützlich ist, Ausschnitt aus Server.cfg

ZitatZitat:

[14:07:52] German-Reallife
[14:07:52] _____________________
[14:07:52] Copyright By [GRG]
[14:07:52]
[14:08:04]
[14:08:04]
[14:08:04] German-Reallife
[14:08:04] _____________________
[14:08:04] Copyright By [GRG]
[14:08:04]
[14:08:07] Incoming connection: 127.0.0.1:60685
[14:08:07] [join] Player has joined the server (0:127.0.0.1)

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3-beta-RC8, (C)2005-2009 SA-MP Team

[14:11:56] filterscripts = "" (string)
[14:11:56]
[14:11:56] Server Plugins
[14:11:56] --------------
[14:11:56] Loaded 0 plugins.

[14:11:56]
[14:11:56] Filter Scripts
[14:11:56] ---------------
[14:11:56] Loaded 0 filter scripts.

[14:11:56] EnableTirePopping() function is removed.
[14:11:56] Pickups Max = 100, Current Pickups = 80
[14:11:56]
[14:11:56]
[14:11:56] German-Reallife
[14:11:56] _____________________
[14:11:56] Copyright By [GRG]
[14:11:56]
[14:12:08] EnableTirePopping() function is removed.
[14:12:08] Pickups Max = 100, Current Pickups = 80
[14:12:08]
[14:12:08]
[14:12:08] German-Reallife
[14:12:08] _____________________
[14:12:08] Copyright By [GRG]
[14:12:08]



Keiner eine Lösung?
Rastla, 19.10.2009, 18:24
So, hab nun diese includes weg und die Dateien direkt ins Gamemode kopiert. Es kommen keine Errors
nur startet der Server halt immer neu...

Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3-beta-RC8, (C)2005-2009 SA-MP Team

[14:11:56] filterscripts = "" (string)
[14:11:56]
[14:11:56] Server Plugins
[14:11:56] --------------
[14:11:56] Loaded 0 plugins.

[14:11:56]
[14:11:56] Filter Scripts
[14:11:56] ---------------
[14:11:56] Loaded 0 filter scripts.

[14:11:56] EnableTirePopping() function is removed.
[14:11:56] Pickups Max = 100, Current Pickups = 80
[14:11:56]
[14:11:56]
[14:11:56] German-Reallife
[14:11:56] _____________________
[14:11:56] Copyright By [GRG]
[14:11:56]
[14:12:08] EnableTirePopping() function is removed.
[14:12:08] Pickups Max = 100, Current Pickups = 80
[14:12:08]
[14:12:08]
[14:12:08] German-Reallife
[14:12:08] _____________________
[14:12:08] Copyright By [GRG]
[14:12:08]


[14:12:08] German-Reallife
[14:12:08] _____________________
[14:12:08] Copyright By [GRG]
[14:12:08]


[14:12:08] German-Reallife
[14:12:08] _____________________
[14:12:08] Copyright By [GRG]
[14:12:08]
...
Robdeflop1, 19.10.2009, 21:10
Hi

Ich bin jetzt auch auf 0.3 umgestiegen.
Ich glaub ich hab den selben fehler gemacht wie du^^
Ich bekam auch die errors mit den includes.
Hast du vielleicht vergessen die includes vom samp server 0.2x in den pawno ordner von 0.3a zu
kopieren?

MFG, RoB
Rastla, 20.10.2009, 09:51
ZitatRastla hat folgendes geschrieben:
So, hab nun diese includes weg und die Dateien direkt ins Gamemode kopiert. Es kommen keine Errors
nur startet der Server halt immer neu...



Direkt im Gamemode und keine Errors
SMG, 13.11.2009, 15:17
Ich hab keine Ahnung ob es noch um diesen Fehler
(EnableTirePopping();) geht aber da geht es nur darum,
dass diese Funktion in 3.0 nicht mehr Existiert....
GTAvision.com :: Forumregeln :: FAQ :: Impressum :: Kontakt :: RDRvision.com :: LANOIREvision.com :: MaxPayneVision.com
NetVisionWork.NET
.: © 2006-2014 by GTAvision.com :.

Rockstar GamesTake-Two Interactive Deutschland

Free Grand Theft Auto Downloads