Simon158_xD 0 Odesláno: 9. Leden, 2014 Share Odesláno: 9. Leden, 2014 C:\Users\CPS.pwn(377) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:\Users\CPS.pwn(377) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:\Users\CPS.pwn(377) : error 029: invalid expression, assumed zero C:\Users\CPS.pwn(377) : warning 215: expression has no effect C:\Users\CPS.pwn(377) : error 001: expected token: ";", but found ")" C:\Users\CPS.pwn(377) : error 029: invalid expression, assumed zero C:\Users\CPS.pwn(377) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. Radky: 370 371dcmd_cpstext(playerid, params[]) 372{ 373 TestPrint("dcmd_cpstext(playerid, params[])"); 374 375 if(Informace[playerid][AdminLevel] < 2) return NizkyLevel(playerid); 376 if(!strlen(params)) return MLMWhite(playerid, "{00FF00}Použi: {FF0000}/cps [TEXT]"); 377 new string[255]; 378 format(string, 255, "%s" ,params); 379 if(Informace[playerid][AdminLevel] > 3) SendClientMessageToAll(B_CERVENA,string); 380 else SendClientMessageToAll(B_SVITIVA,string); 381 return true; 382} 383 Link to comment Share on other sites More sharing options...
0 Tanga 131 Odesláno: 9. Leden, 2014 Share Odesláno: 9. Leden, 2014 To čítaš nejaký includ vonkajší? Link to comment Share on other sites More sharing options...
0 ATomas 286 Odesláno: 9. Leden, 2014 Share Odesláno: 9. Leden, 2014 Sice timto obchazis problem, ale vypada to ze to bude asi neco s define, i kdyz jsi tam mnel ten format do stringu zbytecne dcmd_cpstext(playerid, params[]) { TestPrint("dcmd_cpstext(playerid, params[])"); if(Informace[playerid][AdminLevel] < 2) return NizkyLevel(playerid); else if(!params[0]) return MLMWhite(playerid, "{00FF00}Použi: {FF0000}/cps [TEXT]"); else if(Informace[playerid][AdminLevel] > 3) SendClientMessageToAll(B_CERVENA,params); else SendClientMessageToAll(B_SVITIVA,params); return 1; } Link to comment Share on other sites More sharing options...
0 Simon158_xD 0 Odesláno: 10. Leden, 2014 Author Share Odesláno: 10. Leden, 2014 ATomasi nepomohlo to ajtak to hadže errory tak či onak Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 10. Leden, 2014 Share Odesláno: 10. Leden, 2014 a přidal si cpstext mezi toto? dcmd(ad, 2, cmdtext); dcmd(gm, 2, cmdtext); dcmd(gw, 2, cmdtext); dcmd(hp, 2, cmdtext); dcmd(me, 2, cmdtext); dcmd(ann, 3, cmdtext); dcmd(cpstext, 7, cmdtext); Link to comment Share on other sites More sharing options...
0 Simon158_xD 0 Odesláno: 10. Leden, 2014 Author Share Odesláno: 10. Leden, 2014 ano je to uplne dole. Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 10. Leden, 2014 Share Odesláno: 10. Leden, 2014 Já to mám v exisu takto a žádný erro to nehází : dcmd_ad(playerid, params[]) { TestPrint("dcmd_ad(playerid, params[])"); if(Informace[playerid][AdminLevel] < 2) return NizkyLevel(playerid); if(!strlen(params)) return MLMWhite(playerid, "Pouziti: /ad [ TEXT ]", "Pouzitie: /ad [ TEXT ]"); new string[255]; format(string, 255, "%s" ,params); if(Informace[playerid][AdminLevel] > 3) SendClientMessageToAll(B_CERVENA,string); else SendClientMessageToAll(B_SVITIVA,string); return true; } Link to comment Share on other sites More sharing options...
0 Simon158_xD 0 Odesláno: 10. Leden, 2014 Author Share Odesláno: 10. Leden, 2014 ja vím ani mňe to nehadzelo errory ale ja to prepisal na cpstext a pak to už hadzalo errory lebo nechcem to mat na /ad text to je moc kratke Link to comment Share on other sites More sharing options...
0 jAk3r 47 Odesláno: 10. Leden, 2014 Share Odesláno: 10. Leden, 2014 VYŘEŠENO MŮŽETE LOCK Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 11. Leden, 2014 Share Odesláno: 11. Leden, 2014 A opravdu tam máš tohle to číslo 7 je důležité znamená to počet písmen v příkazu! dcmd(cpstext, 7, cmdtext); //7 jako 7 písmen c,p,s,t,e,x,t Dříve tam bylo toto : dcmd(ad, 2, cmdtext); // 2 jak dvě písmena a,d Nemyslím si ,ale ,že by to kvůli tomu házelo errory spíš by ti ten příkaz jenom nefungoval. Link to comment Share on other sites More sharing options...
0 Simon158_xD 0 Odesláno: 11. Leden, 2014 Author Share Odesláno: 11. Leden, 2014 vím až tak blbej nejsem mám to tam a stale errory Link to comment Share on other sites More sharing options...
Dotaz
Simon158_xD 0
C:\Users\CPS.pwn(377) : warning 236: unknown parameter in substitution (incorrect #define pattern)
370
Link to comment
Share on other sites
10 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