HeyHoo,
Ich habe folgenden Befehl in meinen Script eingebaut:
ocmd:dm(playerid,params[])
{
SetPlayerVirtualWorld(playerid,1)
SetPlayerPos(playerid,DMpos);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,1000);
GivePlayerWeapon(playerid,27,1000);
IsAtDM[playerid] = 1;
return 1;
}
Die Variablen hierfür:
new DMpos[5][4]={
{-18.5393,1554.8761,12.7500,194.4000},
{-41.1297,1523.9552,12.7500,269.6008},
{-14.3715,1509.1375,15.0469,270.0000},
{14.3361,1492.2953,15.6534,13.9419},
{52.7539,1510.6454,12.7500,274.1559}
};
new IsAtDM[MAX_PLAYERS];
Allerdings folgende Errors:
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(39) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(39) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(39) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(39) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(40) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(40) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(40) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(40) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(41) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(41) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(41) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(41) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(42) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(42) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(42) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(42) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(43) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(43) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(43) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(43) : warning 213: tag mismatch
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(319) : error 035: argument type mismatch (argument 2)
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(356) : error 001: expected token: ";", but found "-identifier-"
C:\Users\_Zinne\Desktop\Spiele\Spielserver\SAMP Server\gamemodes\DM-Script.pwn(356) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Zeile 39-43:
{-18.5393,1554.8761,12.7500,194.4000},
{-41.1297,1523.9552,12.7500,269.6008},
{-14.3715,1509.1375,15.0469,270.0000},
{14.3361,1492.2953,15.6534,13.9419},
{52.7539,1510.6454,12.7500,274.1559}
Zeile 319:
SetPlayerPos(playerid,DMpos);
// Der ganze Callback von 319
if(IsAtDM[playerid] == 1)
{
SetPlayerPos(playerid,DMpos);
GivePlayerWeapon(playerid,24,1000);
GivePlayerWeapon(playerid,27,1000);
IsAtDM[playerid] = 1;
}
if(IsAtDM[playerid] == 1)
{
SetPlayerPos(playerid,DMpos);
GivePlayerWeapon(playerid,24,1000);
GivePlayerWeapon(playerid,27,1000);
IsAtDM[playerid] = 1;
}
Zeile 356:
SetPlayerPos(playerid,DMpos);
//Alles davon:
ocmd:dm(playerid,params[])
{
SetPlayerVirtualWorld(playerid,1)
SetPlayerPos(playerid,DMpos);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,1000);
GivePlayerWeapon(playerid,27,1000);
IsAtDM[playerid] = 1;
return 1;
}
ocmd:dm(playerid,params[])
{
SetPlayerVirtualWorld(playerid,1)
SetPlayerPos(playerid,DMpos);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,1000);
GivePlayerWeapon(playerid,27,1000);
IsAtDM[playerid] = 1;
return 1;
}
Bitte um Hilfe!
lg
Deagle