31.01.2014, 18:28
I didn't do anything as stated, this is just a released PRRP gamemode. Actually I defined all the define errors and it worked, thank you retroDuckz.
But.. I got these now
OnConnect.pwn(6 : error 029: invalid expression, assumed zero
OnConnect.pwn(6 : error 001: expected token: ";", but found "]"
OnConnect.pwn(6 : error 029: invalid expression, assumed zero
OnConnect.pwn(6 : fatal error 107: too many error messages on one line
The dialog is..
//============================================//
NumOccurences(str[],ch)
{
new num=0,strl;
strl=strlen[128](str);
while(strl--) {
if(str[strl]==ch) num++;
}
return num;
}
IsInvalid(x)
{
if(x==95) return 0;
if(x>64&&x<91) return 0;
if(x>96&&x<123) return 0;
return 1;
}
FirstSeperationLoc(str[])
{
new strl;
strl=strlen(str);
while(strl--) {
if(str[strl]=='_') return strl;
}
return 0;
}
InvalidCaps(str[])
{
if(!IsUpper(str[0])||!IsUpper(str[FirstSeperationLoc(str[0])+1])) return 1;
return 0;
}
But.. I got these now
OnConnect.pwn(6 : error 029: invalid expression, assumed zero
OnConnect.pwn(6 : error 001: expected token: ";", but found "]"
OnConnect.pwn(6 : error 029: invalid expression, assumed zero
OnConnect.pwn(6 : fatal error 107: too many error messages on one line
The dialog is..
//============================================//
NumOccurences(str[],ch)
{
new num=0,strl;
strl=strlen[128](str);
while(strl--) {
if(str[strl]==ch) num++;
}
return num;
}
IsInvalid(x)
{
if(x==95) return 0;
if(x>64&&x<91) return 0;
if(x>96&&x<123) return 0;
return 1;
}
FirstSeperationLoc(str[])
{
new strl;
strl=strlen(str);
while(strl--) {
if(str[strl]=='_') return strl;
}
return 0;
}
InvalidCaps(str[])
{
if(!IsUpper(str[0])||!IsUpper(str[FirstSeperationLoc(str[0])+1])) return 1;
return 0;
}