#define MAX_RANDOM_SKINS 10
new s_randon_skins[MAX_RANDOM_SKINS] = {23, 112, 36, 110, 206};
public OnPlayerSpawn(playerid) {
SetPlayerSkin(playerid, s_randon_skins[random(MAX_RANDOM_SKINS)]);
return 1;
}
C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(109) : error 021: symbol already defined: "OnPlayerSpawn" C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(110) : error 017: undefined symbol "s_randon_skins" C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(110) : error 017: undefined symbol "MAX_RANDOM_SKINS" C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(110) : error 029: invalid expression, assumed zero C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(110) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
Код:
C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(109) : error 021: symbol already defined: "OnPlayerSpawn" C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(110) : error 017: undefined symbol "s_randon_skins" C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(110) : error 017: undefined symbol "MAX_RANDOM_SKINS" C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(110) : error 029: invalid expression, assumed zero C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(110) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
SetPlayerSkin(playerid, s_randon_skins[random(MAX_RANDOM_SKINS)]);
Код:
C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(109) : error 021: symbol already defined: "OnPlayerSpawn" C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(110) : error 017: undefined symbol "s_randon_skins" C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(110) : error 017: undefined symbol "MAX_RANDOM_SKINS" C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(110) : error 029: invalid expression, assumed zero C:\DOCUME~1\PC\Bureau\RE-Games\GAMEMO~1\RE-GAMES.pwn(110) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
#define MAX_RANDOM_SKINS 10
new s_randon_skins[MAX_RANDOM_SKINS] = {23, 112, 36, 110, 206};
SetPlayerSkin(playerid, s_randon_skins[random(MAX_RANDOM_SKINS)]);
euuh IDK xD, but i need the system choose a skin for a player whene he spawns ^^
|
new s_randon_skins[MAX_RANDOM_SKINS] = {23, 112, 36, 110, 206};
You want it to randomaly choose or a player chooses? I don't get you.
|