BMG.pwn(39124) : error 025: function heading differs from prototype
public MotorPet(newstate, vehicleid, ispassenger)
{
new velopet5[128];
for (new i=0; i<MAX_PLAYERS; i++)
{
if(newstate == PLAYER_STATE_PASSENGER)
{
if(motor[i] == 1)
{
format(velopet5,sizeof(velopet5),"~r~~h~~h~~h~~h~Motor: ~w~Ligado");
}
else if(motor[i] == 0)
{
format(velopet5,sizeof(velopet5),"~r~~h~~h~~h~~h~Motor: ~w~Desligado");
}
TextDrawSetString(MotorOnOFF[i], velopet5);
}
}
}
public MotorPet(vehicleid)
{
new velopet5[128];
for (new i=0; i<MAX_PLAYERS; i++)
{
if(newstate == PLAYER_STATE_PASSENGER)
{
if(motor[i] == 1)
{
format(velopet5,sizeof(velopet5),"~r~~h~~h~~h~~h~Motor: ~w~Ligado");
}
else if(motor[i] == 0)
{
format(velopet5,sizeof(velopet5),"~r~~h~~h~~h~~h~Motor: ~w~Desligado");
}
TextDrawSetString(MotorOnOFF[i], velopet5);
}
}
}
tenta so assim
pawn Код:
|
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BMG.pwn(39124) : error 025: function heading differs from prototype
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BMG.pwn(39129) : error 017: undefined symbol "newstate"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
forward MotorPet(newstate, vehicleid, ispassenger);
public OnPlayerStateChange(playerid, newstate, oldstate)
forward MotorPet(vehicleid);
public MotorPet(vehicleid)
{
new velopet5[128];
for (new i=0; i<MAX_PLAYERS; i++)
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
if(motor[i] == 1)
{
format(velopet5,sizeof(velopet5),"~r~~h~~h~~h~~h~Motor: ~w~Ligado");
}
else if(motor[i] == 0)
{
format(velopet5,sizeof(velopet5),"~r~~h~~h~~h~~h~Motor: ~w~Desligado");
}
TextDrawSetString(MotorOnOFF[i], velopet5);
}
}
}
1 - Verifique se no seu gm tem a funзгo:
pawn Код:
pawn Код:
|
public OnPlayerStateChange(playerid, newstate, oldstate)
vehicleid, ispassenger
public MotorPet(newstate, vehicleid, ispassenger[]) {
new velopet5[128];
for (new i = 0; i < MAX_PLAYERS; i++) {
if (newstate == PLAYER_STATE_PASSENGER) {
if (motor[i] == 1) {
format(velopet5, sizeof(velopet5), "~r~~h~~h~~h~~h~Motor: ~w~Ligado");
} else if (motor[i] == 0) {
format(velopet5, sizeof(velopet5), "~r~~h~~h~~h~~h~Motor: ~w~Desligado");
}
TextDrawSetString(MotorOnOFF, velopet5);
}
}
}
PHP код:
|
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BMG.pwn(39122) : error 025: function heading differs from prototype
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BMG.pwn(39131) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase