08.12.2009, 11:15
Hello SAMP people,
Im having a big problem with my server.
First things first the problem is with DCMD
Ive just copied and paste it outa my old script for 0.2X
And here OnPlayerCommandText
Still the codes worked with 0.2X but not in 0.3
Whats the problem?
Any solutions please?
Im having a big problem with my server.
First things first the problem is with DCMD
Ive just copied and paste it outa my old script for 0.2X
Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Код:
public OnPlayerCommandText(playerid, cmdtext[])
Код:
dcmd_adminarea(playerid,params[]) { #pragma unused params if(IsPlayerAdmin(playerid)) { SetPlayerPos(playerid, AdminArea[0], AdminArea[1], AdminArea[2]); SetPlayerFacingAngle(playerid, AdminArea[3]); SetPlayerInterior(playerid, AdminArea[4]); SetPlayerVirtualWorld(playerid, AdminArea[5]); return GameTextForPlayer(playerid,"Welcome Admin",1000,3); } return 1; }
Whats the problem?
Any solutions please?