Onplayerspawn help
#1

Hey! I got some problems here, I wanted to test PR RP's gamemode, the Explicit Roleplay version but..

I got '' Server closed the connection '' after I register IG. But I went on pawno and clicked on the .amx that says ''OnConnect'' I think its the problem because this is what I got when I compiled (I edited nothing)

Код:
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(13) : error 017: undefined symbol "strlen"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(17) : error 017: undefined symbol "floatdiv"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(17) : warning 213: tag mismatch
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(18) : error 017: undefined symbol "floatmul"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(18) : warning 213: tag mismatch
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(19) : warning 213: tag mismatch
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(26) : error 017: undefined symbol "strlen"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(35) : error 017: undefined symbol "strlen"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(52) : error 017: undefined symbol "strlen"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(54) : warning 217: loose indentation
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(63) : error 017: undefined symbol "strlen"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(81) : error 017: undefined symbol "strlen"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(97) : error 017: undefined symbol "strlen"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(109) : warning 235: public function lacks forward declaration (symbol "OnConnectInit")
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(111) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(112) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(113) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(114) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(115) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(116) : warning 217: loose indentation
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(116) : error 017: undefined symbol "SetPVarInt"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(117) : error 017: undefined symbol "SetPVarInt"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(118) : error 017: undefined symbol "SetPVarInt"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(119) : error 017: undefined symbol "SetPVarInt"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(120) : error 017: undefined symbol "SetPVarInt"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(121) : error 017: undefined symbol "SetPVarInt"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(122) : error 017: undefined symbol "SetPVarInt"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(123) : error 017: undefined symbol "SetPVarInt"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(124) : error 017: undefined symbol "SetPVarInt"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(125) : error 017: undefined symbol "SetPVarInt"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(126) : error 017: undefined symbol "SetPVarInt"
C:\Users\Yaser\Desktop\SA-MP\gamemodes\OnConnect.pwn(127) : error 017: undefined symbol "PlayerInfo"
Reply
#2

undefined symbol

That's most of your errors...

You need to #define them.
Reply
#3

you did something wrong before line 17 in gamemode check it what is it
Reply
#4

you might have missed something so it will give you that maybe you just added something had many times things like these.
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)