30.07.2012, 15:26
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.
The thing which makes problem;
Код:
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.
Код:
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; }