Hallo,
Ich habe ein /showperso und /showlicense Befehl gemacht jedoch kommen Fehler
Hier der Code und die meldungen.
Bread.pwn(3502) : warning 202: number of arguments does not match definition
Bread.pwn(3503) : warning 202: number of arguments does not match definition
Bread.pwn(3504) : error 001: expected token: ";", but found "-identifier-"
Bread.pwn(4945) : warning 219: local variable "FrakName" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
dcmd_showlicense(playerid,params[])
{
new pID, name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
GetPlayerName(pID,name2,sizeof(name2));
if(sscanf(params,"u",pID))return SendClientMessage(playerid,Gelb,"/showlicenses[id]");
SendClientMessage(playerid,Grün, "Du zeigst %s deine Lizenzen",name2);//3052
SendClientMessage(pID,Grün,"%s zeigt dir seine Lizenzen",name)//3503
ShowLicense(playerid,pID);//3504
return 1;
}
ShowPerso(playerid,pID)
{
new string[128],string2[128],string3[128],FrakName[64], Spielername[MAX_PLAYER_NAME];//4945
GetPlayerName(playerid,Spielername,sizeof(Spielername));
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0: format(FrakName,sizeof(FrakName),"Zivilist");
case 1: format(FrakName,sizeof(FrakName),"LSPD");
case 2: format(FrakName,sizeof(FrakName),"FBI");
case 3: format(FrakName,sizeof(FrakName),"Army");
case 4: format(FrakName,sizeof(FrakName),"Medic");
case 5: format(FrakName,sizeof(FrakName),"Fahrschule");
case 6: format(FrakName,sizeof(FrakName),"Taxi");
case 7: format(FrakName,sizeof(FrakName),"Präsident");
case 8: format(FrakName,sizeof(FrakName),"SA-News");
case 9: format(FrakName,sizeof(FrakName),"Ordnungsamt");
case 10: format(FrakName,sizeof(FrakName),"Groove St.");
case 11: format(FrakName,sizeof(FrakName),"LCN");
case 12: format(FrakName,sizeof(FrakName),"Ballas");
case 13: format(FrakName,sizeof(FrakName),"LS Biker");
case 14: format(FrakName,sizeof(FrakName),"Los Vagos");
case 15: format(FrakName,sizeof(FrakName),"Yakuzza");
case 16: format(FrakName,sizeof(FrakName),"Rifa");
case 17: format(FrakName,sizeof(FrakName),"Terrorist");
}
SendClientMessage(pID,Grün,"|____________Personalien____________|");
format(string,sizeof(string),"Name:%s",Spielername);
format(string2,sizeof(string2),"Level:%i",GetPlayerScore(playerid));
format(string3,sizeof(string3),"Beruf: %s",FrakName);
SendClientMessage(pID,Weiß,string);
SendClientMessage(pID,Weiß,string2);
SendClientMessage(pID,Weiß,string3);
SendClientMessage(pID,Grün,"|___________________________________|");
return 1;
}
MfG Florian