Type Mismatch (argument 2) - Help
#2

Quote:
Originally Posted by Dobroski
Посмотреть сообщение
Hi all. I tried to convert a strcmp thing to ZCMD. But I think; I failed. I am getting those errors; I can fix the'' Undefined Symbol '' errors but; Those type mismatch errors, I don't know what to do.

Код:
C:\Documents and Settings\.pwn(8846) : error 035: argument type mismatch (argument 2)
C:\Documents and Settinn(8856) : error 017: undefined symbol "cmdtext"
C:\Documents an : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\A : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administ.pwn(8870) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrator\.pwn(8874) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrator\.pwn(8880) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\\i.pwn(25938) : warning 203: symbol is never used: "TaxiCall"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.
The thing which makes problem;

Код:
CMD:ucret(playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Komutları kullanmak iзin цnce giriş yapmanız gerekmektedir.");
	if(TransportDuty[playerid] > 0)
	{
 		if(TransportDuty[playerid] == 1)
   		{
     		TaxiDrivers -= 1;
	    }
		new string[128];
		TransportDuty[playerid] = 0;
		TransportValue[playerid] = 0;
		TransportMoney[playerid] = 0;
		format(string, sizeof(string), "Paydos ettiniz. Kazanз: $%d.", TransportMoney[playerid]);
		SendClientMessage(playerid, string);
		GiveZaiatMoney(playerid, TransportMoney[playerid]);
		return 1;
	}
	new playervehicleid = GetPlayerVehicleID(playerid);
	if(IsTaksiciVehicle(playervehicleid))
	{
 		if(GetPlayerState(playerid) == 2)
		{
                        new tmp[256];
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, "/ucret [Ьcret]");
				return 1;
			}
			new moneys;
			moneys = strval(tmp);
			if(moneys < 1 || moneys > 5)
			{
				SendClientMessage(playerid, "Ьcret $5'dan bьyьk, $1'dan kьзьk olamaz.");
				return 1;
			}
   			TaxiDrivers += 1; TransportDuty[playerid] = 1; TransportValue[playerid] = moneys;
		    SendClientMessage(playerid, "İşbaşı yaptınız.");
		}
		else
		{
  			SendClientMessage(playerid, "Sьrьcь koltuğunda değilsiniz.");
	    	return 1;
		}
	}
	else
	{
 		SendClientMessage(playerid, "Taksinin iзinde değilsiniz.");
	}
 	return 1;
}
numbers in brackets, like this one (8874) are the lines where's the error, what about to post exact line? nobody's gonna check whole code to find one wrong line
Reply


Messages In This Thread
Type Mismatch (argument 2) - Help - by Dobroski - 30.07.2012, 15:26
Re: Type Mismatch (argument 2) - Help - by SEnergy - 30.07.2012, 16:19
Re: Type Mismatch (argument 2) - Help - by Zarky - 31.07.2012, 00:13
Re: Type Mismatch (argument 2) - Help - by Dobroski - 31.07.2012, 11:24

Forum Jump:


Users browsing this thread: 2 Guest(s)