Fuggy 2 Odesláno: 19. Leden, 2013 Share Odesláno: 19. Leden, 2013 kde mam chybu pise 13 radek #include <a_samp> public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/afk", cmdtext, true, 10) == 0) { new pName[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME;) format(string,sizeof(string), "--->%s Je AFK !", pName); SendClientMessageToAll (0x0000BBAA, string); TogglePlayerControllable(playerid, 0); SetPlayerHealth(playerid, 999999.99); return 1; } return 0; } Link to comment Share on other sites More sharing options...
0 Nikes 9 Odesláno: 19. Leden, 2013 Share Odesláno: 19. Leden, 2013 A kterej je řádek 13?.. a smaž SetPlayerHealth(playerid, 999999.99) totalní blbost freeze ti dá samo nekonečno HP Link to comment Share on other sites More sharing options...
0 Hrb™ 48 Odesláno: 19. Leden, 2013 Share Odesláno: 19. Leden, 2013 Tady: GetPlayerName(playerid,pName,MAX_PLAYER_NAME;) to máš špatně ten konec. má to být ");" takže: GetPlayerName(playerid,pName,MAX_PLAYER_NAME); Link to comment Share on other sites More sharing options...
0 Fuggy 2 Odesláno: 20. Leden, 2013 Author Share Odesláno: 20. Leden, 2013 ok dik hele mam toto #include <a_samp> public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/afk", cmdtext, true, 10) == 0) { new pName[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof(string), "--->%s Je AFK !", pName); SendClientMessageToAll (0x0000BBAA, string); TogglePlayerControllable(playerid, 0); SetPlayerHealth(playerid, 999999.99); return 1; } if (strcmp("/back", cmdtext, true, 10) == 0) { new pName[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof(string), "--->%s Už není AFK !", pName); SendClientMessageToAll (0x0000BBAA, string); TogglePlayerControllable(playerid, 0); SetPlayerHealth(playerid, 100); return 1; } return 0; } a píše mi to (20) : warning 217: loose indentation C:\Users\JAKUB\Desktop\afk.pwn(24) : warning 217: loose indentation C:\Users\JAKUB\Desktop\afk.pwn(25) : warning 217: loose indentation C:\Users\JAKUB\Desktop\afk.pwn(31) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Warnings. jak opravim ? Link to comment Share on other sites More sharing options...
0 Nikes 9 Odesláno: 20. Leden, 2013 Share Odesláno: 20. Leden, 2013 #pragma tabsize 0 Link to comment Share on other sites More sharing options...
0 PiratesOfSamp 1 Odesláno: 20. Únor, 2014 Share Odesláno: 20. Únor, 2014 Amater Link to comment Share on other sites More sharing options...
0 Lukes_CZ 17 Odesláno: 20. Únor, 2014 Share Odesláno: 20. Únor, 2014 A to proč píšeš do rok starýho topicu ? Link to comment Share on other sites More sharing options...
Dotaz
Fuggy 2
kde mam chybu pise 13 radek
#include <a_samp>
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/afk", cmdtext, true, 10) == 0)
{
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME;)
format(string,sizeof(string), "--->%s Je AFK !", pName);
SendClientMessageToAll (0x0000BBAA, string);
TogglePlayerControllable(playerid, 0);
SetPlayerHealth(playerid, 999999.99);
return 1;
}
return 0;
}
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