SA-MP Forums Archive
[AJUDA]SetplayerColor? - 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]SetplayerColor? (/showthread.php?tid=342051)



[AJUDA]SetplayerColor? - Jake_Dunlapp - 12.05.2012

PHP код:
public OnPlayerSpawn(playeridclassid)
{
    if(
classid == 1) {
    
SetPlayerColor(playerid0xFFFF00AA);
    
SetPlayerInterior(playerid,0);
    return 
1;

PHP код:
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(78) : error 025: function heading differs from prototype
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(86) : warning 217loose indentation
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(86) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(86) : error 004: function "OnPlayerDeath" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(91) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(91) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(91) : error 004: function "OnVehicleSpawn" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(96) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(96) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(96) : error 004: function "OnVehicleDeath" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(101) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(101) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(101) : error 004: function "OnPlayerText" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(106) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(106) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(106) : error 004: function "OnPlayerCommandText" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(108) : error 017undefined symbol "cmdtext"
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(119) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(119) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(119) : error 004: function "OnPlayerEnterVehicle" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(124) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(124) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(124) : error 004: function "OnPlayerExitVehicle" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(129) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(129) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(129) : error 004: function "OnPlayerStateChange" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(134) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(134) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(134) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(139) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(139) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(139) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(144) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(144) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(144) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(149) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(149) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(149) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
26 Errors




Re : [AJUDA]SetplayerColor? - Luciano* - 12.05.2012

Tenta ai rs.

pawn Код:
public OnPlayerSpawn(playerid, classid)
{
    if(classid == 1) {
    SetPlayerColor(playerid, 0xFFFF00AA);
    SetPlayerInterior(playerid,0);
    }
    return 1;
}



Re: [AJUDA]SetplayerColor? - lyllrasta - 12.05.2012

Quote:
Originally Posted by Jake_Dunlapp
Посмотреть сообщение
PHP код:
public OnPlayerSpawn(playeridclassid)
{
    if(
classid == 1) {
    
SetPlayerColor(playerid0xFFFF00AA);
    
SetPlayerInterior(playerid,0);
    return 
1;

PHP код:
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(78) : error 025: function heading differs from prototype
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(86) : warning 217loose indentation
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(86) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(86) : error 004: function "OnPlayerDeath" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(91) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(91) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(91) : error 004: function "OnVehicleSpawn" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(96) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(96) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(96) : error 004: function "OnVehicleDeath" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(101) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(101) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(101) : error 004: function "OnPlayerText" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(106) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(106) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(106) : error 004: function "OnPlayerCommandText" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(108) : error 017undefined symbol "cmdtext"
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(119) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(119) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(119) : error 004: function "OnPlayerEnterVehicle" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(124) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(124) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(124) : error 004: function "OnPlayerExitVehicle" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(129) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(129) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(129) : error 004: function "OnPlayerStateChange" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(134) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(134) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(134) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(139) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(139) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(139) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(144) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(144) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(144) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(149) : warning 225unreachable code
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(149) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(149) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
26 Errors


pawn Код:
public OnPlayerSpawn(playerid, classid)
{
    if(classid == 1)
   {
    SetPlayerColor(playerid, 0xFFFF00AA);
    SetPlayerInterior(playerid,0);
   }
    return 1;
}



Re: [AJUDA]SetplayerColor? - zbt - 12.05.2012

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 1) {
        SetPlayerColor(playerid, 0xFFFF00AA);
        SetPlayerInterior(playerid,0);
    }
    return 1;
}
....


Re: [AJUDA]SetplayerColor? - RebeloX - 12.05.2012

pawn Код:
public OnPlayerSpawn(playerid, classid)
{
    if(classid == 1) {
        SetPlayerColor(playerid, 0xFFFF00AA);
        SetPlayerInterior(playerid,0);
    }
    return 1;
}
faltava um "}"


Re: [AJUDA]SetplayerColor? - Jake_Dunlapp - 12.05.2012

Todos Os 3 Deram Esse Erro
PHP код:
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(78) : error 025: function heading differs from prototype 



Re: [AJUDA]SetplayerColor? - zbt - 12.05.2012

Use o meu amigo.


Re: [AJUDA]SetplayerColor? - Jake_Dunlapp - 12.05.2012

Quote:
Originally Posted by zbt
Посмотреть сообщение
Use o meu amigo.
Valeu Funcionou Rep+


Re: [AJUDA]SetplayerColor? - RebeloX - 12.05.2012

Quote:
Originally Posted by Jake_Dunlapp
Посмотреть сообщение
Todos Os 3 Deram Esse Erro
PHP код:
C:\Documents and Settings\Administrador\Desktop\Jogos\DS\BrasilUltimateDeathmatch\gamemodes\TDM.pwn(78) : error 025: function heading differs from prototype 
Provavelmente vocк colocou a public de maneira errada, siga os meus passos.

pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
    if(classid == 1) {
        SetPlayerColor(playerid, 0xFFFF00AA);
        SetPlayerInterior(playerid,0);
    }
    return 1;
}
public OnPlayerSpawn(playerid)
{
    return 1;
}
Apenas assim.