Pomoc oko CMD:skilovi

Započeo ★★Corona★★, Mart 20, 2019, 18:49:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Imam problem sa cmd:skilovi (SLIKA ISPOD) nece da mi pokaze sve skilove samo od m4 i sniper-a.. pa ako neko zna gde je tu greska?
Dio skripte: //
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log)://
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/bXgN0yr

[pawn]CMD:skilovi(playerid, params[])
{
   if(IsPlayerConnected(playerid))
   {
      new showskillz[476];
      new pName[MAX_PLAYER_NAME];
      GetPlayerName(playerid, pName, sizeof(pName));
      format (showskillz, sizeof(showskillz), "{FFFFFF}Player {FF0000}%s{FFFFFF} Stats \n",pName );
      format (showskillz, sizeof(showskillz), "{FFFFFF}Pistol:{FF0000}%i , {FFFFFF}Silenced Pistol:{FF0000}%i , {FFFFFF}Desert:{FF0000}%i \n", WeaponInfo[playerid][SKILL_PISTOL] , WeaponInfo[playerid][SKILL_PISTOL_SILENCED], WeaponInfo[playerid][SKILL_DESERT_EAGLE]);
      format (showskillz, sizeof(showskillz), "{FFFFFF}Shotgun:{FF0000}%i , {FFFFFF}SawnOff ShotGun:{FF0000}%i , {FFFFFF}Spas12 Shotgun:{FF0000}%i \n", WeaponInfo[playerid][SKILL_SHOTGUN], WeaponInfo[playerid][SKILL_SAWNOFF_SHOTGUN], WeaponInfo[playerid][SKILL_SPAS12_SHOTGUN]);
      format (showskillz, sizeof(showskillz), "{FFFFFF}Uzi:{FF0000}%i , {FFFFFF}MP5:{FF0000}%i , {FFFFFF}AK47:{FF0000}%i \n", WeaponInfo[playerid][SKILL_MICRO_UZI], WeaponInfo[playerid][SKILL_MP5], WeaponInfo[playerid][SKILL_AK47]);
      format (showskillz, sizeof(showskillz), "{FFFFFF}M4:{FF0000}%i , {FFFFFF}Sniper Rifle:{FF0000}%i.",WeaponInfo[playerid][SKILL_M4], WeaponInfo[playerid][SKILL_SNIPERRIFLE]);
      SendClientMessage(playerid, -1, showskillz);
   }
   return 1;
}[/pawn]
Poslednja Izmena: Mart 22, 2019, 15:30:10 POSLE PODNE od Bašovski

Ne mozes tako, moras ovako:
[pawn]format (showskillz, sizeof(showskillz), "{FFFFFF}Player {FF0000}%s{FFFFFF} Stats \n",pName );
SendClientMessage(playerid, -1, showskillz);[/pawn]
i tako i ostale. Ispod svakog formata, stavis SendClientMessage.
Poslednja Izmena: Mart 20, 2019, 19:06:01 POSLE PODNE od Vasic
• Website: www.vasic.dev
Web Development & Cyber Security

Citat: Vasic poslato Mart 20, 2019, 19:04:37 POSLE PODNE
Ne mozes tako, moras ovako:
[pawn]format (showskillz, sizeof(showskillz), "{FFFFFF}Player {FF0000}%s{FFFFFF} Stats \n",pName );
SendClientMessage(playerid, -1, showskillz);[/pawn]
i tako i ostale. Ispod svakog formata, stavis SendClientMessage.

Hvala!  :D :D :D