Script doesn't execute a sendclientmessage
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
Return after the loop, after the message that isn't displayed. Also if the very first vehicle in the list isn't owned by you then the loop will just stop on the first iteration and the only thing you will see is the first horizontal rule and nothing else.
I am returning it after the loop.

My code right now:

PHP код:
        else if(!strcmp(tmp"list"true5))
        {
            new 
iBigStr[386];
               
SendClientMessage(playerid, -1"{3696EB}________________________________________________________________________");
               
SendClientMessage(playerid, -1sprintf("{D4D4D4}[VEHICLES] {ffffff}%s{D4D4D4}'s vehicles: ",Name(playerid)));
               for(new 
1sizeof(Vehicle); i++)
                {
                           if(!
strcmp(Vehicle[i][vOwner], Name(playerid), false))
                        {
                            new 
zone80 ], Float:vipos[3], lockstr[10];
                            if(
Vehicle[i][tmplocked]) myStrcpy(lockstr"Yes");
                            else 
myStrcpy(lockstr"No");
                            
GetVehiclePos(ivipos[0], vipos[1], vipos[2]);
                            
GetZone(vipos[0], vipos[1], vipos[2], zone);
                             
format(iBigStrsizeof(iBigStr), "{bebaba}(ID %d) {51983e}%s [Location: {bebaba}%s{51983e}] [Locked: {bebaba}%s{51983e}]"iGetVehicleName(i), zonelockstr);
                            
SendClientMessage(playerid, -1iBigStr);
                        }
                }
            
SendClientMessage(playerid, -1"{3696EB}________________________________________________________________");
           } 
output:
Reply


Messages In This Thread
Script doesn't execute a sendclientmessage - by justjamie - 13.08.2016, 09:46
Re: Script doesn't execute a sendclientmessage - by Vince - 13.08.2016, 10:10
Re: Script doesn't execute a sendclientmessage - by justjamie - 13.08.2016, 10:11
Re: Script doesn't execute a sendclientmessage - by Vince - 13.08.2016, 10:13
Re: Script doesn't execute a sendclientmessage - by justjamie - 13.08.2016, 10:14
Re: Script doesn't execute a sendclientmessage - by Shinja - 13.08.2016, 12:30
Re: Script doesn't execute a sendclientmessage - by Konstantinos - 13.08.2016, 12:54

Forum Jump:


Users browsing this thread: 1 Guest(s)