[AJUDA]SetplayerColor?
#1

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

Reply
#2

Tenta ai rs.

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

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;
}
Reply
#4

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

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

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 
Reply
#7

Use o meu amigo.
Reply
#8

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)