Function Reinziehenvorne(playerid)
{
if(IsPlayerConnected(playerid))
{
giveplayerid = ReturnUser(tmp);
{
new car = GetPlayerVehicleID(playerid);
new sendername[MAX_PLAYER_NAME];
new string[180];
if(GetDistanceBetweenPlayers(playerid, giveplayerid) < 8)
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* Du wurdest von %s ins Car gezogen", sendername);
SendClientMessage(giveplayer, COLOR_LIGHTBLUE, string);
PutPlayerInVehicle(giveplayer, car, 1);
PlayerCuffed[giveplayerid] = 2;
PlayerCuffedTime[giveplayerid] = (999 + random(180));
PlayerTied[giveplayerid] = 0;
FreezePlayer(giveplayerid);
format(string, sizeof(string), "* %s hat %s ins Auto gezogen!", sendername ,giveplayer);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(playerid, "~r~Gib Gas", 3000, 1);
return 1;
}
}
return 1;
}
Function Reinziehenhinten(playerid)
{
if(IsPlayerConnected(playerid))
{
giveplayerid = ReturnUser(tmp);
{
new car = GetPlayerVehicleID(playerid);
new sendername[MAX_PLAYER_NAME];
new string[180];
if(GetDistanceBetweenPlayers(playerid, giveplayerid) < 8)
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* Du wurdest von %s ins Car gezogen", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PutPlayerInVehicle(giveplayerid, car, 3);
PlayerCuffed[giveplayerid] = 2;
PlayerCuffedTime[giveplayerid] = (999 + random(180));
PlayerTied[giveplayerid] = 0;
FreezePlayer(giveplayerid);
format(string, sizeof(string), "* %s hat %s ins Auto gezogen!", sendername ,giveplayer);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(playerid, "~r~Gib Gas", 3000, 1);
}
}
return 1;
}
und der Error Code
C:\Users\Tufan\Desktop\server\gamemodes\gprscript0.2.pwn(55018) : error 017: undefined symbol "giveplayerid"
C:\Users\Tufan\Desktop\server\gamemodes\gprscript0.2.pwn(55023) : error 017: undefined symbol "giveplayerid"
C:\Users\Tufan\Desktop\server\gamemodes\gprscript0.2.pwn(55025) : error 017: undefined symbol "giveplayerid"
C:\Users\Tufan\Desktop\server\gamemodes\gprscript0.2.pwn(55025) : error 017: undefined symbol "giveplayer"
C:\Users\Tufan\Desktop\server\gamemodes\gprscript0.2.pwn(55025) : error 029: invalid expression, assumed zero
C:\Users\Tufan\Desktop\server\gamemodes\gprscript0.2.pwn(55025) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
der befehl
if(strcmp(cmd, "/freefromcar", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_RED,"Du sitzt in keinem Fahrzeug!");
if(IsPlayerInFrac(playerid, 21))
{
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "__________________ Freefromcar __________________");
SendClientMessage(playerid, COLOR_GREY, "Befehl: /freefromcar [playerid] [0/1]");
SendClientMessage(playerid, COLOR_GREY, "Info: 0 = Vorne rechts, 1 = Hinten rechts");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != playerid)
{
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "Befehl: /freefromcar [Spieler ID] [0/1]");
SendClientMessage(playerid, COLOR_GREY, "Info: 0 = Vorne rechts, 1 = Hinten rechts!");
return 1;
}
new sit = strval(tmp);
if(sit < 0 || sit > 1) { SendClientMessage(playerid, COLOR_GREY, "Es gibt nur die Sitzplätze 0 und 1!"); return 1; }
if(GetDistanceBetweenPlayers(playerid, giveplayerid) < 8)
{
if(sit == 0)
{
format(string,sizeof string, "Du versuchst %s aus dem Wagen zuziehen.",giveplayer);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
if(GetDistanceBetweenPlayers(playerid, giveplayerid) < 8)
SetTimerEx("Reinziehenvorne",10000,0,"i",playerid);
}
else if(sit == 1)
{
format(string,sizeof string, "Du versuchst %s aus dem Wagen zuziehen.",giveplayer);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
SetTimerEx("Reinziehenhinten",10000,0,"i",playerid);
/*if(GetDistanceBetweenPlayers(playerid, giveplayerid) < 8)
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* Du wurdest von %s ins Car gezogen", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PutPlayerInVehicle(giveplayerid, car, 3);
PlayerCuffed[giveplayerid] = 2;
PlayerCuffedTime[giveplayerid] = (999 + random(180));
PlayerTied[giveplayerid] = 0;
FreezePlayer(giveplayerid);
format(string, sizeof(string), "* %s hat %s ins Auto gezogen!", sendername ,giveplayer);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(playerid, "~r~Gib Gas", 3000, 1);
*/
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Der Spieler ist nicht in deiner Nähe!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Spieler ist nicht online!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Mitglied der Wheelmen Agency!");
}
return 1;
}