[BUG] Sa-Mp wiki scripting mistake :D
#1

I think this is wrong:

Код:
new object;
public OnGameModeInit()
{
    object = CreateObject(1337, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
}
 
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/oedit", true))
    {
        EditObject(playerid, objectid);
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You can now edit the object!");
        return 1;
    }
    return 0;
}
It should be like this?

Код:
new object;
public OnGameModeInit()
{
    object = CreateObject(1337, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
}
 
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/oedit", true))
    {
        EditObject(playerid, object);
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You can now edit the object!");
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[BUG] Sa-Mp wiki scripting mistake :D - by bugi - 13.01.2014, 14:36
Re: [BUG] Sa-Mp wiki scripting mistake :D - by Hansrutger - 13.01.2014, 14:47
Re: [BUG] Sa-Mp wiki scripting mistake :D - by bugi - 13.01.2014, 14:50
Re: [BUG] Sa-Mp wiki scripting mistake :D - by PT - 13.01.2014, 14:57
Re: [BUG] Sa-Mp wiki scripting mistake :D - by Vince - 13.01.2014, 15:24
Re: [BUG] Sa-Mp wiki scripting mistake :D - by Drebin - 14.01.2014, 06:11

Forum Jump:


Users browsing this thread: 1 Guest(s)