20.10.2018, 17:43
Help pls...
I update pawn compiler, last version and i recived this warning
xyz.pwn(22109) : warning 214: possibly a "const" array argument was intended: "string"
22109:
I update pawn compiler, last version and i recived this warning
xyz.pwn(22109) : warning 214: possibly a "const" array argument was intended: "string"
22109:
Quote:
stock CheckName(playerid, string[]) { if(strfind(string, ".", true) == 0) return Kick(playerid); new numbers, lenght = strlen(string); for(new i; i < lenght; i++) { if(string[i] >= '0' && string[i] <= '9') numbers ++; } if(numbers < 5) return 0; else if(numbers < Kick(playerid); else BanEx(playerid, "Invalid Name"); return 1; } |