02.08.2014, 20:58
I use this script under OnPlayerCommandText but it doesn't report an error
gamemodes\ArizonaCityRoleplay.pwn(5841) : error 075: input line too long (after substitutions)
gamemodes\ArizonaCityRoleplay.pwn(5841) : error 075: input line too long (after substitutions)
Код:
if(strcmp(cmd, "/stats", true) ==0 ) { new text[256]; new Float: armour; new Float: health; format(text,sizeof(text), "Nome: %s | Soldi: %d | Livello: %d | Materiali %d | Droga: %d | Chiave Casa: %d | Chiave Business: %d | Banca: %d | Warn: %d | Anni: %d |Ore di gioco: %d | Recapito Telefonico: %d | Lavoro: %s| Numero Arresti: %d | Armatura: %d | Vita: %d | Skin: %d | Fazione: %d | Rank: %d | CLAN: %d |", PlayerInfo[playerid][pCash], PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pMateriali], PlayerInfo[playerid][pDroga], PlayerInfo[playerid][pHouseKey], PlayerInfo[playerid][pBizKey], PlayerInfo[playerid][pBank], PlayerInfo[playerid][pWarnings], PlayerInfo[playerid][pAge], PlayerInfo[playerid][pPlayingHours], PlayerInfo[playerid][pPhoneNumber], PlayerInfo[playerid][pJob], PlayerInfo[playerid][pArresti], GetPlayerArmour(playerid, armour), GetPlayerHealth(playerid, health), PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pFaction], PlayerInfo[playerid][pRank], PlayerInfo[playerid][pClan]); SendClientMessage(playerid,0xFFFFFFAA,text); }