14.12.2010, 15:44
Hey all 
I have a little trouble with Random Skin
here is male and female skin:
When player press Male or Female they should got a message and random skin:
But I have warrings:
Who know what it is wrong in this script?
P.S My english poor, I think you understand me

I have a little trouble with Random Skin
here is male and female skin:
Код:
new male[52][1] = { // Male civilians down here (by Ellis) {2}, {47}, {48}, {50}, {58}, {60}, {68}, {72}, {73}, {80}, {81}, {82}, {83}, {95}, {100}, {101}, {102}, {103}, {104}, {108}, {109}, {110}, {121}, {122}, {123}, {135}, {142}, {143}, {144}, {146}, {153}, {154}, {155}, {156}, {158}, {159}, {160}, {161}, {170}, {179}, {180}, {189}, {202}, {203}, {204}, {258}, {259}, {260}, {293}, {295}, {296}, {297} }; new female[33][2] = { // Female civilians down here (by Ellis) {55}, {56}, {63}, {69}, {76}, {85}, {91}, {93}, {131}, {141}, {148}, {150}, {151}, {152}, {157}, {169}, {172}, {190}, {192}, {193}, {194}, {195}, {198}, {201}, {214}, {216}, {219}, {225}, {233}, {237}, {251}, {263}, {298} };
Код:
if(dialogid == 12) //Jei dialogid bus lygus 1 { if(!response) //Jei paspaude mygtuka moteris { playerDB[playerid][lytis] = 0; new stringai[128]; format(stringai,sizeof(stringai),"Taigi, %s, jūs esate moteris :) Prisijunkite ir gerai praleiskite laiką ;]:",name); new femaleskin; femaleskin = random(sizeof(female)); SetPlayerSkin(playerid, femaleskin); SetPlayerSkin(playerid, femaleskin); ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Prisijungimas",stringai,"Prisijungti","Iљeiti"); return 1; } if(response) //Jei paspaude mygtuka vyras { playerDB[playerid][lytis] = 1; new stringai[128]; format(stringai,sizeof(stringai),"Taigi, %s, jūs esate vyras :) Prisijunkite ir gerai praleiskite laiką ;]:",name); new maleskin; maleskin = random(sizeof(male)); SetPlayerSkin(playerid, maleskin); ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Prisijungimas",stringai,"Prisijungti","Iљeiti"); return 1; } }
Код:
C:\Documents and Settings\Tomas\Desktop\LTG_5.5v_LT\LTG 5.5v LT\gamemodes\GRP.pwn(15762) : warning 203: symbol is never used: "female" C:\Documents and Settings\Tomas\Desktop\LTG_5.5v_LT\LTG 5.5v LT\gamemodes\GRP.pwn(15762) : warning 203: symbol is never used: "male" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
P.S My english poor, I think you understand me
