Help!
#1

lol...

today I created a new Admin's House. I tried to find it in MTA, and I converted it here. Now, the problem is that, after I created this house I created a teleport command that teleports you to the house. Here it is (The full command/createobject):

pawn Код:
public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("UK-RP v0.1");
    AddPlayerClass(299,1614.7527,-1498.3807,14.2381,90.9994,0,0,0,0,0,0); // newb spawn
    // Special houses
    CreateObject(3483, -2329.9060058594, -1619.1413574219, 489.66583251953, 1, 0, 0); // admin house
    return 1;
}
^^ This is my house

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(pay, 3, cmdtext);
    dcmd(sethealth, 9, cmdtext);
// admin cmds---------------------------
    dcmd(sendtopd, 8, cmdtext);
    dcmd(sendtogym, 9, cmdtext);
    dcmd(sendtoadmh, 10, cmdtext); // the dcmd define for my tp cmd
// text--------------------------------
    dcmd(me, 2, cmdtext);
    dcmd(do, 2, cmdtext);
// player connect----------------------
    dcmd(register, 8, cmdtext);
    dcmd(login, 5, cmdtext);
    return 1;
}

dcmd_sendtoadmh(playerid, params[])
{
    new targetid, pName[MAX_PLAYER_NAME];
    if(sscanf(params, "i", targetid)) return SendClientMessage, COLOR_RED, "/sendtoadmh [playerid]");
    else if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You have no access to this command");
    else if(targetid == INVALID_PLAYER_ID || IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_RED, "Player Not Found");
    else
    {
        GetPlayerName(targetid, pName, MAX_PLAYER_NAME);
        SetPlayerPos(targetid, -2329.9060058594, -1619.1413574219, 489.66583251953);
        format(string, 128, "You transfered %s (ID: %i) to Admin's House", pName, targetid);
        format(msg, 128, "You got transfered to Admin's House by Admin %s", playerid);
        SendClientMessage(playerid, COLOR_LIGHTBULE, string);
        SendClientMessage(targetid, COLOR_LIGHTBLUE, msg);
    }
    return 1;
}
Now, this is the cmd. AFTER I typed all this, when I tried to compile it happens:





OMGWTF?!?!?!

Any solutions or w/e ?
Reply


Messages In This Thread
Help! - by Rivera - 15.03.2011, 16:10
Re: Help! - by boelie - 15.03.2011, 16:23
Re: Help! - by Jochemd - 15.03.2011, 16:41
Re: Help! - by Rivera - 15.03.2011, 19:36
Re: Help! - by Jochemd - 15.03.2011, 19:41
Re: Help! - by Marricio - 15.03.2011, 19:44
Re: Help! - by Rivera - 15.03.2011, 19:44
Re: Help! - by Jochemd - 15.03.2011, 19:46
Re: Help! - by boelie - 15.03.2011, 19:47
Re: Help! - by Marricio - 15.03.2011, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)