30.03.2018, 09:51
Your code doesn't really make much sense. Think about it, you are checking if the variable that contains the array data of the map spawns is equal to 1. What should that even mean? It won't give you the data you want.
If your code is like the example I showed you (http://forum.sa-mp.com/showthread.ph...53#post4007353) then you should check if MapChange == 0 or MapChange == 1, etc...
Also use a switch statement since it is more effective with these kinds of checks.
If your code is like the example I showed you (http://forum.sa-mp.com/showthread.ph...53#post4007353) then you should check if MapChange == 0 or MapChange == 1, etc...
Also use a switch statement since it is more effective with these kinds of checks.
PHP код:
switch(MapChange)
{
case 0: SendClientMessage(i, -1, "{FFFF99}[SERVER]: The map has been changed! (Map: Los Santos)");
case 1: SendClientMessage(i, -1, "{FFFF99}[SERVER]: The map has been changed! (Map: Bayside)");
case 2: SendClientMessage(i, -1, "{FFFF99}[SERVER]: The map has been changed! (Map: Las Payasdas)");
}