Onplayerspawn help
#5

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;
}
Reply


Messages In This Thread
Onplayerspawn help - by Benjamins - 31.01.2014, 18:17
Re: Onplayerspawn help - by xRetroDuckz - 31.01.2014, 18:21
AW: Onplayerspawn help - by ReD_HunTeR - 31.01.2014, 18:25
Re: Onplayerspawn help - by Acres - 31.01.2014, 18:26
Re: Onplayerspawn help - by Benjamins - 31.01.2014, 18:28

Forum Jump:


Users browsing this thread: 3 Guest(s)