#include <a_samp>
new davidVehicle;
#define SetPlayerSkin
public OnFilterScriptInit ( )
{
print ( \"Cam\" );
ConnectNPC ( \"david\", \"RoCkY\" );
davidVehicle = CreateVehicle ( 562, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000 );
return 1;
}
public OnPlayerSpawn ( playerid )
{
if ( IsPlayerNPC ( playerid ) )
{
new npcname [ MAX_PLAYER_NAME ];
GetPlayerName ( playerid, npcname, sizeof ( npcname ) );
if ( !strcmp ( npcname, \"david\", true ) )
{
SetPlayerskin(playerid, 33)
}
{
PutPlayerInVehicle ( playerid, davidVehicle, 0 );
}
return 1;
}
return 1;
}
ERROR: Cam.pwn(23) : error 017: undefined symbol \"SetPlayerskin\"
mi lehet a probléma???
[mod]CODE tagek kitéve.[/mod]