Hallo Breadfish ich habe ein Problem mit meinem /givelicense Befehl an was liegt es ?
C:\Users\Florian\Desktop\SA-MP Server\gamemodes\Evolution.pwn(2513) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SA-MP Server\gamemodes\Evolution.pwn(2533) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SA-MP Server\gamemodes\Evolution.pwn(2553) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SA-MP Server\gamemodes\Evolution.pwn(2573) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SA-MP Server\gamemodes\Evolution.pwn(2593) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SA-MP Server\gamemodes\Evolution.pwn(2613) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SA-MP Server\gamemodes\Evolution.pwn(2633) : error 035: argument type mismatch (argument 1)
C:\Users\Florian\Desktop\SA-MP Server\gamemodes\Evolution.pwn(2653) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.
[pwn='2501']
ocmd:givelicense(playerid,params[])
{
if(PlayerInfo[playerid][pEingeloggt] < 1 ) return SendClientMessage(playerid,Rot,"Du kannst diesen Befehl nicht nutzen, weil du nicht eingeloggt bist.");
if(PlayerInfo[playerid][pFraktion] != 12 PlayerInfo[playerid][pLeader] != 12) return SendClientMessage(playerid,Grau,"Du bist kein Fahrlehrer!");
new pID,license;
if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,Grau,"Der angegebene Spieler ist nicht Online!");
if(sscanf(params,"us",pID,license))
{
SendClientMessage(playerid,Grau,"Benutze: /givelicense [playerid/PartOfName] [License]");
SendClientMessage(playerid,Grau,"Licenses: Auto, Bike, Boot, Flug, Angel, Lkw, K1, K2");
return 1;
}
if(strcmp(license,"Auto",true)==0)
{
if(PlayerInfo[playerid][pRank] >= 1)
{
PlayerInfo[pID][pAutoschein] = 1;
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s hat dir eine Fahrerlaubnis gegeben.",name);
SendClientMessage(pID,Blau,string);
GetPlayerName(pID,name,sizeof(name));
format(string,sizeof(string),"Du hast %s eine Fahrerlaubnis gegeben.",name);
SendClientMessage(playerid,Blau,string);
return 1;
}
else
{
SendClientMessage(playerid,Grau,"Du benötigst Rank 1.");
return 1;
}
}
if(strcmp(license,"Bike",true)==0)
{
if(PlayerInfo[playerid][pRank] >= 2)
{
PlayerInfo[pID][pBikeschein] = 1;
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s hat dir eine Fahrerlaubnis gegeben.",name);
SendClientMessage(pID,Blau,string);
GetPlayerName(pID,name,sizeof(name));
format(string,sizeof(string),"Du hast %s eine Fahrerlaubnis gegeben.",name);
SendClientMessage(playerid,Blau,string);
return 1;
}
else
{
SendClientMessage(playerid,Grau,"Du benötigst Rank 2.");
return 1;
}
}
if(strcmp(license,"Boot",true)==0)
{
if(PlayerInfo[playerid][pRank] >= 3)
{
PlayerInfo[pID][pBootschein] = 1;
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s hat dir eine Fahrerlaubnis gegeben.",name);
SendClientMessage(pID,Blau,string);
GetPlayerName(pID,name,sizeof(name));
format(string,sizeof(string),"Du hast %s eine Fahrerlaubnis gegeben.",name);
SendClientMessage(playerid,Blau,string);
return 1;
}
else
{
SendClientMessage(playerid,Grau,"Du benötigst Rank 3.");
return 1;
}
}
if(strcmp(license,"Flug",true)==0)
{
if(PlayerInfo[playerid][pRank] >= 4)
{
PlayerInfo[pID][pFlugschein] = 1;
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s hat dir eine Flugerlaubnis gegeben.",name);
SendClientMessage(pID,Blau,string);
GetPlayerName(pID,name,sizeof(name));
format(string,sizeof(string),"Du hast %s eine Flugerlaubnis gegeben.",name);
SendClientMessage(playerid,Blau,string);
return 1;
}
else
{
SendClientMessage(playerid,Grau,"Du benötigst Rank 4.");
return 1;
}
}
if(strcmp(license,"Angel",true)==0)
{
if(PlayerInfo[playerid][pRank] >= 5)
{
PlayerInfo[pID][pAngelschein] = 1;
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s hat dir eine Angelerlaubnis gegeben.",name);
SendClientMessage(pID,Blau,string);
GetPlayerName(pID,name,sizeof(name));
format(string,sizeof(string),"Du hast %s eine Angelerlaubnis gegeben.",name);
SendClientMessage(playerid,Blau,string);
return 1;
}
else
{
SendClientMessage(playerid,Grau,"Du benötigst Rank 5.");
return 1;
}
}
if(strcmp(license,"Lkw",true)==0)
{
if(PlayerInfo[playerid][pRank] >= 6)
{
PlayerInfo[pID][pLkwschein] = 1;
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s hat dir eine Fahrerlaubnis gegeben.",name);
SendClientMessage(pID,Blau,string);
GetPlayerName(pID,name,sizeof(name));
format(string,sizeof(string),"Du hast %s eine Fahrerlaubnis gegeben.",name);
SendClientMessage(playerid,Blau,string);
return 1;
}
else
{
SendClientMessage(playerid,Grau,"Du benötigst Rank 6.");
return 1;
}
}
if(strcmp(license,"K1",true)==0)
{
if(PlayerInfo[playerid][pRank] >= 7)
{
PlayerInfo[pID][pK1schein] = 1;
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s hat dir den K1 Schein gegeben.",name);
SendClientMessage(pID,Blau,string);
GetPlayerName(pID,name,sizeof(name));
format(string,sizeof(string),"Du hast %s den K1 Schein gegeben.",name);
SendClientMessage(playerid,Blau,string);
return 1;
}
else
{
SendClientMessage(playerid,Grau,"Du benötigst Rank 7.");
return 1;
}
}
if(strcmp(license,"K2",true)==0)
{
if(PlayerInfo[playerid][pRank] >= 7)
{
PlayerInfo[pID][pK2schein] = 1;
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s hat dir den K2 Schein gegeben.",name);
SendClientMessage(pID,Blau,string);
GetPlayerName(pID,name,sizeof(name));
format(string,sizeof(string),"Du hast %s den K2 Schein gegeben.",name);
SendClientMessage(playerid,Blau,string);
return 1;
}
else
{
SendClientMessage(playerid,Grau,"Du benötigst Rank 7.");
return 1;
}
}
return 1;
}
[/pwn]