Posts: 349
Threads: 119
Joined: Jun 2013
Quote:
Originally Posted by DiiMeNoR
PHP код:
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
Deu esses erros.