#define IsPlayerScripter "Cofy1"
if(IsPlayerScripter(playerid)){
}

// Debajo de tu script:
stock IsPlayerScripter(playerid)
{
new Nombre[24];
GetPlayerName(playerid, Nombre, sizeof(Nombre));
if(!strcmp(Nombre, "cofy1", true))
{
return 1;
}
return 0;
}
D:\Mis documentos\Server\filterscripts\adminhouse.pwn(368) : error 012: invalid function call, not a valid address D:\Mis documentos\Server\filterscripts\adminhouse.pwn(368) : warning 215: expression has no effect D:\Mis documentos\Server\filterscripts\adminhouse.pwn(368) : error 001: expected token: ";", but found ")" D:\Mis documentos\Server\filterscripts\adminhouse.pwn(368) : error 029: invalid expression, assumed zero D:\Mis documentos\Server\filterscripts\adminhouse.pwn(368) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
if( !strcmp(cmdtext,"/open",true ))
{
if(IsPlayerScripter(playerid)){
}
MoveObject(gate,2793.435303, 3880.137695, 10.504232,2);
return 1;
}
if(!strcmp(cmdtext,"/open",true ))
{
if(IsPlayerScripter(playerid))
{
MoveObject(gate,2793.435303, 3880.137695, 10.504232,2);
}
return 1;
}
|
pawn Код:
|