SetPlayerRaceCheckpoint(playerid, 0, Maratono_CP[ZaidejoMCP[playerid]][0], Maratono_CP[ZaidejoMCP[playerid]][1], Maratono_CP[ZaidejoMCP[playerid]][2] ,Maratono_CP[ZaidejoMCP[playerid]][0], Maratono_CP[ZaidejoMCP[playerid]][1], Maratono_CP[ZaidejoMCP[playerid]][2], 10);
I use the command with:
Код:
SetPlayerRaceCheckpoint(playerid, 0, Maratono_CP[ZaidejoMCP[playerid]][0], Maratono_CP[ZaidejoMCP[playerid]][1], Maratono_CP[ZaidejoMCP[playerid]][2] ,Maratono_CP[ZaidejoMCP[playerid]][0], Maratono_CP[ZaidejoMCP[playerid]][1], Maratono_CP[ZaidejoMCP[playerid]][2], 10); Whats it's wrong Thank you for help me |
dcmd_maratonas(playerid, params[]) { #pragma unused params if(InZone[playerid] || kovoje[playerid] != 0 || cbug[playerid] != 0) return SendClientMessage(playerid, RED, "Pirmiausia palikite dabartines linksmybes ( /player )."); if(Maratonas == M_STARTING) return SendClientMessage(playerid, RED, "Dabar jūs negalite prisijungti į maratoną."); if(Maratone[playerid] == true ) return SendClientMessage(playerid, RED, "Jus jau dalyvaujate maratone."); new string[128]; new Vardas[MAX_PLAYER_NAME]; GetPlayerName(playerid, Vardas, 128); format(string, 128, "( /maratonas ) %s prisijungė į maratoną, jei nori ir tu raљyk maratonas", Vardas); SendClientMessageToAll(COLOR_ORANGE, string); Maratone[playerid] = true; SetPlayerRaceCheckpoint(playerid, 0, Maratono_CP[ZaidejoMCP[playerid]][0], Maratono_CP[ZaidejoMCP[playerid]][1], Maratono_CP[ZaidejoMCP[playerid]][2] ,Maratono_CP[ZaidejoMCP[playerid]][0], Maratono_CP[ZaidejoMCP[playerid]][1], Maratono_CP[ZaidejoMCP[playerid]][2], 10); SetPlayerPos(playerid,Maratono_CP[0][0], Maratono_CP[0][1], Maratono_CP[0][2]); SetPlayerVirtualWorld(playerid, M_WORLD); TextDrawShowForPlayer(playerid, playeris); return 1; }