Maxim_Shmakov
Компетентный
Сделал новую фракцию и возникли проблеммы со скинами!
1) Если делаю так:
Сюда добовляем: else if(Current == ChoseSkin)
Без JoinPed, Я выбираю любой скин а у меня все равно становится скин №248
2) Если делаю так:
Сюда добовляем: else if(Current == ChoseSkin)
И в JoinPed делаю так:
То вылезает ошибка:
1) Если делаю так:
Сюда добовляем: else if(Current == ChoseSkin)
PHP:
case 23:
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 248); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 248; }
else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 247); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 247; }
else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 181); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 181; }
else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 192); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 192; }
ShowMenuForPlayer(ChoseSkin,playerid);
}
2) Если делаю так:
Сюда добовляем: else if(Current == ChoseSkin)
PHP:
case 23:
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[248][0]); SelectCharPlace[playerid] = 2; InviteSkin[playerid] = JoinPed[248][0]; }
else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[247][0]); SelectCharPlace[playerid] = 3; InviteSkin[playerid] = JoinPed[247][0]; }
else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[181][0]); SelectCharPlace[playerid] = 4; InviteSkin[playerid] = JoinPed[181][0]; }
else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[192][0]); SelectCharPlace[playerid] = 5; InviteSkin[playerid] = JoinPed[192][0]; }
ShowMenuForPlayer(ChoseSkin,playerid);
}
PHP:
new JoinPed[103][1] = {
{248},//baikery
{247},//baikery
{181},//baikery
{192},//baikery
PHP:
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(1915) : error 018: initialization data exceeds declared size
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(1920) : error 010: invalid function or declaration
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(2575) : warning 203: symbol is never used: "money"
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(2575) : warning 203: symbol is never used: "playerid"
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(19495) : error 032: array index out of bounds (variable "JoinPed")
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(19495) : error 032: array index out of bounds (variable "JoinPed")
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(19496) : error 032: array index out of bounds (variable "JoinPed")
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(19496) : error 032: array index out of bounds (variable "JoinPed")
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(19497) : error 032: array index out of bounds (variable "JoinPed")
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(19497) : error 032: array index out of bounds (variable "JoinPed")
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(19498) : error 032: array index out of bounds (variable "JoinPed")
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(19498) : error 032: array index out of bounds (variable "JoinPed")
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(41857) : warning 204: symbol is assigned a value that is never used: "string"
C:\Samp-RP_YourGame\gamemodes\Samp-Rp.pwn(45147) : warning 203: symbol is never used: "PCash"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
Последнее редактирование:
