13.05.2018, 17:54
I now have the error as in the picture. When I add it, I can not open [samp-sever]
https://imgur.com/a/2Q7qQCI
https://imgur.com/a/2Q7qQCI
#define scm SendClientMessage
cmd:gotoxyz(pid,p[]){
new Float:x,Float:y,Float:z;
if(sscanf(p,"fff",x,y,z))return scm(pid,-1,"/gotoxyz [x] [y] [z]");
return SetPlayerPos(pid,x,y,z);
}
PHP код:
|
#include <zcmd>
Use zcmd instead then
PHP код:
|
#include <YSI\y_commands>
#include <YSI\y_master>
#include <sscanf2>
CMD:gotoxyz(playerid,params[])
{
if(IsPlayerConnected(playerid))
{
new Float:posx,Float:posy,Float:posz, inte;
if(sscanf(params,"fffi",posx,posy,posz,inte))return SendClientMessage(playerid,-1,"* Tyope: /gotoxyz [posx][posy][posz][int]");
{
SetPlayerPos(playerid,posx,posy,posz);
SetPlayerInterior(playerid,inte);
GameTextForPlayer(playerid,"~w~You got~y~teleported",5000,4);
}
}
return 1;
}
CMD:setint(playerid,params[])
{
new intid;
if(sscanf(params,"d",intid))return SendClientMessage(playerid,-1,"Type: /setint [interiorid]");
SetPlayerInterior(playerid,intid);
return 1;
}