Hey, ich hab eine Schleife probiert ins Selfmade aber es kommen 26Errors!
Code:
public OnGameModeInit()
{
DisableInteriorEnterExits();
SetGameModeText("*****");
for (new a = 0; a < 299; a++)
{
AddPlayerClass(a, 2237.5176,1285.9764,10.8203, 0, 0, 0, 0, 0, 0);
}
Errors:
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(46) : warning 202: number of arguments does not match definition
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(49) : warning 217: loose indentation
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(49) : error 029: invalid expression, assumed zero
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(49) : error 004: function "OnGameModeExit" is not implemented
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(51) : error 079: inconsistent return types (array & non-array)
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(54) : warning 225: unreachable code
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(54) : error 029: invalid expression, assumed zero
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(54) : error 004: function "OnPlayerRequestClass" is not implemented
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(56) : error 017: undefined symbol "playerid"
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(57) : error 017: undefined symbol "playerid"
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(58) : error 017: undefined symbol "playerid"
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(59) : error 079: inconsistent return types (array & non-array)
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(62) : warning 225: unreachable code
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(62) : error 029: invalid expression, assumed zero
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(62) : error 004: function "OnPlayerConnect" is not implemented
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(66) : error 017: undefined symbol "playerid"
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(70) : error 017: undefined symbol "playerid"
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(71) : error 017: undefined symbol "playerid"
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(72) : error 079: inconsistent return types (array & non-array)
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(76) : error 017: undefined symbol "playerid"
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(77) : error 017: undefined symbol "playerid"
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(79) : error 079: inconsistent return types (array & non-array)
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(83) : warning 225: unreachable code
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(83) : error 029: invalid expression, assumed zero
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(83) : error 004: function "OnPlayerSpawn" is not implemented
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(85) : error 079: inconsistent return types (array & non-array)
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(88) : warning 225: unreachable code
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(88) : error 029: invalid expression, assumed zero
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(88) : error 004: function "OnPlayerDeath" is not implemented
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(90) : error 017: undefined symbol "playerid"
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(91) : error 017: undefined symbol "playerid"
C:\Users\Modern Warfare 3\Desktop\Selfmade by MW3\gamemodes\Selfmade.pwn(93) : error 017: undefined symbol "playerid"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
~~~~~~~~~~~~~ Das sind Errors von anderen zeilen aber wenn der Code nicht drin ist kommen keine Fehler das in zeile 93 undefined symbol playerid...