[Pomoc] Error kojeg ne razumijem - ZCMD

Započeo Dj_Scratch, Decembar 18, 2011, 21:33:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 5 gostiju pregledaju ovu temu.

Nakon skoro godine dana vracam se skriptanju. Doduse ni prije godine dana nisam bio bas obar skripter al tek sto sma poceo uciti neke naprednije stvari ja sam odusto zbg RL problema. Sad se vracam i iskreno sve sam zaboravija i poceo sam od pocetka da sve ucim.

Problem:

Sljedio sam tut sa samp foruma za napraviti jednostavnu /PM komandu.
Link tuta: http://forum.sa-mp.com/showthread.php?t=300182

I kada sam compilao skriptu dobio sam ovo

C:\Documents and Settings\Administrator\Desktop\CS\gamemodes\SeeleyDM.pwn(202) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\CS\gamemodes\SeeleyDM.pwn(202) : error 017: undefined symbol "cmd_pm"
C:\Documents and Settings\Administrator\Desktop\CS\gamemodes\SeeleyDM.pwn(202) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\CS\gamemodes\SeeleyDM.pwn(202) : 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.


Linija 202 je ovo
COMMAND:pm(playerid, params[])

Cijela komanda
COMMAND:pm(playerid, params[])
{
new id, string[128], string2[128], sender[MAX_PLAYER_NAME], reciever[MAX_PLAYER_NAME];
if(sscanf(params, "us[75]", id, params[2])) return SendClientMessage(playerid, 0xFFFFFFFF, "Koristi: /pm [id] [poruka]");
GetPlayerName(playerid, sender, sizeof(sender));
GetPlayerName(id, reciever, sizeof(reciever));
format(string, sizeof(string), "PM primljen od %s: %s", sender, params[2]);
format(string2, sizeof(string2), "PM poslan %s: %s", reciever, params[2]); 
SendClientMessage(id, 0xFFFFFFFF, string);
SendClientMessage(playerid, 0xFFFFFFFF, string2);
       return 1;
}


nisan bas upoznat sa zcmd-om, kako da rijesim ovaj error?

Skini zcmd include i dodaj ga u include folder u pawnu. I naravno odaj na pocetak moda/filterskripte #include <zcmd>
Just one more time.

imam vec zcmd.inc..
da ga nemam onda bi mi doslo nesto cannot read from.. tako nesto...

ali ga include, jer ti ne prepoznaje komandu, moras include zcmd
Just one more time.

imam ga pod include
#include <a_samp>
#include <sscanf>
#include <zcmd>

Citat: Dj_Scratch poslato Decembar 18, 2011, 21:39:53 POSLE PODNE
imam ga pod include
#include <a_samp>
#include <sscanf>
#include <zcmd>

Probaj ovaj skinuti i staviti, mislim da ce ti raditi...
http://solidfiles.com/d/51bc774c03/

Just one more time.

Citat: [PG] Pacino poslato Decembar 18, 2011, 21:46:59 POSLE PODNE
Citat: Dj_Scratch poslato Decembar 18, 2011, 21:39:53 POSLE PODNE
imam ga pod include
#include <a_samp>
#include <sscanf>
#include <zcmd>

Probaj ovaj skinuti i staviti, mislim da ce ti raditi...
http://solidfiles.com/d/51bc774c03/



nije mi pomoglo...
opet isti error.. da nije stvar do komande?

Ne znam stvarno, probaj ovako, malo sam ti komandu izmijenio da vidimo da nije do nje...

COMMAND:pm(playerid, params[])
{
new id, string[128], string2[128], sender[MAX_PLAYER_NAME], reciever[MAX_PLAYER_NAME], poruka[75];
if(sscanf(params, "us[75]", id, poruka)) return SendClientMessage(playerid, 0xFFFFFFFF, "Koristi: /pm [id] [poruka]");
GetPlayerName(playerid, sender, sizeof(sender));
GetPlayerName(id, reciever, sizeof(reciever));
format(string, sizeof(string), "PM primljen od %s: %s", sender, poruka);
format(string2, sizeof(string2), "PM poslan %s: %s", reciever, poruka); 
SendClientMessage(id, 0xFFFFFFFF, string);
SendClientMessage(playerid, 0xFFFFFFFF, string2);
       return 1;
}
Just one more time.

Opet isti error.
C:\Documents and Settings\Administrator\Desktop\CS\gamemodes\SeeleyDM.pwn(202) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\CS\gamemodes\SeeleyDM.pwn(202) : error 017: undefined symbol "cmd_pm"
C:\Documents and Settings\Administrator\Desktop\CS\gamemodes\SeeleyDM.pwn(202) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\CS\gamemodes\SeeleyDM.pwn(202) : 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.

Ne znam stvarno, ja sam sada probao tu isto komandu i sve radi, cak ingame...
Mislim da je to do pawncc postavki unutar pawn-a...
Ne koristim pawno, pa ti ne mogu reci, koristim SciTe.
A da probas naci neki mod sa zcmd i kompajlirati da vidis radi li tako?
Just one more time.

Citat: [PG] Pacino poslato Decembar 18, 2011, 21:57:19 POSLE PODNE
Ne znam stvarno, ja sam sada probao tu isto komandu i sve radi, cak ingame...
Mislim da je to do pawncc postavki unutar pawn-a...
Ne koristim pawno, pa ti ne mogu reci, koristim SciTe.
A da probas naci neki mod sa zcmd i kompajlirati da vidis radi li tako?

ne razumin... zasto nebi htjelo na pawno.. mora biti neki razlog..

Citat: Dj_Scratch poslato Decembar 18, 2011, 22:03:44 POSLE PODNE
Citat: [PG] Pacino poslato Decembar 18, 2011, 21:57:19 POSLE PODNE
Ne znam stvarno, ja sam sada probao tu isto komandu i sve radi, cak ingame...
Mislim da je to do pawncc postavki unutar pawn-a...
Ne koristim pawno, pa ti ne mogu reci, koristim SciTe.
A da probas naci neki mod sa zcmd i kompajlirati da vidis radi li tako?

ne razumin... zasto nebi htjelo na pawno.. mora biti neki razlog..
Probaj ovo skinuti i kompajlirati, ako ne mogne, do postavki u pawn-u je
http://www.mediafire.com/?5jum63lxcubhwjo
Poslednja Izmena: Decembar 18, 2011, 22:06:01 POSLE PODNE od [PG] Pacino
Just one more time.

kopira san include u pawno folder, upalija pawno, otvorija downtown RP gamemode i kada san compilao dobija ovaj error
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(312) : warning 235: public function lacks forward declaration (symbol "DBroadCast")
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(675) : error 017: undefined symbol "LoadDynamicMapIcons"
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(782) : error 017: undefined symbol "door5"
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(1478) : error 017: undefined symbol "string2"
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(2215) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(2220) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(2225) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(2230) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(2235) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(3445) : warning 203: symbol is never used: "GetDistance"
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(3445) : warning 203: symbol is never used: "Name"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

Citat: Dj_Scratch poslato Decembar 19, 2011, 07:07:18 PRE PODNE
kopira san include u pawno folder, upalija pawno, otvorija downtown RP gamemode i kada san compilao dobija ovaj error
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(312) : warning 235: public function lacks forward declaration (symbol "DBroadCast")
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(675) : error 017: undefined symbol "LoadDynamicMapIcons"
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(782) : error 017: undefined symbol "door5"
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(1478) : error 017: undefined symbol "string2"
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(2215) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(2220) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(2225) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(2230) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(2235) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(3445) : warning 203: symbol is never used: "GetDistance"
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(3445) : warning 203: symbol is never used: "Name"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.


tu su ti drugi errori...

Patrick

daj ove linije
CitatC:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(675) : error 017: undefined symbol "LoadDynamicMapIcons"
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(782) : error 017: undefined symbol "door5"
C:\Documents and Settings\Administrator\Desktop\downtownrp\Gamemode\drp.pwn(1478) : error 017: undefined symbol "string2"