Posts: 617
Threads: 129
Joined: Feb 2014
Quote:
Originally Posted by DarkSkull
PHP код:
if(sscanf(params, "s[128]i", params, idx, text)) return SendClientMessage(playerid, error, "Usage: /dedit interior [doorid]");
The sscanf error comes due to this line. You have specified two specifiers, but three parameters.
Change it to this:
this is the sscanf in the interior part of the code.
EDIT: UPDATED THE CODE TO SUPPORT 2 Parameters.
PHP код:
if(sscanf(params, "s[128]i", params, idx)) return SendClientMessage(playerid, error, "Usage: /dedit interior [doorid]");
As for the 3D label, I don't see you updating the 3d text label in the interior part of the code.
|
Ok thanks for the sscanf fix, but now let me try to explain a bit more with some diagrams....

this is how it looks when i create first create the tp... the blue arrow indicates the frist created tp(exterior) and the red arrow indicates the last tp created(interior).

Now when i try to edit the name cause i want both tps to have the same name now when i try to change the name only the last tp name changes and the first tp name doesnt update..