Jump to content
  • 0

pomoc Opravit kod nechápu to


skyte

Dotaz

if(strcmp(cmdtext, "/barriera1", true) == 0)

{

    new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);

    return EditObject(CreateObject(969, Pos[0]+5, Pos[1], Pos[2], 0, 0, 0, 0));

}

return 0;

 

ERROR: C:\Users\Filip\Desktop\Barriera.pwn(94) : warning 202: number of arguments does not match definition

 

EDIT: Kod vyřešen!

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0

Kdyby ses alespoň jednou podíval na posranou SAMP WIKI

if(strcmp(cmdtext, "/barriera1", true) == 0)
{
    new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    new obj = CreateObject(969, Pos[0]+5, Pos[1], Pos[2], 0, 0, 0, 0);
    EditObject(playerid, obj);
    return 1;
}
return 0;

EditObject

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...