Hallo leute,
Ich habe ein problem. Ich mache gerade einen /stats befehl, bekomme jedoch immer einen Error beim Formatieren des 2. Strings?
Error:
C:\Users\Sandra\Desktop\GTA - San Andreas\SAMPSERVER\gamemodes\lightlifeplay.pwn(271) : warning 202: number of arguments does not match definition
C:\Users\Sandra\Desktop\GTA - San Andreas\SAMPSERVER\gamemodes\lightlifeplay.pwn(271) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
Befehl:
if(strcmp(cmdtext,"/stats", true)==0)
{
new string[128];
new string2[128];
new fraktname[64];
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{fraktname="Keine";}
case 1:{fraktname=frak1;}
case 2:{fraktname=frak2;}
case 3:{fraktname=frak3;}
}
SendClientMessage(playerid,GELB,"|____Deine Stats____|");
//1 Reihe
format(string,sizeof(string),"[Username: %s] [Level: %i] [Geld: %i] [Adminlevel: %i] [Fraktion: %s]",SpielerName(playerid),GetPlayerScore(playerid), GetPlayerMoney(playerid), GetPVarInt(playerid,"Adminlevel"),fraktname);
SendClientMessage(playerid,GELB,string);
//2 Reihe
format(string2,sizeof(string2),"[Wantedlevel: %i] [Health: %i] [Armour: %i] [Skin ID: %i]",GetPlayerWantedLevel(playerid),GetPlayerHealth(playerid),GetPlayerArmour(playerid), GetPlayerSkin(playerid));
SendClientMessage(playerid,GELB,string2);
return 1;
}
Bitte Um Hilfe