MegaTheVova 1 Odesláno: 10. Únor, 2016 Share Odesláno: 10. Únor, 2016 (upraveno) Zdarec.. mam takovy problem nevim jak se zbavit tohohle warningu.. byl bych moc rad kdyby jste mi pomohli diky Warning: C:\Users\MegaTheVova\Desktop\Různé\server\Drift.pwn(2079) : warning 213: tag mismatch Prikaz: if(strcmp("/gotoon", cmdtext, true, 10) == 0) { if(GOTO[playerid] == false) { SendClientMessage(playerid, COLOR_RED, "{FFFFFF}[{3399FF}Aw{FFFFFF}]{3399FF}:{FFFFFF} You have enabled goto."); GOTO[playerid] = 1; } else { if(GOTO[playerid] == true) return SendClientMessage(playerid, COLOR_GREEN, "{FFFFFF}[{3399FF}Aw{FFFFFF}]{3399FF}:{FFFFFF} At the moment you have enabled goto."); return 1; } } Edited 10. Únor, 2016 by MegaTheVova Link to comment Share on other sites More sharing options...
0 Matess 36 Odesláno: 10. Únor, 2016 Share Odesláno: 10. Únor, 2016 A co takhle definici GOTO? Nejspíš tam máš "bool:GOTO[MAX_PLAYERS]" , tudíž GOTO[playerid] = true a tohle if(GOTO[playerid] == true) je tam pak zbytečné. Link to comment Share on other sites More sharing options...
0 MegaTheVova 1 Odesláno: 10. Únor, 2016 Author Share Odesláno: 10. Únor, 2016 (upraveno) A co takhle definici GOTO? Nejspíš tam máš "bool:GOTO[MAX_PLAYERS]" , tudíž GOTO[playerid] = true a tohle if(GOTO[playerid] == true) je tam pak zbytečné. definici tam mam diky Edited 10. Únor, 2016 by MegaTheVova Link to comment Share on other sites More sharing options...
0 Globální moderátor Hip 191 Odesláno: 10. Únor, 2016 Globální moderátor Share Odesláno: 10. Únor, 2016 else { if ... se nepoužívá takto.. použij else if(...) { ... } A do bool proměné dosazuj true/false a ne 1/0 Ve výsledku je to jedno, ale pro přehled lepší a myslím že ten warn je kvůli tomu ... Link to comment Share on other sites More sharing options...
0 ATomas 286 Odesláno: 11. Únor, 2016 Share Odesláno: 11. Únor, 2016 if(strcmp("/gotoon",cmdtext,true) == 0) { if(GOTO[playerid] == false) { SendClientMessage(playerid,COLOR_RED,"{FFFFFF}[{3399FF}Aw{FFFFFF}]{3399FF}:{FFFFFF} You have enabled goto."); GOTO[playerid] = true; } else SendClientMessage(playerid,COLOR_GREEN,"{FFFFFF}[{3399FF}Aw{FFFFFF}]{3399FF}:{FFFFFF} At the moment you have enabled goto."); return 1; } Link to comment Share on other sites More sharing options...
0 MegaTheVova 1 Odesláno: 15. Únor, 2016 Author Share Odesláno: 15. Únor, 2016 diky hosi Link to comment Share on other sites More sharing options...
0 Lukasz 336 Odesláno: 15. Únor, 2016 Share Odesláno: 15. Únor, 2016 (upraveno) if(strcmp("/gotoon",cmdtext,true) == 0) { if(GOTO[playerid]) return SendClientMessage(playerid,COLOR_GREEN,"{FFFFFF}[{3399FF}Aw{FFFFFF}]{3399FF}:{FFFFFF} At the moment you have enabled goto."); GOTO[playerid] = true; return SendClientMessage(playerid,COLOR_RED,"{FFFFFF}[{3399FF}Aw{FFFFFF}]{3399FF}:{FFFFFF} You have enabled goto."); } Edited 15. Únor, 2016 by Lukasz Link to comment Share on other sites More sharing options...
Dotaz
MegaTheVova 1
Zdarec.. mam takovy problem nevim jak se zbavit tohohle warningu.. byl bych moc rad kdyby jste mi pomohli diky
Warning:
Prikaz:
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