[Pomoc] 4 Errora

Započeo | S-RP | K@lib@r .300, Januar 15, 2012, 16:50:48 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: CLRP
Detaljan opis problema: 4 Errora

Dio skripte:         tmpz = strtok(params,Index);
Neke slike/video za lakse dobivanje pomoci(neobavezno): C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26607) : error 012: invalid function call, not a valid address
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26607) : warning 215: expression has no effect
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26607) : warning 215: expression has no effect
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26607) : error 001: expected token: ";", but found ")"
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26607) : error 029: invalid expression, assumed zero
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26607) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Koja carina!
Citat: Fâ,¬nsQ poslato Jun 06, 2012, 15:27:14 POSLE PODNE
mozemi netko reci kada se sper.a dobiva imam 13 i pol godine, a nisam je dobio, moji drugari su to vec dobili, moze pomoc
nov sam pa neznam gdje trebam pitati

imaš li
new tmpz[64];//65 - primjer samo XD
new Index;

Nemam.
Koja carina!
Citat: Fâ,¬nsQ poslato Jun 06, 2012, 15:27:14 POSLE PODNE
mozemi netko reci kada se sper.a dobiva imam 13 i pol godine, a nisam je dobio, moji drugari su to vec dobili, moze pomoc
nov sam pa neznam gdje trebam pitati


Evo dodao sam. Jel vako treba biti, i ima neke Errora na redu.
//warn cmd
dcmd_warn(playerid,params[]) {
    if(PlayerInfo[playerid][pAdmin] >= 1) {
        tmpz = strtok(params,Index);
        tmpz2 = strtok(params,Index);
        new tmpz[64];//65 - primjer samo XD
        new Index;
    if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /warn [playerid] [reason]");
    new warned = strval(tmp), str[128];
    new sendername[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];
// if(PlayerInfo[warned][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
if(IsPlayerConnected(warned) && warned != INVALID_PLAYER_ID) {
    if(warned != playerid) {
    ABroadCast(warned,"WARN",1);
PlayerInfo[warned][pWarns]++;
if( PlayerInfo[warned][pWarns] == MAX_WARNINGS) {
GetPlayerName(warned, sendername, sizeof(sendername));
format(str, sizeof (str), "*** \"%s\" je banovan zbog opomena \"%s\".  (Razlog: %s) (Warn: %d/5)***",sendername, params[1+strlen(tmp)], PlayerInfo[warned][pWarns]);
SendClientMessageToAll(COLOR_RED, str);
BanLog(str);
Ban(warned);
return PlayerInfo[warned][pWarns] = 0;
} else {
GetPlayerName(warned, sendername, sizeof(sendername));
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(str, sizeof (str), "***Admin \"%s\" je dao \"%s\" a warn.  (Reason: %s) (Warning: %d/5)***",giveplayer,sendername, params[1+strlen(tmp)], PlayerInfo[warned][pWarns]);
return SendClientMessageToAll(COLOR_YELLOW, str);
}
} else return SendClientMessage(playerid, COLOR_RED, "Classic Life: Ne mozete dati sebi warn");
} else return SendClientMessage(playerid, COLOR_RED, "Classic Life: Igrac nije konektovan");
} else return SendClientMessage(playerid,COLOR_RED,"Classic Life: Niste dovoljan Admin level da koristite tu komandu");
}


C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26607) : error 012: invalid function call, not a valid address
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26607) : warning 215: expression has no effect
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26607) : warning 215: expression has no effect
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26607) : error 001: expected token: ";", but found ")"
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26607) : error 029: invalid expression, assumed zero
C:\Users\Silvio\Desktop\Security RolePlay\gamemodes\SRP.pwn(26607) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Koja carina!
Citat: Fâ,¬nsQ poslato Jun 06, 2012, 15:27:14 POSLE PODNE
mozemi netko reci kada se sper.a dobiva imam 13 i pol godine, a nisam je dobio, moji drugari su to vec dobili, moze pomoc
nov sam pa neznam gdje trebam pitati