This command fucks my script
#7

Quote:
Originally Posted by N0FeaR
Посмотреть сообщение
PHP код:
if(!strcmp(params"taxi"true))
    {
        new 
playerb;
        if(!
IsATaxidriver(playerid)) return SendClientMessage(playeridCOLOR_WHITE"You are not a Taxi driver.");
        if(
AcceptedTaxi[playerid] == 1) return SendClientMessage(playeridCOLOR_GREY"You have already accepted a taxi call.");
        if(
sscanf(params"s[128]i"paramsplayerb)) return SendClientMessage(playeridCOLOR_GREY"/accept taxi [ID]");
        if(!
IsPlayerLoggedIn(playerb) && !IsPlayerNPC(playerb)) return SendClientMessage(playeridCOLOR_GREY"Invalid player id.");
        if(
OrderedTaxi[playerb] == 1)
        {
            
format(stringsizeof(string), "You have accepted %s's Taxi call, He is now marked on your radar"RPN(playerb));
            
SendClientMessage(playeridCOLOR_YELLOWstring);
            
format(stringsizeof(string), "Taxi Driver %s is now on his way to you"RPN(playerid));
            
SendClientMessage(playerbCOLOR_YELLOWstring);
            
CP[playerid] = 8779;
            
AcceptedTaxi[playerid] = 1;
            new 
Float:PosXFloat:PosYFloat:PosZ;
            
GetPlayerPos(playerbPosXPosYPosZ);
            
SetPlayerCheckpoint(playeridPosXPosYPosZ4.0);
            return 
1;                }    <---- This was the problem.
        }
        else if(
OrderedTaxi[playerb] == 0)
        {
            
SendClientMessage(playeridCOLOR_GREY"This player hasn't ordered a Taxi");
            return 
1;
        }
    }*/ 
Thanks you helped me very much, Although unfortunately the code doesn't work
Whenever I type /accept taxi and the person's id, nothing happenes, not a checkpoint, not SendClientMessage
Reply


Messages In This Thread
This command doesn't work - by NeXoR - 27.03.2016, 18:30
Re: This command fucks my script - by Crystallize - 27.03.2016, 18:36
Re: This command fucks my script - by Amads - 27.03.2016, 18:47
Re: This command fucks my script - by N0FeaR - 27.03.2016, 18:49
Re: This command fucks my script - by NeXoR - 27.03.2016, 19:15
Re: This command fucks my script - by N0FeaR - 27.03.2016, 20:25
Re: This command fucks my script - by NeXoR - 27.03.2016, 20:30
Re: This command fucks my script - by N0FeaR - 27.03.2016, 23:21
Re: This command fucks my script - by NeXoR - 28.03.2016, 11:49
Re: This command fucks my script - by thefirestate - 28.03.2016, 14:35

Forum Jump:


Users browsing this thread: 3 Guest(s)