[ SCRIPTING ] So erstellt man einen Bank Raub/System
Bitte um Hilfe. Habe oben den link verwendet.
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(748) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(1492) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(1536) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(1565) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(1636) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(1736) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(1770) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2153) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2183) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2360) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2361) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2395) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2408) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2418) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2447) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2469) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2564) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2579) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2626) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2641) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2694) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2796) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(2926) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(3181) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(3671) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(3681) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(3691) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(3701) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(3713) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(4722) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(5117) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(5303) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(5581) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(5766) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(6485) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(6522) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(6911) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(8241) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(8451) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(8532) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(8596) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(8630) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(8754) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9514) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9520) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9536) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9550) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9564) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9578) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9592) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9606) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9623) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9640) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9654) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9669) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9684) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9849) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9851) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(30324) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(30438) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(30761) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(30764) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(31968) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32034) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32083) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32155) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32182) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32247) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32296) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32368) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32926) : error 010: invalid function or declaration
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32928) : error 010: invalid function or declaration
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32932) : error 021: symbol already defined: "format"
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32937) : error 010: invalid function or declaration
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32940) : error 010: invalid function or declaration
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32942) : error 010: invalid function or declaration
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32945) : error 010: invalid function or declaration
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32948) : error 010: invalid function or declaration
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32951) : error 010: invalid function or declaration
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32953) : error 010: invalid function or declaration
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32955) : error 010: invalid function or declaration
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32957) : error 010: invalid function or declaration
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32959) : error 021: symbol already defined: "string"
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(32968) : error 010: invalid function or declaration
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9865) : warning 204: symbol is assigned a value that is never used: "Bankraub"
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9865 -- 32971) : warning 203: symbol is never used: "sendername"
C:\Users\Martin\Desktop\samp03dsvr_R2_win32\gamemodes\new.pwn(9865 -- 32971) : warning 203: symbol is never used: "string"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
14 Errors.
Function Bankraub_erfolg(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,35.0,x,y,z))//Das Bank interior
{
//UnFreezePlayer(playerid); //muss net sein
new string[128];//Die Länge des textes ^^
format(string,sizeof(string),"Du hast Das Geld erbeutet! Gehe jetzt schnell weg!");//Die Nachricht an den User
GivePlayerMoney(playerid, DIE BEUTE DIE MAN BEIM BANKRAUB HABEN SOLL);//Das Geld
SendClientMessage(playerid,COLOR_GREEN,string);//Die Nachricht ^^
SetTimerEx("Function BankRob_Cop",80000+random(90000),0,"i",playerid); // Nach 1 minute
}
else
{
SendClientMessage(playerid,0xAA3333AA," Da du die Bank verlassen hast , hast du kein geld!!");//Fals er weg geht
return 1;
}
return 1;
}
Function BankRaub_Reset()
{
Bankraub = 0;//Setz den BankRaub wieder auf 0 , sprich mann kan nochmal ausrauben
return 1;
}
Function BankRob_Cop(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)//die cops ^^
{
if(IsPlayerConnected(i))//das muss auch net umbedingt sein ^^
{
if(DEINE COP ABFRAGE(i))//Hier bitte deine Cop Anfrage rein
{
new sendername[MAX_PLAYER_NAME],string[123];//Hier der Name des verbrechers
GetPlayerName(playerid,sendername,sizeof(sendername));//Hier wird er aufgezählt
SendClientMessage(i,TEAM_BLUE_COLOR,"HQ: Achtung! Das Sicherheits System der Bankmelded!");//Die Nachticht
format(string,sizeof(string),"HQ: Der Täter heißt %s und befindet sich noch im Schiff!",sendername);//Hier wird der Täter verpetzt.
SendClientMessage(i,TEAM_BLUE_COLOR,string);//Hier eure Farbe
}
}
}
return 1;
}