Problem
#2

For the second error you have to add 'return 1;' at the end of the RNPC_OnPlayerSpawn or at OnPlayerSpawn.

Something like this :

PHP код:
public OnPlayerSpawn(playerid)
{
    if (
IsPlayerNPC(playerid)) {
        new 
slot = -1;
        for (new 
0MAX_RNPC_POLICEi++) {
            if (
ZNPC[i][ZNPC_NPCID] == playerid) {
                
slot i;
                break;
            }
        }

        if (
slot > -1) {
            
SetPlayerSkin(playeridZNPC[slot][ZNPC_SKIN]);
        }
    }
    
CallLocalFunction("RNPC_OnPlayerSpawn""i"playerid);
    return 
1;

The other one I'm not really sure.
Reply


Messages In This Thread
Problem - by Kruno88 - 19.06.2015, 13:01
Re: Problem - by rappy93 - 19.06.2015, 13:04

Forum Jump:


Users browsing this thread: 1 Guest(s)