18.07.2012, 12:15
(
Последний раз редактировалось Uberanwar; 14.11.2012 в 06:03.
Причина: Typo
)
I have problems with my gamemode. I convert my commands to zcmd, but when I try to compile I get errors.
Line 3356 - 3385
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
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. |
Код:
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; }

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