Hallo leute,
ich habe ein Problem...
Ich habe schon viele um Rat gefragt..auch erfahrene doch auch sie kommen hier nicht weiter...
Ich zeige euch hier jetzt ein Register Script..zmd. ein Teil davon was hooK und ich geschrieben haben:
if (strcmp(cmd, "/login", true) ==0 )
{
if(IsPlayerConnected(playerid))
{
new tmp[256];
tmp = strtok(cmdtext, idx);
new tmppass[64],UserFile[128];
if(LoggedIn[playerid] == 1) return SendClientMessage(playerid, c_Weiss, "SERVER: Du bist bereits eingeloggt.");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, c_Rot, "Verwendung: /login [passwort]");
new iPasswort[32];
iPasswort = dini_Get(UserFile,"Passwort");
if(tmp,iPasswort,false) == 0) {
SetPlayerScore(playerid, dini_Get(UserFile,"Score");
SetPlayerMoney(playerid, dini_Get(UserFile,"Money");
SetPlayerTeam(playerid, dini_Get(UserFile,"Team");
PlayerInfo[playerid][AdminLevel] = dini_Get(UserFile,"AdminLevel");
LoggedIn[playerid] = 1;
}
u
}
return 0;
}
Und hier sind die Error's :
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(95) : error 017: undefined symbol "strtok"
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(95) : error 033: array must be indexed (variable "cmd")
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(99) : error 017: undefined symbol "strtok"
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(99) : error 033: array must be indexed (variable "tmp")
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(100) : error 079: inconsistent return types (array & non-array)
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(116) : error 079: inconsistent return types (array & non-array)
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(125) : error 017: undefined symbol "strtok"
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(125) : error 033: array must be indexed (variable "tmp")
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(127) : error 079: inconsistent return types (array & non-array)
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(128) : error 017: undefined symbol "strtok"
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(128) : error 033: array must be indexed (variable "tmp")
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(129) : error 079: inconsistent return types (array & non-array)
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(131) : error 047: array sizes do not match, or destination array is too small
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(132) : warning 205: redundant code: constant expression is zero
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(132) : error 029: invalid expression, assumed zero
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(132) : warning 215: expression has no effect
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(132) : error 001: expected token: ";", but found ")"
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(132) : error 029: invalid expression, assumed zero
C:\DOKUME~1\HP_BES~1\Desktop\GTASAN~1\Server\SCRIPT~2\NEU_RE~1.PWN(132) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
17 Errors.
Wir bitten um Hilfe <.<....
mfg
ich