Hallo Community,
irgendwie will sich mein String von meinem Handynamen nicht verändern, von meinem Vertrag auch nicht...
public Handyaktu(playerid)
{
new handynummer[16], smsfrei[16], minfrei[16], guthaben[16];
if(SInfo[playerid][pHandyart] == 8){TextDrawSetString(HName[playerid],"iPhone 4s");}
else if(SInfo[playerid][pHandyart] == 7){TextDrawSetString(HName[playerid],"iPhone 5s");}
else if(SInfo[playerid][pHandyart] == 6){TextDrawSetString(HName[playerid],"S3");}
else if(SInfo[playerid][pHandyart] == 5){TextDrawSetString(HName[playerid],"S4");}
else if(SInfo[playerid][pHandyart] == 4){TextDrawSetString(HName[playerid],"Note 3");}
else if(SInfo[playerid][pHandyart] == 3){TextDrawSetString(HName[playerid],"HTC One");}
else if(SInfo[playerid][pHandyart] == 2){TextDrawSetString(HName[playerid],"HTC XL");}
else if(SInfo[playerid][pHandyart] == 1){TextDrawSetString(HName[playerid],"HTC S");}
else{TextDrawSetString(HName[playerid],"-");}
if(SInfo[playerid][pHandyVer] == 1){TextDrawSetString(Handyvertrag[playerid],"Vertrag: blau.de");}
else if(SInfo[playerid][pHandyVer] == 2){TextDrawSetString(Handyvertrag[playerid],"Vertrag: Vodafone");}
else if(SInfo[playerid][pHandyVer] == 3){TextDrawSetString(Handyvertrag[playerid],"Vertrag: O2");}
else{TextDrawSetString(Handyvertrag[playerid],"Vertrag: -");}
format(handynummer,sizeof(handynummer),"Nr.: %d",SInfo[playerid][pNummer]);
TextDrawSetString(Handynummer[playerid],handynummer);
format(smsfrei,sizeof(smsfrei),"Frei SMS.: %d",SInfo[playerid][pSMSFrei]);
TextDrawSetString(Handysms[playerid],smsfrei);
format(minfrei,sizeof(minfrei),"Frei Min.: %d",SInfo[playerid][pFreiMin]);
TextDrawSetString(Handymin[playerid],minfrei);
format(guthaben,sizeof(guthaben),"Guthaben: %.2fSA$",SInfo[playerid][pGuthaben]);
TextDrawSetString(Handyguthaben[playerid],guthaben);
return 1;
}
//e sind die abfragen vielleicht falsch abgefragtß
LG