[HELP] Undefined symbol "params"
#1

Код:
C:\Users\KONTROWKEN\Desktop\TEMİZ SW\gamemodes\KONT-2016.pwn(5340) : error 017: undefined symbol "params"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
1 Error.


Код:
	PlayerCommandAnim("/etkbaslat",k_etkbaslat){
	new etkName[200],katilimsurebelirle, string[500];
	if(sscanf(params, "sd",etkName, katilimsurebelirle)) SendClientMessage(playerid,-1,""hw"~ Etkinlik ~ "wh"/etkbaslat <etk ismi> <katilim bitme suresi>");
	else if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid,-1,""hw"~ Etkinlik ~ "wh"Bu komutu yцneticiler kullanabilir!");
	else if(katilimsurebelirle > MAX_KATILIMSURE) SendClientMessage(playerid,-1,""hw"~ Etkinlik ~ "wh"Katilim bitme suresini asmayiniz!");
	else if(katilimsurebelirle < MIN_KATILIMSURE) SendClientMessage(playerid,-1,""hw"~ Etkinlik ~ "wh"Katilim bitme suresini 30-60 arasinda giriniz!");
	else if(e_Basladi == 1) SendClientMessage(playerid,-1,""hw"~ Etkinlik ~ "wh"Zaten bir etkinlik duzenleniyor!");
	else {
    GetPlayerPos (playerid, e_Pos[0], e_Pos[1], e_Pos[2]) ;
    GetPlayerFacingAngle(playerid, e_Pos[3]);
    e_INT = GetPlayerInterior(playerid);
    e_World = GetPlayerVirtualWorld(playerid);
	format(string, sizeof string, ""hw"~ Etkinlik  ~ "wh"%s etkinligi basladi, katilmak icin /etkgit, %d saniye sonra katilim bitecek!",etkName[0],katilimsurebelirle);
	SendClientMessageToAll(-1, string);
	SetTimer("katilimBitir", katilimsurebelirle * 1000, false);
	e_Basladi = 1;
	}
	    EndCommand;
	}
Reply
#2

Код:
if(sscanf(params, "u",etkName, katilimsurebelirle)) SendClientMessage(playerid,-1,""hw"~ Etkinlik ~ "wh"/etkbaslat <etk ismi> <katilim bitme suresi>");
If you get error again advice me.
Reply
#3

Quote:
Originally Posted by xEF
Посмотреть сообщение
Код:
if(sscanf(params, "u",etkName, katilimsurebelirle)) SendClientMessage(playerid,-1,""hw"~ Etkinlik ~ "wh"/etkbaslat <etk ismi> <katilim bitme suresi>");
If you get error again advice me.
I Tried But It Gave Error

Код:
C:\Users\KONTROWKEN\Desktop\TEMİZ SW\gamemodes\KONT-2016.pwn(5340) : error 017: undefined symbol "params"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
1 Error.
Reply
#4

The error means you haven't got params defined anywhere. Do you use DCMD, ZCMD or YCMD or is that your own command system?

And if it is getting the player's name the variable etkName only needs to be 24 bits in size not 200!

Quote:
Originally Posted by xEF
Посмотреть сообщение
Код:
if(sscanf(params, "u",etkName, katilimsurebelirle)) SendClientMessage(playerid,-1,""hw"~ Etkinlik ~ "wh"/etkbaslat <etk ismi> <katilim bitme suresi>");
Why did you change the sscanf parameters from "sd" to just "u"? There's still two parameters in that command and this would therefore break the command. Assuming that etkName is getting the player's name then the correct parameters would be "ud". Although I could be wrong as to what the variables are as I don't fully understand due to language barriers, but I do know for a fact that there are two parameters there and your "fix" would simply break it further.
Reply
#5

I'm sure it's ZCMD Processor.

Replace
Код:
CMD:commandname(playerid)
With
Код:
CMD:commandname(playerid, params[])
If DCMD remove this

Код:
#pragma unused params
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)