Guten Morgen Breadfisher.
Ich habe erneut ein Problem was mein Script angeht.
Es geht um mein /abefehle System,
wobei es eigentlich Richtig sein sollte. c_C
Ich meine, ich habe es beinahe genau so gemacht,
wie ich es bei meinen Stats gemacht habe, doch merkwürdigerweise kommen dauernd Errormeldungen,
wobei ich nicht weiß was ich machen soll. =(
Hoffe ihr könnt mir hierbei Behilflich sein:
Wenn ich es so mache:
if(strcmp(cmdtext,"/abefehle",true)==0)
{
new string[512];
format(string,sizeof(string),"{E1FF00}Moderator: {FFFFFF}/aduty (AdminModus)| /a (AdminChat)| /kick (Spieler Kicken)| /goto\n{FF6E00}Supporter: {FFFFFF}/tban (TimeBan)| /ban (Spieler Bannen)\n{00A5FF}Administrator: {FFFFFF}/veh (Fahrzeug Spawnen)| /noooc (OOC Chat an/aus schalten)\n{D70000}Communitymanagement: {FFFFFF}/setadmin (Jemanden im Team Einladen)| /makeleader(Jemanden zum Leader machen)| /gmx (Restarten)| /givemoney (Dir 2000,00$ geben)");
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"{00A5FF}Adminbefehle",string,"Abbrechen","Abbrechen");
return 1;
}
Kommen die Errormeldungen:
ZitatAlles anzeigen
D:\Samp - Pawn Ordner\SaMp Pawno\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\pawno\include\md5.inc(312) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(134) : warning 202: number of arguments does not match definition
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(135) : warning 202: number of arguments does not match definition
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(948) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1002) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1023) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1041) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1053) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1148) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1202) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1227) : error 075: input line too long (after substitutions)
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1229) : warning 217: loose indentation
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1229) : error 017: undefined symbol "FFFFFF"
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1229) : warning 217: loose indentation
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1229) : error 029: invalid expression, assumed zero
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1229) : error 017: undefined symbol "makeleader"
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1229) : fatal error 107: too many error messages on one line
Jedoch wenn ich es mit dem hier, anstatt mit dem anderem mache (Siehe "format"):
format(string,sizeof(string),"{E1FF00}Moderator: {FFFFFF}/aduty (AdminModus)\n{E1FF00}Moderator: {FFFFFF}/a (AdminChat)\n{E1FF00}Moderator: {FFFFFF}/kick (Spieler Kicken)\n{E1FF00}Moderator: {FFFFFF}/goto\n{FF6E00}Supporter: {FFFFFF}/tban (TimeBan)\n{FF6E00}Supporter:{FFFFFF} /ban (Spieler Bannen)\n{00A5FF}Administrator: {FFFFFF}/veh (Fahrzeug Spawnen) \n{00A5FF}Administrator: {FFFFFF}/noooc (OOC Chat an/aus schalten)\n{D70000}Communitymanagement: {FFFFFF}/setadmin (Jemanden im Team Einladen)\n{D70000}Communitymanagement: {FFFFFF}/makeleader(Jemanden zum Leader machen)\n{D70000}Communitymanagement: {FFFFFF}/gmx (Restarten)\n{D70000}Communitymanagement: {FFFFFF}/givemoney (Dir 2000,00$ geben)");
Kommen diese Fehlermeldungen... was ist nun Richtig...öh, bzw Falsch?
ZitatAlles anzeigenD:\Samp - Pawn Ordner\SaMp Pawno\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\pawno\include\md5.inc(312) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(134) : warning 202: number of arguments does not match definition
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(135) : warning 202: number of arguments does not match definition
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(948) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1002) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1023) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1041) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1053) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1148) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1202) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1227) : error 075: input line too long (after substitutions)
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1229) : warning 217: loose indentation
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1229) : error 017: undefined symbol "FFFFFF"
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1229) : warning 217: loose indentation
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1229) : error 029: invalid expression, assumed zero
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1229) : error 017: undefined symbol "makeleader"
D:\Samp - Pawn Ordner\SaMp Pawno\gamemodes\VenturasRolePlayScript.pwn(1229) : fatal error 107: too many error messages on one line
Hoffe ihr könnt mir bei meinem Problemchen helfen.