Errors
#4

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <zcmd>
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
CMD:r(playerid,params[])
{
    //police Radio
    if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 288 || GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 287)//replace this with your Cop Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
    {
        if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
        new name[24],msg[128];
        GetPlayerName(playerid,name,24);
        format(msg,128,"(BCSD Radio)Officer %s(%d): %s, Over.",name,playerid, params);
        for(new i=0;i<MAX_PLAYERS;i++)
        if(GetPlayerSkin(i) == 285 GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 288 || GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 287) SendClientMessage(i,-1,msg); // same as above for skins
    }
    //FF/EMS Radio
    if(GetPlayerSkin(playerid) == 278 GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276) //replace this with your FF/EMS Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
    {
        if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
        new name[24],msg[128];
        GetPlayerName(playerid,name,24);
        format(msg,128,"(BCFD Radio) %s(%d): %s, Over.",name,playerid, params);
        for(new i=0;i<MAX_PLAYERS;i++)
        if(GetPlayerSkin(i) == 278 GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276) SendClientMessage(i,-1,msg); // same as above for skins
    }
    return 1;
}
try copying that and pasting it, the problem was you added that under onplayerconnect
Reply


Messages In This Thread
Errors - by Gooday - 27.11.2011, 13:11
Re: Errors - by Tanush123 - 27.11.2011, 13:13
Re: Errors - by Gooday - 27.11.2011, 13:14
Re: Errors - by Tanush123 - 27.11.2011, 13:17
Re: Errors - by Gooday - 27.11.2011, 13:19
Re: Errors - by Lorenzo! - 27.11.2011, 13:20

Forum Jump:


Users browsing this thread: 3 Guest(s)