[Ajuda] COR NICK - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] COR NICK (
/showthread.php?tid=587833)
COR NICK -
maxblaya01 - 03.09.2015
Galera meu servidor esta com uma cor padrao so para todos players que entra, como eu faзo pra tipo fica automatico, quando eles entrar vir cores diferentes, para diferenciar dos outros players?
AW: COR NICK -
cicinho - 03.09.2015
Procura por SetPlayerColor, no seu GM, pode esta na callback OnPlayerConnect ou OnPlayerSpawn, delete, pronto agora os players terao cores aleatorias.
Re: COR NICK -
[BOPE]Seu._.Madruga - 03.09.2015
Fiz este sistema que te permite escolher as cores que os players terгo e ela й setada de forma randфmica.
PHP код:
new CORES [ ] = {
0x00FF80AA,
0x80FF00AA,
0xFFFFFFAA,
0x0080FFAA,
0x0080FFAA,
0x00FFFFAA,
0x0080C0AA,
0x8F20FFAA
};
public OnPlayerConnect(playerid)
{
new random1 = random( sizeof( CORES ) ) ;
SetPlayerColor(playerid, COLORS [ random2 ]) ;
return 1;
}
Re: COR NICK -
maxblaya01 - 03.09.2015
Quote:
Originally Posted by [BOPE]Seu._.Madruga
Fiz este sistema que te permite escolher as cores que os players terгo e ela й setada de forma randфmica.
PHP код:
new CORES [ ] = {
0x00FF80AA,
0x80FF00AA,
0xFFFFFFAA,
0x0080FFAA,
0x0080FFAA,
0x00FFFFAA,
0x0080C0AA,
0x8F20FFAA
};
public OnPlayerConnect(playerid)
{
new random1 = random( sizeof( CORES ) ) ;
SetPlayerColor(playerid, COLORS [ random2 ]) ;
return 1;
}
|
como removo esses erros:
C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(1012) : error 029: invalid expression, assumed zero
C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(1012) : error 017: undefined symbol "random2"
C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(1012) : error 029: invalid expression, assumed zero
C:\Documents and Settings\MaxiMuS\Desktop\New Server\gamemodes\new.pwn(1012) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Linha 1012 : SetPlayerColor(playerid, COLORS [ random2 ]) ;
Re: COR NICK -
iTakelot - 03.09.2015
PHP код:
new CORES [ ] = {
0x00FF80AA,
0x80FF00AA,
0xFFFFFFAA,
0x0080FFAA,
0x0080FFAA,
0x00FFFFAA,
0x0080C0AA,
0x8F20FFAA
};
public OnPlayerConnect(playerid)
{
new random1 = random( sizeof( CORES ) ) ;
SetPlayerColor(playerid, CORES [ random1 ]) ;
return 1;
}
Re: COR NICK -
maxblaya01 - 03.09.2015
Quote:
Originally Posted by iTakelot
PHP код:
new CORES [ ] = {
0x00FF80AA,
0x80FF00AA,
0xFFFFFFAA,
0x0080FFAA,
0x0080FFAA,
0x00FFFFAA,
0x0080C0AA,
0x8F20FFAA
};
public OnPlayerConnect(playerid)
{
new random1 = random( sizeof( CORES ) ) ;
SetPlayerColor(playerid, CORES [ random1 ]) ;
return 1;
}
|
VALEU MANO