RejW 0 Odesláno: 4. Červen, 2012 Share Odesláno: 4. Červen, 2012 Mám vytvořenou definici... new PlayerTeam[MAX_PLAYERS]; a v tomto řádku mi to nepřečte... public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); if(classid == 0) { PlayerTeam[playerid] = 0; SetPlayerTeam(playerid,0); Link to comment Share on other sites More sharing options...
0 milous22 14 Odesláno: 4. Červen, 2012 Share Odesláno: 4. Červen, 2012 daj si za ten riadok toto: printf("RequestClass %i %i",playerid,classid); a sleduj či sa ti to vypíše v konzole/logu. Ak to tam nájdeš tak to prečítalo, ak nie tak máš niekde chybu (v tom kóde čo si poslal chyba nie je). Link to comment Share on other sites More sharing options...
0 RejW 0 Odesláno: 4. Červen, 2012 Author Share Odesláno: 4. Červen, 2012 Tak to bude teda asi problem někde jinde... Link to comment Share on other sites More sharing options...
0 Adrián Lipták 51 Odesláno: 4. Červen, 2012 Share Odesláno: 4. Červen, 2012 Niečo sa mi nezdá na tom SetPlayerTeam Hádže ti to errory ? ( asi nie prečo sa pýtam ) Link to comment Share on other sites More sharing options...
0 RejW 0 Odesláno: 4. Červen, 2012 Author Share Odesláno: 4. Červen, 2012 iaN":2fetmjcm]Niečo sa mi nezdá na tom SetPlayerTeam Hádže ti to errory ? ( asi nie prečo sa pýtam ) A co na tom je jako špatně ? Link to comment Share on other sites More sharing options...
0 Adrián Lipták 51 Odesláno: 4. Červen, 2012 Share Odesláno: 4. Červen, 2012 neviem mno... public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); if(PlayerTeam[playerid] = 0)// či je 0 { SCM(playerid, Farba, "Máš PlayerTeam = 0"); // sprava } if(PlayerTeam[playerid] = 1) { SCM(..."Máš PlayerTeam = 1"); } A ak chceš mu nastaviť tým tak napr. dcmd_team1(..) { PlayerTeam[playerid] = 1; // dá mu hodnotu 1 mislím ... ja robim cez PVary return 1; } EDIT:// ak tam mám niečo/všetko zle tak sa ospravedlňujem... Link to comment Share on other sites More sharing options...
Dotaz
RejW 0
Mám vytvořenou definici...
new PlayerTeam[MAX_PLAYERS];
a v tomto řádku mi to nepřečte...
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
if(classid == 0)
{
PlayerTeam[playerid] = 0;
SetPlayerTeam(playerid,0);
Link to comment
Share on other sites
5 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now