public OnPlayerSpawn ( playerid ) { if ( IsPlayerNPC ( playerid ) ) return 1; { new npcname [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname, sizeof ( npcname ) ); if ( !strcmp ( npcname, \"Jason_Black\", true ) ) { SetPlayerSkin(playerid, 46); } return 1; }// return 1; }
public OnPlayerSpawn ( playerid ) { if ( IsPlayerNPC ( playerid ) ) return 1; { new npcname [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname, sizeof ( npcname ) ); if ( !strcmp ( npcname, \"Jason_Black\", true ) ) SetPlayerSkin(playerid, 46); return 1; } return 1; }
Esetleg így? Nem biztos hogy jó :/ public OnPlayerSpawn ( playerid ) { if ( IsPlayerNPC ( playerid ) ) return 1; { new npcname [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname, sizeof ( npcname ) ); if ( !strcmp ( npcname, \"Jason_Black\", true ) ) SetPlayerSkin(playerid, 46); return 1; } return 1; }
public OnPlayerConnect(playerid){if(IsPlayerNPC(playerid)){new npcname[MAX_PLAYER_NAME];GetPlayerName(playerid, npcname, sizeof(npcname));if(npcname == \"Jason_Black\") return SetPlayerSkin(playerid, 46);SpawnPlayer(playerid);return 1;} return 1;}
Esetleg ez? public OnPlayerConnect(playerid){if(IsPlayerNPC(playerid){new npcname[MAX_PLAYER_NAME];GetPlayerName(playerid, npcname, sizeof(npcname));if(npcname == \"Jason_Black\") return SetPlayerSkin(playerid, 46);SpawnPlayer(playerid);return 1;}}
public OnPlayerConnect(playerid){if(IsPlayerNPC(playerid){new npcname[MAX_PLAYER_NAME];GetPlayerName(playerid, npcname, sizeof(npcname));if(npcname == \"Jason_Black\") return SetPlayerSkin(playerid, 46);SpawnPlayer(playerid);return 1;}}
***\\filterscripts\\gyalogosfs.pwn(25) : error 001: expected token: \")\", but found \"{\"***\\gyalogosfs.pwn(28) : error 033: array must be indexed (variable \"npcname\")***\\filterscripts\\gyalogosfs.pwn(32) : warning 209: function \"OnPlayerConnect\" should return a valuePawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
public OnPlayerSpawn(playerid){ if(IsPlayerNPC(playerid)) { new npcName[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcName, sizeof(npcName)); SetPlayerSkin(playerid, 200); if(!strcmp(npcName, \"NPCNEVE\")) { } } return 1;}
ez csak elcsuszás asszem de ettõl még jonak kéne lennie public OnPlayerSpawn(playerid){ if(IsPlayerNPC(playerid)) { new npcName[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcName, sizeof(npcName)); SetPlayerSkin(playerid, 200); if(!strcmp(npcName, \"NPCNEVE\")) { } } return 1;}
public OnPlayerSpawn(playerid){ if(IsPlayerNPC(playerid)) { new npcName[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcName, sizeof(npcName)); if(!strcmp(npcName, \"NPCNEVE\")) { SetPlayerSkin(playerid, 200); } } return 1;}