Hey Leute,
beim Compilen von dem hier, bekomme ich immer 1 Error:
// Medic Heal
ocmd:heal(playerid,params[])
{
if(IsPlayerInVehicle(playerid,medicauto))//Zeile 435
{
new pID, string[128], money, namepID[MAX_PLAYER_NAME], nameplayerid[MAX_PLAYER_NAME];
if(!isPlayerInFrakt(playerid,2))return 0;
if(sscanf(params,"ui", pID, money))return SendClientMessage(playerid, HellBlau, "Benutze: /heal [Spieler-ID] [Preis]");
if(GetPlayerMoney(pID) < money)return SendClientMessage(playerid, Grün, "Der Spieler hat nicht genügend Geld");
SetPlayerHealth(pID, 100);
GivePlayerMoney(playerid, money);
GivePlayerMoney(pID, -money);
GetPlayerName(pID, namepID, MAX_PLAYER_NAME);
GetPlayerName(playerid, nameplayerid, MAX_PLAYER_NAME);
format(string, sizeof(string), "Du hast %s für $%d geheilt.", namepID, money);
SendClientMessage(playerid, Orange, string);
format(string, sizeof(string), "Du wurdest von Medic %s für %d$ geheilt.", nameplayerid, money);
SendClientMessage(pID, Orange, string);
return 1;
}
return 1;
}
Der Error:
C:\Users\Joshua.haus-pc\Desktop\SAMP Server\gamemodes\LV-RP.pwn(435) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Was ist Falsch ?