- 0
eroare compilare - pawn compiler - ultima versiune
-
Similar Content
-
- 62 replies
- 5,765 views
-
- 27 replies
- 19,325 views
-
- 15 replies
- 1,476 views
-
- 93 replies
- 8,194 views
-
- 0 replies
- 469 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
VeLo
Buna,
Am facut UPDATE la pawn compiler si primesc eroarea asta:
error 092: functions may not return arrays of unknown size (symbol "Adrian")
asta e linia:
Adrian(playerid, A, PlayerInfo[playerid][pLoserLevel]);
si acesta este stock-ul:
stock Adrian(playerid, string[], V) { new A, B, C; if(!V) { switch(random(5)) { case 0: V = 1; case 1: V = 3; case 2: V = 5; case 3: V = 7; case 4: V = 9; } PlayerInfo[playerid][pLoserLevel] = V; } switch(V) { case 1: { A = 3; B = 4; C = 7; } case 3: { A = 8; B = 9; C = 1; } case 5: { A = 3; B = 7; C = 4; } case 7: { A = 1; B = 3; C = 9; } case 9: { A = 5; B = 2; C = 6; } } for(new i, l = strlen(string); i < l; i++) { switch(string[i]) { case 48..57: { string[i] += A; if(string[i] > 57) string[i] -= 10; } case 65..90: { string[i] += B; if(string[i] > 90) string[i] -= 26; } case 97..122: { string[i] += C; if(string[i] > 122) string[i] -= 26; } } } return string; }
P.S: ESTE FOLOSIT PENTRU HASH PAROLA, UN FEL DE CRYPT. - eficient.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.