Jump to content
  • 0

Text cu litera mare!


ruben88

Question

Salut,am comanda asta sau ce o fi ea care cand scrie un player se face prima litera mare adik: a si in chat se face A stiti voi!

if(text[0] == 'a') return text[0]='A';
    if(text[0] == 'b') return text[0]='B';
    if(text[0] == 'c') return text[0]='C';
    if(text[0] == 'd') return text[0]='D';
    if(text[0] == 'e') return text[0]='E';
    if(text[0] == 'f') return text[0]='F';
    if(text[0] == 'g') return text[0]='G';
    if(text[0] == 'h') return text[0]='H';
    if(text[0] == 'i') return text[0]='I';
    if(text[0] == 'j') return text[0]='J';
    if(text[0] == 'k') return text[0]='K';
    if(text[0] == 'l') return text[0]='L';
    if(text[0] == 'm') return text[0]='M';
    if(text[0] == 'n') return text[0]='N';
    if(text[0] == 'o') return text[0]='O';
    if(text[0] == 'p') return text[0]='P';
    if(text[0] == 'q') return text[0]='Q';
    if(text[0] == 'r') return text[0]='R';
    if(text[0] == 's') return text[0]='S';
    if(text[0] == 't') return text[0]='T';
    if(text[0] == 'u') return text[0]='U';
    if(text[0] == 'v') return text[0]='V';
    if(text[0] == 'x') return text[0]='X';
    if(text[0] == 'y') return text[0]='Y';
    if(text[0] == 'z') return text[0]='Z';
    return 1;
}
Am mai avuto odata a mers atuncea dar acm nu mai ami merge ami da aceste eruori!
gamemodes\SU.pwn(1738) : error 010: invalid function or declaration
gamemodes\SU.pwn(1739) : error 010: invalid function or declaration
gamemodes\SU.pwn(1742) : error 021: symbol already defined: "GetPlayerName"
gamemodes\SU.pwn(1745) : error 010: invalid function or declaration
gamemodes\SU.pwn(1748) : error 021: symbol already defined: "format"
gamemodes\SU.pwn(1750) : error 010: invalid function or declaration
gamemodes\SU.pwn(5062) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
gamemodes\SU.pwn(5627) : warning 203: symbol is never used: "PlayerName"
C:gamemodes\SU.pwn(5627) : warning 203: symbol is never used: "textstring"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Ruben" post="50616" timestamp="1295286422"]

Pai mam tot uitat pe ele dar daca pun comanda aia fara asta:

return 1;
}
si doar cu asta
)
Ami da doar 2 errori!
stii si dc Paranteza nu a fost deschisa ...Deschide paranteza.. Zhero Ai dreptate dar mai mult e de la acest script din cauza acestui script se fac erori ia sterge comanda sa vezi ca numai ai erori bago iar si iar 2 eror sau 6.. Deschide pARANTEZA POATe iti merge
{
if(text[0] == 'a') return text[0]='A';
    if(text[0] == 'b') return text[0]='B';
    if(text[0] == 'c') return text[0]='C';
    if(text[0] == 'd') return text[0]='D';
    if(text[0] == 'e') return text[0]='E';
    if(text[0] == 'f') return text[0]='F';
    if(text[0] == 'g') return text[0]='G';
    if(text[0] == 'h') return text[0]='H';
    if(text[0] == 'i') return text[0]='I';
    if(text[0] == 'j') return text[0]='J';
    if(text[0] == 'k') return text[0]='K';
    if(text[0] == 'l') return text[0]='L';
    if(text[0] == 'm') return text[0]='M';
    if(text[0] == 'n') return text[0]='N';
    if(text[0] == 'o') return text[0]='O';
    if(text[0] == 'p') return text[0]='P';
    if(text[0] == 'q') return text[0]='Q';
    if(text[0] == 'r') return text[0]='R';
    if(text[0] == 's') return text[0]='S';
    if(text[0] == 't') return text[0]='T';
    if(text[0] == 'u') return text[0]='U';
    if(text[0] == 'v') return text[0]='V';
    if(text[0] == 'x') return text[0]='X';
    if(text[0] == 'y') return text[0]='Y';
    if(text[0] == 'z') return text[0]='Z';
    return 1;
} 

Uite tiam fakut eu..

Problema era ca paranteza a fost inchisa fara a fi deschisa..

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.