02.02.2011, 19:44
Hi!
I have problem with command function. I have 4 commands, which are for each team. But the problem is that 1st command work fine for first team. The problem is, when i change my team 2nd command won't work and its same with rest commands for teams.
I removed 1st command for 1st team. Then basicly 2nd teams command is like first and then it works find.!
I am seriously confused!
Code:
I have problem with command function. I have 4 commands, which are for each team. But the problem is that 1st command work fine for first team. The problem is, when i change my team 2nd command won't work and its same with rest commands for teams.
I removed 1st command for 1st team. Then basicly 2nd teams command is like first and then it works find.!
I am seriously confused!
Code:
Код:
if (strcmp("/atgrieztmasinu", cmdtext, true, 10) == 0) { if(gTeam[playerid] == kaimins1) { if(IsPlayerInRangeOfPoint(playerid, 5, 1425.722534, -885.609985, 50.713619)) { SetVehicleToRespawn(Cars[kaiminsviens]); SendClientMessage(playerid, -1,"[Info] Māљīna atgriezta!"); } } return 1; } if (strcmp("/atgrieztmasinu", cmdtext, true, 10) == 0) { if(gTeam[playerid] == kaimins2) { if(IsPlayerInRangeOfPoint(playerid, 5, 1471.8503,-903.7045,54.8989)) { SetVehicleToRespawn(Cars[kaiminsdivi]); SendClientMessage(playerid, -1,"[Info] Māљīna atgriezta!"); } } return 1; } if (strcmp("/atgrieztmasinu", cmdtext, true, 10) == 0) { if(gTeam[playerid] == kaimins3) { if(IsPlayerInRangeOfPoint(playerid, 5, 1539.5809,-855.2153,64.3361)) { SetVehicleToRespawn(Cars[kaiminstris]); SendClientMessage(playerid, -1,"[Info] Māљīna atgriezta!"); } } return 1; }