SA-MP Forums Archive
Help | undefined symbol "params" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help | undefined symbol "params" (/showthread.php?tid=275061)



Help | undefined symbol "params" - TeRmi[N]aTor - 08.08.2011

hello ,
i have errors in my GM :

PHP код:
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11788) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11790) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11791) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11792) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11793) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11795) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11796) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11797) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11798) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11799) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11800) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11801) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11802) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11803) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11804) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11805) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11806) : error 017undefined symbol "params"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(11807) : error 017undefined symbol "params"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
18 Errors

Lines 11788 -11807 :
PHP код:
                    if(listitem == 0) return dcmd_ap(playerid,params);
//                    if(listitem == 1) return dcmd_dm(playerid,params);
                    
if(listitem == 2) return dcmd_ls(playerid,params);
                    if(
listitem == 3) return dcmd_lv(playerid,params);
                    if(
listitem == 4) return dcmd_sf(playerid,params);
                    if(
listitem == 5) return dcmd_fly(playerid,params);
//                    if(listitem == 6) return dcmd_sawn(playerid,params);
                    
if(listitem == 7) return dcmd_race(playerid,params);
                    if(
listitem == 8) return dcmd_drift(playerid,params);
                    if(
listitem == 9) return dcmd_jump(playerid,params);
                    if(
listitem == 10) return dcmd_jeeps(playerid,params);
                    if(
listitem == 11) return dcmd_ramp(playerid,params);
                    if(
listitem == 12) return dcmd_bustrip(playerid,params);
                    if(
listitem == 13) return dcmd_bank(playerid,params);
                    if(
listitem == 14) return dcmd_swamp(playerid,params);
                    if(
listitem == 15) return dcmd_fight(playerid,params);
                    if(
listitem == 16) return dcmd_tower(playerid,params);
                    if(
listitem == 17) return dcmd_shiptrip(playerid,params);
                    if(
listitem == 18) return dcmd_chiliad(playerid,params);
                    if(
listitem == 19) return dcmd_farm(playerid,params); 
what the problem?... help plz


Re: Help | undefined symbol "params" - Kush - 08.08.2011

Lol have never used dcmd, but try:

PHP код:
#pragma unused params 



Re: Help | undefined symbol "params" - Godhimself - 08.08.2011

EDIT

lol yeh put

#pragma unused params

under the callback/command and it will compile.


Re: Help | undefined symbol "params" - TeRmi[N]aTor - 08.08.2011

Quote:
Originally Posted by Godhimself
Посмотреть сообщение
EDIT

lol yeh put

#pragma unused params

under the callback/command and it will compile.
its works only if i have the error : "params" is never used ... somthing like that ..
its not working now ..
still the same errors ..


Re: Help | undefined symbol "params" - Kush - 08.08.2011

Quote:
Originally Posted by TeRmi[N]aTor
Посмотреть сообщение
its works only if i have the error : "params" is never used ... somthing like that ..
its not working now ..
still the same errors ..
Yea, haven't even looked at the error. It's most likely your set parameter 'params'. The callback in which you've placed that code under isn't supporting that parameter.

Example:

OnPlayerUpdate(playerid) would only call the player in definition of how this function is used. Native functions can be called within the callback regardless of it's set parameters. Calling your own function (dcmd) in this case would need to be defined or declared (how ever dcmd works) which can then be called.


Re: Help | undefined symbol "params" - Babul - 08.08.2011

did you try that? just dont use the params, i guess its redundant...
Код:
if(listitem == 0) return dcmd_ap(playerid);
it should, coz if you use /fly as command, then you wont type anything behind it. so why not let the dialogresponse call the command the same way, without any params? hope it works. it does for me with ZCMD


Re: Help | undefined symbol "params" - FireCat - 08.08.2011

uggh it wont work.
In this case this is dialog so it should be inputtext
pawn Код:
if(listitem == 0) return dcmd_ap(playerid,inputtext);
//                    if(listitem == 1) return dcmd_dm(playerid,inputtext);
                    if(listitem == 2) return dcmd_ls(playerid,inputtext);
                    if(listitem == 3) return dcmd_lv(playerid,inputtext);
                    if(listitem == 4) return dcmd_sf(playerid,inputtext);
                    if(listitem == 5) return dcmd_fly(playerid,inputtext);
//                    if(listitem == 6) return dcmd_sawn(playerid,inputtext);
                    if(listitem == 7) return dcmd_race(playerid,inputtext);
                    if(listitem == 8) return dcmd_drift(playerid,inputtext);
                    if(listitem == 9) return dcmd_jump(playerid,inputtext);
                    if(listitem == 10) return dcmd_jeeps(playerid,inputtext);
                    if(listitem == 11) return dcmd_ramp(playerid,inputtext);
                    if(listitem == 12) return dcmd_bustrip(playerid,inputtext);
                    if(listitem == 13) return dcmd_bank(playerid,inputtext);
                    if(listitem == 14) return dcmd_swamp(playerid,inputtext);
                    if(listitem == 15) return dcmd_fight(playerid,inputtext);
                    if(listitem == 16) return dcmd_tower(playerid,inputtext);
                    if(listitem == 17) return dcmd_shiptrip(playerid,inputtext);
                    if(listitem == 18) return dcmd_chiliad(playerid,inputtext);
                    if(listitem == 19) return dcmd_farm(playerid,inputtext);
Or if you want to put it in pickups or other type just try
ex:
dcmd_parachute(playerid,"params");
noticed i placed the " "?