Započeo Misko
•23. Jun 2009.• ZaključanoDCMD Help!
1,737
pregleda
7
postova
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
49
Postovi:
9
Teme:
Pridružio se:Maj 2009
23. Jun 2009.
Komanda:
Errori
dcmd_stunt(playerid, params[])
{
new
igrac;
if (sscanf(params, "u", igrac)) SendClientMessage(playerid, 0xFF0000AA, "Koristi: /stunt [playerid/partname]");
else if (igrac == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Igrac nije pronadjen!");
else
{
EnableStuntBonusForPlayer(igrac,1);
SendClientMessage(igrac, 0x00FF00AA, "Mozete stuntati!");
}
return 1;
}Errori
D:\Dokumenti!\Owner\My Documents\sa-mp\gamemodes\gf.pwn(8135) : error 017: undefined symbol "dcmd_stunt"
D:\Dokumenti!\Owner\My Documents\sa-mp\gamemodes\gf.pwn(8140) : warning 225: unreachable code
D:\Dokumenti!\Owner\My Documents\sa-mp\gamemodes\gf.pwn(21600) : error 017: undefined symbol "dcmd_stunt"
D:\Dokumenti!\Owner\My Documents\sa-mp\gamemodes\gf.pwn(21604) : error 017: undefined symbol "params"
D:\Dokumenti!\Owner\My Documents\sa-mp\gamemodes\gf.pwn(21609) : warning 217: loose indentation
D:\Dokumenti!\Owner\My Documents\sa-mp\gamemodes\gf.pwn(21615) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.23. Jun 2009.
Izgleda da nemaš dcmd define u skripti. (http://forum.sa-mp.com/index.php?topic=70925.0)
#define dcmd(%1,%2,%3) if ((strcmp((%3), #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
24. Jun 2009.
A gdje si stavio #define dcmd(.. u svojoj skripti? MoraÅ¡ ga staviti iznad dcmd komandi, najbolje da na poÄetku skripte.
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
49
Postovi:
9
Teme:
Pridružio se:Maj 2009
24. Jun 2009.
#define dcmd(%1,%2,%3) if ((strcmp((%3), #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#define MAX_STRING 255
#define CHECKPOINT_NONE 0
#define CHECKPOINT_HOME 12
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
...itdMorate biti prijavljeni da biste odgovorili na ovu temu.
Prijava