1481.1182,-1767.5552,18.7958,2.0
Float:sizeThe size of the checkpoint
/Guide Problem
- bL4cK_
- 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 gebe gleich auf
24 errors wenn ich die x,Y,Z reinschreibe
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(748) : error 017: undefined symbol "COLOR_GREY"
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(754) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(754) : error 004: function "OnPlayerExitedMenu" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(759) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(759) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(759) : error 004: function "OnPlayerInteriorChange" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(764) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(764) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(764) : error 004: function "OnPlayerKeyStateChange" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(769) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(769) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(769) : error 004: function "OnRconLoginAttempt" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(774) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(774) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(774) : error 004: function "OnPlayerUpdate" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(779) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(779) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(779) : error 004: function "OnPlayerStreamIn" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(784) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(784) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(784) : error 004: function "OnPlayerStreamOut" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(789) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(789) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(789) : error 004: function "OnVehicleStreamIn" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(794) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(794) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(794) : error 004: function "OnVehicleStreamOut" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(799) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(799) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(799) : error 004: function "OnDialogResponse" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(804) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(804) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(804) : error 004: function "OnPlayerClickPlayer" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(808) : error 030: compound statement not closed at the end of file (started at line 740)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase24 Errors.
-
Poste bitte den ganzen Code, mit den Coordinaten auch.
-
Okay
Ganz oben
new Menu:Guide;Bei "OnGameModeInit"
Guide = CreateMenu("LS Touristen Guide", 2, 200.0, 100.0, 150.0, 150.0);
AddMenuItem(Guide, 0, "Stadthalle");
return 1;
}Bei "OnPlayerCommandText"
if (strcmp("/Guide", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0,1129.0007,-1460.4590,15.7969))
{
ShowMenuForPlayer(Guide,playerid);
}
else
{
SendClientMessage(playerid,GRAU,"Du bist nicht am Noobspawn.");
return 1;
}
}Bei "public OnPlayerSelectedMenuRow"
{
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if(CurrentMenu == Guide)
{
switch(row)
{
case 0: //Stadthalle
{
SetPlayerCheckpoint(playerid,1481.1182,-1767.5552,18.7958,2.0);
SendClientMessage(playerid, COLOR_GREY, "Die Stadthalle wurde auf der Karte makiert");
return 1;
}
}
}Errors
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(748) : error 017: undefined symbol "COLOR_GREY"
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(754) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(754) : error 004: function "OnPlayerExitedMenu" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(759) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(759) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(759) : error 004: function "OnPlayerInteriorChange" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(764) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(764) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(764) : error 004: function "OnPlayerKeyStateChange" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(769) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(769) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(769) : error 004: function "OnRconLoginAttempt" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(774) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(774) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(774) : error 004: function "OnPlayerUpdate" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(779) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(779) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(779) : error 004: function "OnPlayerStreamIn" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(784) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(784) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(784) : error 004: function "OnPlayerStreamOut" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(789) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(789) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(789) : error 004: function "OnVehicleStreamIn" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(794) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(794) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(794) : error 004: function "OnVehicleStreamOut" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(799) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(799) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(799) : error 004: function "OnDialogResponse" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(804) : warning 225: unreachable code
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(804) : error 029: invalid expression, assumed zero
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(804) : error 004: function "OnPlayerClickPlayer" is not implemented
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(808) : error 030: compound statement not closed at the end of file (started at line 740)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase24 Errors.
-
Kapierst du es nicht? oO
Dir fehlt eine Klammer ! beim letzten eine }
-
ehm? nein?
Der fehler liegt in Zeile "747" und nicht ganz unten -
Dann wer es mal schlau den Code davon zu Posten!
// ->
SetPlayerCheckpoint(playerid,1481.1182,-1767.5552,18.7958,2.0); SendClientMessage(playerid, COLOR_GREY, "Die Stadthalle wurde auf der Karte makiert"); return 1; } } } /*muss dir hin ! */ }
-
Bitte schick die Zeile ordentlich.
Ich habe am ende 3x } -
Da müssen aber 4 }}}}
-
Ja das habe ich verstanden.
Aber wo muss dir 4.te } hin?
unten? mitte? wo? -
Zitat
Ich habe am ende 3x }
Am ENDE
-
jezt hab ich noch 1 error
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if(CurrentMenu == Guide)
{
switch(row)
{
case 0:
{
SetPlayerCheckpoint(playerid, 1481.1182,-1767.5552,18.7958,2.0);
}
SendClientMessage(playerid,ROT,"Die Stadthalle wurde auf der Karte makiert");
return 1;
}
}C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(749) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(749) : warning 215: expression has no effect
C:\Users\bL4cK_OuT\Desktop\Server\gamemodes\Reallife.pwn(752) : warning 209: function "OnPlayerSelectedMenuRow" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase1 Error.
-
Die klammer unter SetPlayerCheckpoint muss raus
-
breadfish.de
Hat das Thema geschlossen.