[REP+] Gamemode compile error
#1

I have problems with my gamemode. I convert my commands to zcmd, but when I try to compile I get errors.

Quote:

C:\Users\sofie's\Desktop\SKCNRV3\gamemodes\CNR.pwn (3356) : error 029: invalid expression, assumed zero
C:\Users\sofie's\Desktop\SKCNRV3\gamemodes\CNR.pwn (3356) : error 017: undefined symbol "cmd_register"
C:\Users\sofie's\Desktop\SKCNRV3\gamemodes\CNR.pwn (3356) : error 029: invalid expression, assumed zero
C:\Users\sofie's\Desktop\SKCNRV3\gamemodes\CNR.pwn (3356) : fatal error 107: too many error messages on one line

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


4 Errors.

Line 3356 - 3385
Код:
CMD:register(playerid, params[])
	{
	    tmp = strtok(cmdtext, idx);
	    if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "/register [password]");
	    format(file,sizeof(file),"%s.streetkings", name);
	    if(!fexist(file))
		{
			dini_Create(file);
			dini_IntSet(file, "Password", udb_hash(tmp));
			dini_IntSet(file, "Money", 2500);
			dini_IntSet(file, "Score", 1);
			dini_IntSet(file, "Bank", 1000);
			dini_IntSet(file, "RobSkill", 1);
			dini_IntSet(file, "TerSkill", 1);
			dini_IntSet(file, "Admin", 0);
			dini_IntSet(file, "Warnings", 0);
			dini_IntSet(file, "WantedLevel", 0);
			dini_IntSet(file, "Jail", 0);
			dini_IntSet(file, "RentalOwner", 0);
			dini_IntSet(file, "Drugs", 0);
			dini_IntSet(file, "C4", 0);
			dini_IntSet(file, "Skin", -1);
			SendClientMessage(playerid, GREY, "Thanks for registering!");
			SendClientMessage(playerid, GREY, "You may now login.");
			SendClientMessage(playerid, GREY, "To do so, type: /login [PASSWORD]");
			GameTextForPlayer(playerid, "~r~Registered!", 3000, 1);
		}
		else SendClientMessage(playerid, ERROR, "This account is already registered in our system. Use: /login [PASSWORD]");
		return true;
	}
Screenshot:


Includes in my gamemodes:

#include <a_samp>
#include <sscanf2>
#include <streamer>
#include <regex>
#include <dudb>
#include <CPLoader>
#include <ladmin>
#include <zcmd>

Can someone help me with this?

EDIT: No one is able to fix this problem
Reply


Messages In This Thread
Gamemode compile error (CMD) - by Uberanwar - 18.07.2012, 12:15
Re: [REP+] Gamemode compile error - by Uberanwar - 18.07.2012, 12:48
Re: [REP+] Gamemode compile error - by clarencecuzz - 18.07.2012, 12:50
Re: [REP+] Gamemode compile error - by Skaizo - 18.07.2012, 12:54
Re: [REP+] Gamemode compile error - by Uberanwar - 18.07.2012, 12:54
Re: [REP+] Gamemode compile error - by clarencecuzz - 18.07.2012, 12:58
Re: [REP+] Gamemode compile error - by Rudy_ - 18.07.2012, 13:00
Re: [REP+] Gamemode compile error - by tiernantheman - 18.07.2012, 13:00
Re: [REP+] Gamemode compile error - by Skaizo - 18.07.2012, 13:20
Re: [REP+] Gamemode compile error - by clarencecuzz - 18.07.2012, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)