Need help wich my register/login system if done but have some problems
#1

these is the full register/login/admins system that i made but its have some problem can someone help me.It well be bether if someone puts again wich no errors

Thanks


http://pastebin.com/r0pchU6s <--- here the link please awnser wich this website

and problems is

D:\samp\My gamemod \gamemodes\mygamemode.pwn(275) : error 017: undefined symbol "dcmd_register"
D:\samp\My gamemod\gamemodes\mygamemode.pwn(276) : error 017: undefined symbol "dcmd_login"
D:\samp\My gamemod\gamemodes\mygamemode.pwn(277) : error 017: undefined symbol "dcmd_logout"
D:\samp\My gamemod\gamemodes\mygamemode.pwn(27 : error 017: undefined symbol "dcmd_password"
D:\samp\My gamemod\gamemodes\mygamemode.pwn(280) : error 017: undefined symbol "dcmd_register"
D:\samp\My gamemod\gamemodes\mygamemode.pwn(284) : error 017: undefined symbol "params"
D:\samp\My gamemod\gamemodes\mygamemode.pwn(284) : warning 215: expression has no effect
D:\samp\My gamemod\gamemodes\mygamemode.pwn(284) : error 001: expected token: ";", but found "]"
D:\samp\My gamemod\gamemodes\mygamemode.pwn(284) : error 029: invalid expression, assumed zero
D:\samp\My gamemod\gamemodes\mygamemode.pwn(284) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


9 Errors.
Reply
#2

Define the dcmds at OnPlayerCommandText.
Reply
#3

Quote:
Originally Posted by Gazmull
Посмотреть сообщение
Define the dcmds at OnPlayerCommandText.
i post all work can you see
Reply
#4

Oh, there.
EDIT:
I noticed it that your commands are inside OnPlayerCommandText.
Try to put the commands outside OnPlayerCommandText.
Reply
#5

Quote:
Originally Posted by Gazmull
Посмотреть сообщение
Oh, there.
EDIT:
I noticed it that your commands are inside OnPlayerCommandText.
Try to put the commands outside OnPlayerCommandText.
this time left 6 errors


D:\samp\My gamemode\gamemodes\mygamemode.pwn(561) : warning 203: symbol is never used: "dcmd_akill"
D:\samp\My gamemode\gamemodes\mygamemode.pwn(561) : warning 203: symbol is never used: "dcmd_announce"
D:\samp\My gamemode\gamemodes\mygamemode.pwn(561) : warning 203: symbol is never used: "dcmd_login"
D:\samp\My gamemode\gamemodes\mygamemode.pwn(561) : warning 203: symbol is never used: "dcmd_logout"
D:\samp\My gamemode\gamemodes\mygamemode.pwn(561) : warning 203: symbol is never used: "dcmd_password"
D:\samp\My gamemode\gamemodes\mygamemode.pwn(561) : warning 203: symbol is never used: "dcmd_register"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Warnings.


idk were i wrong and why wont complite
Reply
#6

Quote:
Originally Posted by doreto
Посмотреть сообщение
this time left 6 errors


D:\samp\My gamemode\gamemodes\mygamemode.pwn(561) : warning 203: symbol is never used: "dcmd_akill"
D:\samp\My gamemode\gamemodes\mygamemode.pwn(561) : warning 203: symbol is never used: "dcmd_announce"
D:\samp\My gamemode\gamemodes\mygamemode.pwn(561) : warning 203: symbol is never used: "dcmd_login"
D:\samp\My gamemode\gamemodes\mygamemode.pwn(561) : warning 203: symbol is never used: "dcmd_logout"
D:\samp\My gamemode\gamemodes\mygamemode.pwn(561) : warning 203: symbol is never used: "dcmd_password"
D:\samp\My gamemode\gamemodes\mygamemode.pwn(561) : warning 203: symbol is never used: "dcmd_register"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Warnings.


idk were i wrong and why wont complite
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(register, 8, cmdtext);
    dcmd(login, 5, cmdtext);
    dcmd(logout, 6, cmdtext);
    dcmd(password, 8, cmdtext);
    dcmd(announce,8,cmdtext);
    dcmd(akill, 5, cmdtext);
    return 0;

}
Replace onplayercommandtext with that, it might work.
Reply
#7

good progres but have found anather erros

D:\samp\My gamemode\gamemodes\mygamemode.pwn(289) : error 001: expected token: ")", but found "else"
D:\samp\My gamemode\gamemodes\mygamemode.pwn(289) : error 029: invalid expression, assumed zero
D:\samp\My gamemode\gamemodes\mygamemode.pwn(289 -- 290) : warning 215: expression has no effect
D:\samp\My gamemode\gamemodes\mygamemode.pwn(290) : error 001: expected token: ";", but found "return"
D:\samp\My gamemode\gamemodes\mygamemode.pwn(290) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

and heres that errors line


Quote:

->>284 dcmd_register(playerid, params[])
->> 285 {
->>286 if(gPlayerInfo[playerid][PLAYER_REGGED] == 1)
->>287 return SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: You have already registered!");
->>288 if(!params[0]
->>289 else
->>290 return 1;

if i remove return 1; errors will come 7
Reply
#8

pawn Код:
dcmd_register(playerid, params[])
{
if(gPlayerInfo[playerid][PLAYER_REGGED] == 1)
{
return SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: You have already registered!");
}
if(!params[0]
{
    else
}
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)