Stellet 7 Odesláno: 27. Prosinec, 2014 Share Odesláno: 27. Prosinec, 2014 Ahoj chtěl bych udělat že příkazem se uloží port a pak se na něj lidi mohou portovat: static Float:pP[3]; static bool:PortState; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/ulozport", cmdtext, true, 10) == 0) { GetPlayerPos(playerid, pP[0], pP[1], pP[2]); return 1; } if (strcmp("/aport", cmdtext, true, 10) == 0) { if(PortState == true) SetPlayerPos(playerid, pP[0], pP[1], pP[2]); else SendClientMessage(playerid, -1, "Admin Port je vypnut"); } if (strcmp("/aporton", cmdtext, true, 10) == 0) { if(PortState == true) PortState = false; return 1; } if (strcmp("/aportoff", cmdtext, true, 10) == 0) { if(PortState == false) PortState = true; return 1; } return 0; } žádný error ale ve hře to furt píše Port je vypnutý.. Link to comment Share on other sites More sharing options...
0 Robin 67 Odesláno: 27. Prosinec, 2014 Share Odesláno: 27. Prosinec, 2014 Nemas tie funkcie prehodene? Link to comment Share on other sites More sharing options...
0 Lusky 4 Odesláno: 27. Prosinec, 2014 Share Odesláno: 27. Prosinec, 2014 Tie príkazy máš prehodené Link to comment Share on other sites More sharing options...
0 ATomas 290 Odesláno: 27. Prosinec, 2014 Share Odesláno: 27. Prosinec, 2014 mas prohozene vypinani a zapinani portu Link to comment Share on other sites More sharing options...
0 Stellet 7 Odesláno: 27. Prosinec, 2014 Author Share Odesláno: 27. Prosinec, 2014 Jinak proč mi to píše pořad na serveru Tento příkaz neexistuje ! ale portne mě to Link to comment Share on other sites More sharing options...
0 ATomas 290 Odesláno: 27. Prosinec, 2014 Share Odesláno: 27. Prosinec, 2014 protoze tam nemas return 1; Link to comment Share on other sites More sharing options...
0 ► Anonymous ◄ 0 Odesláno: 28. Prosinec, 2014 Share Odesláno: 28. Prosinec, 2014 Dúfam že funguje static Float:pP[3]; static PortState[MAX_PLAYERS]; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/ulozport", cmdtext, true, 10) == 0) { GetPlayerPos(playerid, pP[0], pP[1], pP[2]); return 1; } if (strcmp("/aport", cmdtext, true, 10) == 0) { if(PortState == 0) retunr SendClientMessage(playerid, -1, "Admin Port je vypnut"); SetPlayerPos(playerid,pP[0],pP[1],pP[2]); return 1; } if (strcmp("/aporton", cmdtext, true, 10) == 0) { PortState[playerid] = 1; GetPlayerPos(playerid, pP[0], pP[1], pP[2]); return 1; } if (strcmp("/aportoff", cmdtext, true, 10) == 0) { PortState[playerid] = 0; return 1; } return 0; } Link to comment Share on other sites More sharing options...
Dotaz
Stellet 7
Ahoj chtěl bych udělat že příkazem se uloží port a pak se na něj lidi mohou portovat:
žádný error ale ve hře to furt píše Port je vypnutý..
Link to comment
Share on other sites
6 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