Hallo Scripter,
ich habe nun auch angefangen mal so etwas zu scripten, jezt wollte ich von euch wissen ob das so stimmt oder was ich verbessern sollte?
hier mein eigener teil script ...^^
new schaufeln[MAX_PLAYERS];//schaufeln
public schaufeln(playerid)
{
schaufeln[playerid] = 0;
new string[128];
format(string,sizeof(string),"Du kannst nun wieder schaufeln!");
SendClientMessageToAll(ROT,string);
return 1;
}
if(strcmp(cmd,"/schaufeln",true) == 0)
{
if(schaufeln[playerid] == 1)return SendClientMessage(playerid,ROT,"Du hast erst gerade eben geschaufelt und musst nun 10 Minuten warten!");
if(IsPlayerInRangeOfPoint(playerid,2.0,-2187.6255,1825.4515,5.3676))return SendClientMessage(playerid,COLOR_RED,"Du bist am Sandberg!");
{
if(SetPlayerWeapons,6,1))return SendClientMessage(playerid,COLOR_RED,"Du hast keine Schaufel!");
{
GivePlayerMoney,300);
SendClientMessage(playerid,0x004BFFFF,"Du hast erfolgreich Sand abgeschaufelt und bekommst 300$ lohn");
SetTimer("schaufeln",3600000,0);
schaufeln[playerid] = 1;
return 1;
}
}
}
Bekomme leider viele Error, wo ist der Fehler?
Errors:
ZitatAlles anzeigenC:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\pawno\include\M_Bot.inc(148) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\pawno\include\M_Bot.inc(286) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\pawno\include\M_Bot.inc(293) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\pawno\include\M_Bot.inc(813) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(2954) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(2997) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(3025) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(3092) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(3423) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(3686) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4111) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4445) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4477) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4509) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4542) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4548) : error 021: symbol already defined: "schaufeln"
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4552) : error 021: symbol already defined: "format"
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4554) : error 010: invalid function or declaration
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4560) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4598) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4608) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4629) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4724) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4739) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4786) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4801) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4854) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(4984) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(5826) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(6437) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(6447) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(6457) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(6466) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(6475) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(6484) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(6493) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(6502) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(6511) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(6520) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(6531) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(6951) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(8221) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(8262) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(8358) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(9527) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(10513) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(10567) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(10966) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(11732) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(18613) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(18772) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(18834) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(18866) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19506) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19544) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19582) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19792) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19798) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19814) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19828) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19842) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19856) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19870) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19884) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19901) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19915) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19929) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19944) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19972) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(19986) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(20050) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(21294) : error 017: undefined symbol "SetPlayerWeapons"
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(21294) : error 029: invalid expression, assumed zero
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(21294) : warning 215: expression has no effect
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(21294) : error 001: expected token: ";", but found "return"
C:\Users\Andreas\Desktop\Alles Raluno\Raluno_Server_Aktuell\gamemodes\Raluno.pwn(21294) : 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.
Danke schonmal!
Gruß
Andy