C:\Dokumente und Einstellungen\Danii\Desktop\gm.pwn(1201) : error 017: undefined symbol "NRGspawn"
C:\Dokumente und Einstellungen\Danii\Desktop\gm.pwn(1201) : warning 215: expression has no effect
C:\Dokumente und Einstellungen\Danii\Desktop\gm.pwn(1201) : error 001: expected token: ";", but found "]"
C:\Dokumente und Einstellungen\Danii\Desktop\gm.pwn(1201) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Danii\Desktop\gm.pwn(1201) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Code:
//-----------------------------------------------------pPacker
if (strcmp(cmdtext, "/pPacker", true) ==0) {
if ( NRGspawn[playerid] == 0) {
new Float:xxx, Float:yyy, Float:zzz;
GetPlayerPos(playerid, xxx, yyy, zzz);
new Float:aaa;
GetPlayerFacingAngle(playerid, aaa);
new interior;
interior = GetPlayerInterior(playerid);
pNRG[playerid] = CreateVehicle(443, xxx, yyy +1, zzz +1, aaa, 0, 0, 5000000);
LinkVehicleToInterior(pNRG[playerid], interior);
NRGspawn[playerid] = 1;
PutPlayerInVehicle(playerid, pNRG[playerid], 0);
} else {
SendClientMessage(playerid, COLOR_RED, "Fehler: dein Packer ist schon gepawned.bitte tippe /cPacker");}
return 1;
}
if (strcmp(cmdtext, "/cPacker", true) ==0) {
if ( NRGspawn[playerid] == 1 )
{
new Float:xxx, Float:yyy, Float:zzz;
GetPlayerPos(playerid, xxx, yyy, zzz);
new Float:aaa;
GetPlayerFacingAngle(playerid, aaa);
if(GetVehicleModel(pNRG[playerid]) == 443)
{
SetVehiclePos(pNRG[playerid], xxx, yyy +1, zzz +1);
SetVehiclePos(pNRG[playerid], xxx, yyy +1, zzz +1);
SetVehiclePos(pNRG[playerid], xxx, yyy +1, zzz +1);
SetVehiclePos(pNRG[playerid], xxx, yyy +1, zzz +1);
SetVehiclePos(pNRG[playerid], xxx, yyy +1, zzz +1);
PutPlayerInVehicle(playerid, pNRG[playerid], 0);
NRGspawn[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "Packer - gerufen !");
} else {
SetVehiclePos(pNRG[playerid], xxx+1,yyy+1,zzz+1);
DestroyVehicle(pNRG[playerid]);
pNRG[playerid] = CreateVehicle(411, xxx, yyy +1, zzz +1, aaa, 0, 0, 5000000);
PutPlayerInVehicle(playerid, pNRG[playerid], 0);
}
} else {
SendClientMessage(playerid, COLOR_RED, "FEHLER: noch kein Packer gespawned.bitte tippe /pPacker !");}
return 1;
}
?!