20.04.2013, 02:54
Um erro bбsico.
Tente agora.
Tente agora.
PHP код:
COMMAND:setarinterior ( playerid, params[] )
{
static
xD,
xInt,
xCelulas [ 70 ],
xSetado [ 24 ],
xSetou [ 24 ]
;
if ( !IsPlayerAdmin ( playerid ) )
return SendClientMessage ( playerid, -1, "[ ERRO ]: Vocк nгo й Admin RCON !" ) ;
if ( sscanf ( params, "ud", xD, xInt ))
return SendClientMessage ( playerid, -1, "[ USE ]: /setarinterior [ID] [Interior]" ) ;
GetPlayerName ( xD, xSetado, 24 ) ;
GetPlayerName ( playerid, xSetou, 24 ) ;
SetPlayerInterior ( xD, xInt ) ;
format ( xCelulas, sizeof ( xCelulas ), "Vocк setou o interior %d para o jogador %s", xInt, xSetado ) ;
SendClientMessage ( playerid, -1, xCelulas ) ;
format ( xCelulas, sizeof ( xCelulas ), "%s mudou seu interior para %d", xSetou, xInt ) ;
SendClientMessage ( xD, -1, xCelulas ) ;
return 1;
}