[SUGGESTION]SendClientMessageToAll Shunt
#1

pawn Код:
SendClientMessageToWorld(0xFFFFFFAA,text);
SendClientMessageToInterior(0xFFFFFFAA,text);
SendClientMessageToVehicle(0xFFFFFFAA,text);
SendClientMessageToTeam(0xFFFFFFAA,text);
=Equal
SendClientMessageToAllWorld(GetPlayerVirtualWorld(playerid),0xFFFFFFAA,text);
SendClientMessageToAllInterior(GetPlayerInterior(playerid),0xFFFFFFAA,text);
SendClientMessageToAllVehicle(GetPlayerVehicleID(playerid),0xFFFFFFAA,text);
SendClientMessageToAllTeam(GetPlayerTeam(playerid),0xFFFFFFAA,text);
我服了你们了,这么简单都看不懂。
Reply
#2

Why do you need to send a message to vehicle?
Reply
#3

All 4 are scriptable.
Reply
#4

Because there are enemies outside the vehicle
Reply
#5

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
All 4 are scriptable.
scriptable Too slow.
Reply
#6

Quote:
Originally Posted by 435076378
Посмотреть сообщение
scriptable Too slow.
Would use the same methods even if it was added.

Don't act like anything that can be scripted is slow as fuck.
Reply
#7

Quote:
Originally Posted by 435076378
Посмотреть сообщение
scriptable Too slow.
Did you do test results?
How can you say its too slow, if you have no information about scripting?
Reply
#8

Quote:
Originally Posted by 435076378
Посмотреть сообщение
scriptable Too slow.
Slow? If you script it properly, it isn't...
Reply
#9

Quote:
Originally Posted by wups
Посмотреть сообщение
Did you do test results?
How can you say its too slow, if you have no information about scripting?
He doesn't know how to create it.

If you think 0.1 second is too slow, then use foreach which will make it 0.09 seconds!
Reply
#10

Indeed

pawn Код:
native SendClientMessageToWorld(worldid ,0xFFFFFFAA ,text);
native SendClientMessageToInterior(interiorid ,0xFFFFFFAA ,text);
native SendClientMessageToVehicle(vehicleid ,0xFFFFFFAA ,text);
native SendClientMessageToTeam(team ,0xFFFFFFAA ,text);


/*SendClientMessageToAllWorld(GetPlayerVirtualWorld(playerid),0xFFFFFFAA,text);
SendClientMessageToAllInterior(GetPlayerInterior(playerid),0xFFFFFFAA,text);                   USELESS
SendClientMessageToAllVehicle(GetPlayerVehicleID(playerid),0xFFFFFFAA,text);
SendClientMessageToAllTeam(GetPlayerTeam(playerid),0xFFFFFFAA,text);*/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)