detecting map
#3

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.

PHP код:
switch(MapChange)
{
    case 
0SendClientMessage(i, -1"{FFFF99}[SERVER]: The map has been changed! (Map: Los Santos)");
    case 
1SendClientMessage(i, -1"{FFFF99}[SERVER]: The map has been changed! (Map: Bayside)");
    case 
2SendClientMessage(i, -1"{FFFF99}[SERVER]: The map has been changed! (Map: Las Payasdas)");

Reply


Messages In This Thread
detecting map - by ivndosos - 30.03.2018, 09:17
Re: detecting map - by Staark - 30.03.2018, 09:50
Re: detecting map - by AdamsLT - 30.03.2018, 09:51
Re: detecting map - by ivndosos - 30.03.2018, 10:24
Re: detecting map - by AdamsLT - 30.03.2018, 10:35
Re: detecting map - by ivndosos - 30.03.2018, 10:53

Forum Jump:


Users browsing this thread: 1 Guest(s)