Commands error !
#4

This is the code if i remove the error line it teleports me to blueberry !!
PHP код:
dcmd_goto(playeridparams[])
{
    if(
UserStats[playerid][Admin] >= 2)
    {
        new 
id;
                if(!
IsPlayerConnected(id)) return SendClientMessage(playeridCOLOR_REDRTNUSRNoResults); // ID is not connected, send an error message ====>Error Line
        
if(sscanf(params"u"id)) return SendClientMessage(playeridCOLOR_RED"Admin Usage: /Goto (id/name)");
          else
        {
            new 
string[128];
            new 
FloatxFloatyFloatz,Float:a;
            
GetPlayerPos(id,x,y,z);
            
GetPlayerFacingAngle(ida);
            new 
interior GetPlayerInterior(id);
            
            new 
name[24];
            
GetPlayerName(idname24);
            if(
IsPlayerNPC(id))
            {
                 if(!
strcmp(name,"[BOT]Pendelbury",true)) { interior 3; }
                 if(!
strcmp(name,"[BOT]Felix",true)) { interior 3; }
            }
            new 
vworld GetPlayerVirtualWorld(id);
            
SetPlayerPos(playeridx+2,y,z);
            
SetPlayerFacingAngle(playerida);
            
SetCameraBehindPlayer(playerid);
            
SetPlayerInterior(playerid,interior);
            
SetPlayerVirtualWorld(playerid,vworld);
            
UserStats[playerid][InHouseID] = UserStats[id][InHouseID];
            
format(stringsizeof(string), "*{F6A4D5}ADMIN INFO: {FFFFFF}You Teleported To {F6A4D5}%s(%d)"UserStats[id][Name], id);
            
SendClientMessage(playeridCOLOR_WHITEstring);
        }
    }
    else return 
SendClientMessage(playeridCOLOR_RED"Looks like you forgot the commands! Use /commands for a list of commands.");
    return 
1;

Reply


Messages In This Thread
Commands error ! - by Crazydriver - 18.10.2014, 15:13
Re: Commands error ! - by dominik523 - 18.10.2014, 15:16
Re: Commands error ! - by Greaper - 18.10.2014, 15:22
Re: Commands error ! - by Crazydriver - 18.10.2014, 15:54
Re: Commands error ! - by dominik523 - 18.10.2014, 16:11
Re: Commands error ! - by 0x41726d79 - 18.10.2014, 16:25
Re: Commands error ! - by Crazydriver - 18.10.2014, 16:35
Re: Commands error ! - by dominik523 - 18.10.2014, 16:49
Re: Commands error ! - by Crazydriver - 18.10.2014, 16:51
Re: Commands error ! - by Crazydriver - 18.10.2014, 18:16

Forum Jump:


Users browsing this thread: 1 Guest(s)