24.12.2010, 13:23
Hola, hoy he querido hacer un comando de cambiar el text y un intento de utofix pero me da estps wrnings
-------------
CODIGO:
Y...
-------------
CODIGO:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]);
new a = 1;
new b = 2;
new c = 3;
// mas abajo...
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0) //para cambiar el texto
{
if(IsPlayerAdmin)
{
SetGameModeText("It's X-MAS!");
}
else
{
SendClientMessage(playerid, 0xFFFFFFFF, "You aren't a RCON admin");
}
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) //mientras a = 1, b = 2 y c = 3 repara el coche
{
while(a == 1 || b == 2 || c == 3)
{
SetVehicleHealth(vehicleid, 1000);
RepairVehicle(vehicleid);
}
return 1;
}
Код:
new.pwn(95) : error 055: start of function body without function header new.pwn(96) : error 010: invalid function or declaration new.pwn(98) : error 010: invalid function or declaration new.pwn(102) : error 010: invalid function or declaration new.pwn(106) : error 010: invalid function or declaration new.pwn(108) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase