[POMOC] Strtok

Započeo Danisha, Decembar 06, 2012, 22:49:46 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:RAvnens u zcmd
Detaljan opis problema:E ovako izbacuje mi erore ovaj strtok nesto a sve je ok pogledo sam u drugi gm i neznam sta da radim zbog toga mi nece oruzje u hitmanu i jos dosta toga izbacuje mi erore
a evo i ovo ima i sve ali opet izbacuje neznam sta da radim
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}

new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}

evo errora
array sizes do not match, or destination array is too small
a drugi error mi izbaci kao da imam vec definisam ovaj gore strtok ali sve sam pregledo po skripti i nema neznam sta je to
Dio skripte:
if(SelectChar[playerid] == 255)
{
    new idx;
    tmp = strtok(text, idx);
    if((strcmp("next", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("next")))
{
    switch (SelectCharID[playerid])
{
case 1: //Policija
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[0][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[1][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[2][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[3][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[4][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[5][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = JoinPed[6][0]; }
    else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, JoinPed[7][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = JoinPed[7][0]; }
    else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, JoinPed[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = JoinPed[8][0]; }
    else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, JoinPed[9][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = JoinPed[9][0]; }
    else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, JoinPed[10][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[10][0]; }
}
case 2: //FBI/ATF
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[11][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[11][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[12][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[12][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[13][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[13][0]; }
    }
case 3: //JSO
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[14][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[14][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[15][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[15][0]; }
}
case 4: //Fire&Ambulance
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[16][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[16][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[17][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[17][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[18][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[18][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[19][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[19][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[20][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[20][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[21][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[21][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[22][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[22][0]; }
}
case 5: //Varrios Los Aztecas
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[25][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[25][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[26][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[26][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[27][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[27][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[28][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[28][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[29][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[29][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[30][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[30][0]; }
}
case 6: //Le Signatra
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[31][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[31][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[32][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[32][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[33][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[33][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[34][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[34][0]; }
}
case 8: //Hitman Agency
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[38][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[38][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[39][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[39][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[40][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[40][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[41][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[41][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[42][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[42][0]; }
}
case 9: //Novinars
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[43][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[43][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[44][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[44][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[45][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[45][0]; }
}
case 10: //Taxi Cab Company
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[46][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[46][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[47][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[47][0]; }
}
case 11: //Driving/Flying School
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[48][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[48][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[49][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[49][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[50][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[50][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[51][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[51][0]; }
}
case 14: //Yamaguchi
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 122); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 122; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 118); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 118; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 186); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 186; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 123); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 123; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 113); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = 113; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, 169); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 169; }
}

case 15: //LCN
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[58][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[58][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[59][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[59][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[60][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[60][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[61][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[61][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[62][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[62][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[63][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[63][0]; }
}
case 16: //La Vice
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 28); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 28; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 67); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 67; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 22); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 22; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 180); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 180; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 144); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 144; }
}
case 20: //Musko civilian (by Ellis)
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, CivMuskoPeds[1][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = CivMuskoPeds[1][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, CivMuskoPeds[2][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = CivMuskoPeds[2][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, CivMuskoPeds[3][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = CivMuskoPeds[3][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, CivMuskoPeds[4][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = CivMuskoPeds[4][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, CivMuskoPeds[5][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = CivMuskoPeds[5][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, CivMuskoPeds[6][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = CivMuskoPeds[6][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, CivMuskoPeds[7][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = CivMuskoPeds[7][0]; }
    else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, CivMuskoPeds[8][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = CivMuskoPeds[8][0]; }
    else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, CivMuskoPeds[9][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = CivMuskoPeds[9][0]; }
    else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, CivMuskoPeds[10][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = CivMuskoPeds[10][0]; }
    else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, CivMuskoPeds[11][0]); SelectCharPlace[playerid] = 12; ChosenSkin[playerid] = CivMuskoPeds[11][0]; }
    else if(SelectCharPlace[playerid] == 12) { SetPlayerSkin(playerid, CivMuskoPeds[12][0]); SelectCharPlace[playerid] = 13; ChosenSkin[playerid] = CivMuskoPeds[12][0]; }
    else if(SelectCharPlace[playerid] == 13) { SetPlayerSkin(playerid, CivMuskoPeds[13][0]); SelectCharPlace[playerid] = 14; ChosenSkin[playerid] = CivMuskoPeds[13][0]; }
    else if(SelectCharPlace[playerid] == 14) { SetPlayerSkin(playerid, CivMuskoPeds[14][0]); SelectCharPlace[playerid] = 15; ChosenSkin[playerid] = CivMuskoPeds[14][0]; }
    else if(SelectCharPlace[playerid] == 15) { SetPlayerSkin(playerid, CivMuskoPeds[15][0]); SelectCharPlace[playerid] = 16; ChosenSkin[playerid] = CivMuskoPeds[15][0]; }
    else if(SelectCharPlace[playerid] == 16) { SetPlayerSkin(playerid, CivMuskoPeds[16][0]); SelectCharPlace[playerid] = 17; ChosenSkin[playerid] = CivMuskoPeds[16][0]; }
    else if(SelectCharPlace[playerid] == 17) { SetPlayerSkin(playerid, CivMuskoPeds[17][0]); SelectCharPlace[playerid] = 18; ChosenSkin[playerid] = CivMuskoPeds[17][0]; }
    else if(SelectCharPlace[playerid] == 18) { SetPlayerSkin(playerid, CivMuskoPeds[18][0]); SelectCharPlace[playerid] = 19; ChosenSkin[playerid] = CivMuskoPeds[18][0]; }
    else if(SelectCharPlace[playerid] == 19) { SetPlayerSkin(playerid, CivMuskoPeds[19][0]); SelectCharPlace[playerid] = 20; ChosenSkin[playerid] = CivMuskoPeds[19][0]; }
    else if(SelectCharPlace[playerid] == 20) { SetPlayerSkin(playerid, CivMuskoPeds[20][0]); SelectCharPlace[playerid] = 21; ChosenSkin[playerid] = CivMuskoPeds[20][0]; }
    else if(SelectCharPlace[playerid] == 21) { SetPlayerSkin(playerid, CivMuskoPeds[21][0]); SelectCharPlace[playerid] = 22; ChosenSkin[playerid] = CivMuskoPeds[21][0]; }
    else if(SelectCharPlace[playerid] == 22) { SetPlayerSkin(playerid, CivMuskoPeds[22][0]); SelectCharPlace[playerid] = 23; ChosenSkin[playerid] = CivMuskoPeds[22][0]; }
    else if(SelectCharPlace[playerid] == 23) { SetPlayerSkin(playerid, CivMuskoPeds[23][0]); SelectCharPlace[playerid] = 24; ChosenSkin[playerid] = CivMuskoPeds[23][0]; }
    else if(SelectCharPlace[playerid] == 24) { SetPlayerSkin(playerid, CivMuskoPeds[24][0]); SelectCharPlace[playerid] = 25; ChosenSkin[playerid] = CivMuskoPeds[24][0]; }
    else if(SelectCharPlace[playerid] == 25) { SetPlayerSkin(playerid, CivMuskoPeds[25][0]); SelectCharPlace[playerid] = 26; ChosenSkin[playerid] = CivMuskoPeds[25][0]; }
    else if(SelectCharPlace[playerid] == 26) { SetPlayerSkin(playerid, CivMuskoPeds[26][0]); SelectCharPlace[playerid] = 27; ChosenSkin[playerid] = CivMuskoPeds[26][0]; }
    else if(SelectCharPlace[playerid] == 27) { SetPlayerSkin(playerid, CivMuskoPeds[27][0]); SelectCharPlace[playerid] = 28; ChosenSkin[playerid] = CivMuskoPeds[27][0]; }
    else if(SelectCharPlace[playerid] == 28) { SetPlayerSkin(playerid, CivMuskoPeds[28][0]); SelectCharPlace[playerid] = 29; ChosenSkin[playerid] = CivMuskoPeds[28][0]; }
    else if(SelectCharPlace[playerid] == 29) { SetPlayerSkin(playerid, CivMuskoPeds[29][0]); SelectCharPlace[playerid] = 30; ChosenSkin[playerid] = CivMuskoPeds[29][0]; }
    else if(SelectCharPlace[playerid] == 30) { SetPlayerSkin(playerid, CivMuskoPeds[30][0]); SelectCharPlace[playerid] = 31; ChosenSkin[playerid] = CivMuskoPeds[30][0]; }
    else if(SelectCharPlace[playerid] == 31) { SetPlayerSkin(playerid, CivMuskoPeds[31][0]); SelectCharPlace[playerid] = 32; ChosenSkin[playerid] = CivMuskoPeds[31][0]; }
    else if(SelectCharPlace[playerid] == 32) { SetPlayerSkin(playerid, CivMuskoPeds[32][0]); SelectCharPlace[playerid] = 33; ChosenSkin[playerid] = CivMuskoPeds[32][0]; }
    else if(SelectCharPlace[playerid] == 33) { SetPlayerSkin(playerid, CivMuskoPeds[33][0]); SelectCharPlace[playerid] = 34; ChosenSkin[playerid] = CivMuskoPeds[33][0]; }
    else if(SelectCharPlace[playerid] == 34) { SetPlayerSkin(playerid, CivMuskoPeds[34][0]); SelectCharPlace[playerid] = 35; ChosenSkin[playerid] = CivMuskoPeds[34][0]; }
    else if(SelectCharPlace[playerid] == 35) { SetPlayerSkin(playerid, CivMuskoPeds[35][0]); SelectCharPlace[playerid] = 36; ChosenSkin[playerid] = CivMuskoPeds[35][0]; }
    else if(SelectCharPlace[playerid] == 36) { SetPlayerSkin(playerid, CivMuskoPeds[36][0]); SelectCharPlace[playerid] = 37; ChosenSkin[playerid] = CivMuskoPeds[36][0]; }
    else if(SelectCharPlace[playerid] == 37) { SetPlayerSkin(playerid, CivMuskoPeds[37][0]); SelectCharPlace[playerid] = 38; ChosenSkin[playerid] = CivMuskoPeds[37][0]; }
    else if(SelectCharPlace[playerid] == 38) { SetPlayerSkin(playerid, CivMuskoPeds[38][0]); SelectCharPlace[playerid] = 39; ChosenSkin[playerid] = CivMuskoPeds[38][0]; }
    else if(SelectCharPlace[playerid] == 39) { SetPlayerSkin(playerid, CivMuskoPeds[39][0]); SelectCharPlace[playerid] = 40; ChosenSkin[playerid] = CivMuskoPeds[39][0]; }
    else if(SelectCharPlace[playerid] == 40) { SetPlayerSkin(playerid, CivMuskoPeds[40][0]); SelectCharPlace[playerid] = 41; ChosenSkin[playerid] = CivMuskoPeds[40][0]; }
    else if(SelectCharPlace[playerid] == 41) { SetPlayerSkin(playerid, CivMuskoPeds[41][0]); SelectCharPlace[playerid] = 42; ChosenSkin[playerid] = CivMuskoPeds[41][0]; }
    else if(SelectCharPlace[playerid] == 42) { SetPlayerSkin(playerid, CivMuskoPeds[42][0]); SelectCharPlace[playerid] = 43; ChosenSkin[playerid] = CivMuskoPeds[42][0]; }
    else if(SelectCharPlace[playerid] == 43) { SetPlayerSkin(playerid, CivMuskoPeds[43][0]); SelectCharPlace[playerid] = 44; ChosenSkin[playerid] = CivMuskoPeds[43][0]; }
    else if(SelectCharPlace[playerid] == 44) { SetPlayerSkin(playerid, CivMuskoPeds[44][0]); SelectCharPlace[playerid] = 45; ChosenSkin[playerid] = CivMuskoPeds[44][0]; }
    else if(SelectCharPlace[playerid] == 45) { SetPlayerSkin(playerid, CivMuskoPeds[45][0]); SelectCharPlace[playerid] = 46; ChosenSkin[playerid] = CivMuskoPeds[45][0]; }
    else if(SelectCharPlace[playerid] == 46) { SetPlayerSkin(playerid, CivMuskoPeds[46][0]); SelectCharPlace[playerid] = 47; ChosenSkin[playerid] = CivMuskoPeds[46][0]; }
    else if(SelectCharPlace[playerid] == 47) { SetPlayerSkin(playerid, CivMuskoPeds[47][0]); SelectCharPlace[playerid] = 48; ChosenSkin[playerid] = CivMuskoPeds[47][0]; }
    else if(SelectCharPlace[playerid] == 48) { SetPlayerSkin(playerid, CivMuskoPeds[48][0]); SelectCharPlace[playerid] = 49; ChosenSkin[playerid] = CivMuskoPeds[48][0]; }
    else if(SelectCharPlace[playerid] == 49) { SetPlayerSkin(playerid, CivMuskoPeds[49][0]); SelectCharPlace[playerid] = 50; ChosenSkin[playerid] = CivMuskoPeds[49][0]; }
    else if(SelectCharPlace[playerid] == 50) { SetPlayerSkin(playerid, CivMuskoPeds[50][0]); SelectCharPlace[playerid] = 51; ChosenSkin[playerid] = CivMuskoPeds[50][0]; }
    else if(SelectCharPlace[playerid] == 51) { SetPlayerSkin(playerid, CivMuskoPeds[51][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = CivMuskoPeds[51][0]; }
}
case 30: //Zensko civilian (by Ellis)
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, CivZenskoPeds[1][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = CivZenskoPeds[1][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, CivZenskoPeds[2][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = CivZenskoPeds[2][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, CivZenskoPeds[3][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = CivZenskoPeds[3][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, CivZenskoPeds[4][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = CivZenskoPeds[4][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, CivZenskoPeds[5][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = CivZenskoPeds[5][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, CivZenskoPeds[6][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = CivZenskoPeds[6][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, CivZenskoPeds[7][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = CivZenskoPeds[7][0]; }
    else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, CivZenskoPeds[8][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = CivZenskoPeds[8][0]; }
    else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, CivZenskoPeds[9][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = CivZenskoPeds[9][0]; }
    else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, CivZenskoPeds[10][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = CivZenskoPeds[10][0]; }
    else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, CivZenskoPeds[11][0]); SelectCharPlace[playerid] = 12; ChosenSkin[playerid] = CivZenskoPeds[11][0]; }
    else if(SelectCharPlace[playerid] == 12) { SetPlayerSkin(playerid, CivZenskoPeds[12][0]); SelectCharPlace[playerid] = 13; ChosenSkin[playerid] = CivZenskoPeds[12][0]; }
    else if(SelectCharPlace[playerid] == 13) { SetPlayerSkin(playerid, CivZenskoPeds[13][0]); SelectCharPlace[playerid] = 14; ChosenSkin[playerid] = CivZenskoPeds[13][0]; }
    else if(SelectCharPlace[playerid] == 14) { SetPlayerSkin(playerid, CivZenskoPeds[14][0]); SelectCharPlace[playerid] = 15; ChosenSkin[playerid] = CivZenskoPeds[14][0]; }
    else if(SelectCharPlace[playerid] == 15) { SetPlayerSkin(playerid, CivZenskoPeds[15][0]); SelectCharPlace[playerid] = 16; ChosenSkin[playerid] = CivZenskoPeds[15][0]; }
    else if(SelectCharPlace[playerid] == 16) { SetPlayerSkin(playerid, CivZenskoPeds[16][0]); SelectCharPlace[playerid] = 17; ChosenSkin[playerid] = CivZenskoPeds[16][0]; }
    else if(SelectCharPlace[playerid] == 17) { SetPlayerSkin(playerid, CivZenskoPeds[17][0]); SelectCharPlace[playerid] = 18; ChosenSkin[playerid] = CivZenskoPeds[17][0]; }
    else if(SelectCharPlace[playerid] == 18) { SetPlayerSkin(playerid, CivZenskoPeds[18][0]); SelectCharPlace[playerid] = 19; ChosenSkin[playerid] = CivZenskoPeds[18][0]; }
    else if(SelectCharPlace[playerid] == 19) { SetPlayerSkin(playerid, CivZenskoPeds[19][0]); SelectCharPlace[playerid] = 20; ChosenSkin[playerid] = CivZenskoPeds[19][0]; }
    else if(SelectCharPlace[playerid] == 20) { SetPlayerSkin(playerid, CivZenskoPeds[20][0]); SelectCharPlace[playerid] = 21; ChosenSkin[playerid] = CivZenskoPeds[20][0]; }
    else if(SelectCharPlace[playerid] == 21) { SetPlayerSkin(playerid, CivZenskoPeds[21][0]); SelectCharPlace[playerid] = 22; ChosenSkin[playerid] = CivZenskoPeds[21][0]; }
    else if(SelectCharPlace[playerid] == 22) { SetPlayerSkin(playerid, CivZenskoPeds[22][0]); SelectCharPlace[playerid] = 23; ChosenSkin[playerid] = CivZenskoPeds[22][0]; }
    else if(SelectCharPlace[playerid] == 23) { SetPlayerSkin(playerid, CivZenskoPeds[23][0]); SelectCharPlace[playerid] = 24; ChosenSkin[playerid] = CivZenskoPeds[23][0]; }
    else if(SelectCharPlace[playerid] == 24) { SetPlayerSkin(playerid, CivZenskoPeds[24][0]); SelectCharPlace[playerid] = 25; ChosenSkin[playerid] = CivZenskoPeds[24][0]; }
    else if(SelectCharPlace[playerid] == 25) { SetPlayerSkin(playerid, CivZenskoPeds[25][0]); SelectCharPlace[playerid] = 26; ChosenSkin[playerid] = CivZenskoPeds[25][0]; }
    else if(SelectCharPlace[playerid] == 26) { SetPlayerSkin(playerid, CivZenskoPeds[26][0]); SelectCharPlace[playerid] = 27; ChosenSkin[playerid] = CivZenskoPeds[26][0]; }
    else if(SelectCharPlace[playerid] == 27) { SetPlayerSkin(playerid, CivZenskoPeds[27][0]); SelectCharPlace[playerid] = 28; ChosenSkin[playerid] = CivZenskoPeds[27][0]; }
    else if(SelectCharPlace[playerid] == 28) { SetPlayerSkin(playerid, CivZenskoPeds[28][0]); SelectCharPlace[playerid] = 29; ChosenSkin[playerid] = CivZenskoPeds[28][0]; }
    else if(SelectCharPlace[playerid] == 29) { SetPlayerSkin(playerid, CivZenskoPeds[29][0]); SelectCharPlace[playerid] = 30; ChosenSkin[playerid] = CivZenskoPeds[29][0]; }
    else if(SelectCharPlace[playerid] == 30) { SetPlayerSkin(playerid, CivZenskoPeds[30][0]); SelectCharPlace[playerid] = 31; ChosenSkin[playerid] = CivZenskoPeds[30][0]; }
    else if(SelectCharPlace[playerid] == 31) { SetPlayerSkin(playerid, CivZenskoPeds[31][0]); SelectCharPlace[playerid] = 32; ChosenSkin[playerid] = CivZenskoPeds[31][0]; }
    else if(SelectCharPlace[playerid] == 32) { SetPlayerSkin(playerid, CivZenskoPeds[32][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = CivZenskoPeds[32][0]; }
}

}
    return 0;
}
else if((strcmp("done", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("done")))
{
    if(ChangePos2[playerid][1] == 1)
    {
        SafeSetPlayerInterior(playerid, ChangePos2[playerid][0]);
        SafeSetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
        SetPlayerVirtualWorld(playerid,ChangePos3[playerid]);
        ChangePos2[playerid][1] = 0;
        //return 0;
    }
    PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
    PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
    SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel],0.0,0.0,0.0,0,0,0,0,0,0,0);
    gTeam[playerid] = PlayerInfo[playerid][pTeam];
SetPlayerToTeamColor(playerid);
MedicBill[playerid] = 0;
SetPlayerSpawn(playerid);
SetCameraBehindPlayer(playerid);
    SelectCharPlace[playerid] = 0;
    SelectCharID[playerid] = 0;
    SelectChar[playerid] = 0;
    SetTimerEx("backtoclothes", 500, false, "i", playerid);
TogglePlayerControllable(playerid, 1);
BizzEntered[playerid] = enterbizz[playerid];
    return 0;
}
else
{
    SCM(playerid, COLOR_WHITE, "* Use 'next', or 'done'.");
    return 0;
}
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):////

ispravno je, jesi stavio to na kraj skripte?

da i opet sve isto kao da ima dupli strtok a nema nigdje

U Ravens modu vec imas jedan strtok koliko ja znam, tako da ti ne trebaju 2, obrisi taj tvoj

obriso sam ga ali izbacuje ovaj eror onda
array sizes do not match, or destination array is too small
tamo gde sam upotrebio strtok
if(SelectChar[playerid] == 255)
{
    new idx;
    tmp = strtok(text, idx);
    if((strcmp("next", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("next")))
{
    switch (SelectCharID[playerid])
{
case 1: //Policija
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[0][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[1][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[2][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[3][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[4][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[5][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = JoinPed[6][0]; }
    else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, JoinPed[7][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = JoinPed[7][0]; }
    else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, JoinPed[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = JoinPed[8][0]; }
    else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, JoinPed[9][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = JoinPed[9][0]; }
    else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, JoinPed[10][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[10][0]; }
}
case 2: //FBI/ATF
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[11][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[11][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[12][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[12][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[13][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[13][0]; }
    }
case 3: //JSO
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[14][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[14][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[15][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[15][0]; }
}
case 4: //Fire&Ambulance
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[16][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[16][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[17][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[17][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[18][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[18][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[19][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[19][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[20][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[20][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[21][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[21][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[22][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[22][0]; }
}
case 5: //Varrios Los Aztecas
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[25][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[25][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[26][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[26][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[27][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[27][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[28][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[28][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[29][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[29][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[30][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[30][0]; }
}
case 6: //Le Signatra
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[31][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[31][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[32][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[32][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[33][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[33][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[34][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[34][0]; }
}
case 8: //Hitman Agency
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[38][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[38][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[39][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[39][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[40][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[40][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[41][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[41][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[42][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[42][0]; }
}
case 9: //Novinars
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[43][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[43][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[44][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[44][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[45][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[45][0]; }
}
case 10: //Taxi Cab Company
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[46][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[46][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[47][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[47][0]; }
}
case 11: //Driving/Flying School
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[48][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[48][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[49][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[49][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[50][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[50][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[51][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[51][0]; }
}
case 14: //Yamaguchi
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 122); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 122; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 118); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 118; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 186); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 186; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 123); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 123; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 113); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = 113; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, 169); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 169; }
}

case 15: //LCN
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[58][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[58][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[59][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[59][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[60][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[60][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[61][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[61][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[62][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[62][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[63][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[63][0]; }
}
case 16: //La Vice
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 28); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 28; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 67); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 67; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 22); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 22; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 180); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 180; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 144); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 144; }
}
case 20: //Musko civilian (by Ellis)
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, CivMuskoPeds[1][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = CivMuskoPeds[1][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, CivMuskoPeds[2][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = CivMuskoPeds[2][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, CivMuskoPeds[3][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = CivMuskoPeds[3][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, CivMuskoPeds[4][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = CivMuskoPeds[4][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, CivMuskoPeds[5][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = CivMuskoPeds[5][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, CivMuskoPeds[6][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = CivMuskoPeds[6][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, CivMuskoPeds[7][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = CivMuskoPeds[7][0]; }
    else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, CivMuskoPeds[8][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = CivMuskoPeds[8][0]; }
    else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, CivMuskoPeds[9][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = CivMuskoPeds[9][0]; }
    else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, CivMuskoPeds[10][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = CivMuskoPeds[10][0]; }
    else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, CivMuskoPeds[11][0]); SelectCharPlace[playerid] = 12; ChosenSkin[playerid] = CivMuskoPeds[11][0]; }
    else if(SelectCharPlace[playerid] == 12) { SetPlayerSkin(playerid, CivMuskoPeds[12][0]); SelectCharPlace[playerid] = 13; ChosenSkin[playerid] = CivMuskoPeds[12][0]; }
    else if(SelectCharPlace[playerid] == 13) { SetPlayerSkin(playerid, CivMuskoPeds[13][0]); SelectCharPlace[playerid] = 14; ChosenSkin[playerid] = CivMuskoPeds[13][0]; }
    else if(SelectCharPlace[playerid] == 14) { SetPlayerSkin(playerid, CivMuskoPeds[14][0]); SelectCharPlace[playerid] = 15; ChosenSkin[playerid] = CivMuskoPeds[14][0]; }
    else if(SelectCharPlace[playerid] == 15) { SetPlayerSkin(playerid, CivMuskoPeds[15][0]); SelectCharPlace[playerid] = 16; ChosenSkin[playerid] = CivMuskoPeds[15][0]; }
    else if(SelectCharPlace[playerid] == 16) { SetPlayerSkin(playerid, CivMuskoPeds[16][0]); SelectCharPlace[playerid] = 17; ChosenSkin[playerid] = CivMuskoPeds[16][0]; }
    else if(SelectCharPlace[playerid] == 17) { SetPlayerSkin(playerid, CivMuskoPeds[17][0]); SelectCharPlace[playerid] = 18; ChosenSkin[playerid] = CivMuskoPeds[17][0]; }
    else if(SelectCharPlace[playerid] == 18) { SetPlayerSkin(playerid, CivMuskoPeds[18][0]); SelectCharPlace[playerid] = 19; ChosenSkin[playerid] = CivMuskoPeds[18][0]; }
    else if(SelectCharPlace[playerid] == 19) { SetPlayerSkin(playerid, CivMuskoPeds[19][0]); SelectCharPlace[playerid] = 20; ChosenSkin[playerid] = CivMuskoPeds[19][0]; }
    else if(SelectCharPlace[playerid] == 20) { SetPlayerSkin(playerid, CivMuskoPeds[20][0]); SelectCharPlace[playerid] = 21; ChosenSkin[playerid] = CivMuskoPeds[20][0]; }
    else if(SelectCharPlace[playerid] == 21) { SetPlayerSkin(playerid, CivMuskoPeds[21][0]); SelectCharPlace[playerid] = 22; ChosenSkin[playerid] = CivMuskoPeds[21][0]; }
    else if(SelectCharPlace[playerid] == 22) { SetPlayerSkin(playerid, CivMuskoPeds[22][0]); SelectCharPlace[playerid] = 23; ChosenSkin[playerid] = CivMuskoPeds[22][0]; }
    else if(SelectCharPlace[playerid] == 23) { SetPlayerSkin(playerid, CivMuskoPeds[23][0]); SelectCharPlace[playerid] = 24; ChosenSkin[playerid] = CivMuskoPeds[23][0]; }
    else if(SelectCharPlace[playerid] == 24) { SetPlayerSkin(playerid, CivMuskoPeds[24][0]); SelectCharPlace[playerid] = 25; ChosenSkin[playerid] = CivMuskoPeds[24][0]; }
    else if(SelectCharPlace[playerid] == 25) { SetPlayerSkin(playerid, CivMuskoPeds[25][0]); SelectCharPlace[playerid] = 26; ChosenSkin[playerid] = CivMuskoPeds[25][0]; }
    else if(SelectCharPlace[playerid] == 26) { SetPlayerSkin(playerid, CivMuskoPeds[26][0]); SelectCharPlace[playerid] = 27; ChosenSkin[playerid] = CivMuskoPeds[26][0]; }
    else if(SelectCharPlace[playerid] == 27) { SetPlayerSkin(playerid, CivMuskoPeds[27][0]); SelectCharPlace[playerid] = 28; ChosenSkin[playerid] = CivMuskoPeds[27][0]; }
    else if(SelectCharPlace[playerid] == 28) { SetPlayerSkin(playerid, CivMuskoPeds[28][0]); SelectCharPlace[playerid] = 29; ChosenSkin[playerid] = CivMuskoPeds[28][0]; }
    else if(SelectCharPlace[playerid] == 29) { SetPlayerSkin(playerid, CivMuskoPeds[29][0]); SelectCharPlace[playerid] = 30; ChosenSkin[playerid] = CivMuskoPeds[29][0]; }
    else if(SelectCharPlace[playerid] == 30) { SetPlayerSkin(playerid, CivMuskoPeds[30][0]); SelectCharPlace[playerid] = 31; ChosenSkin[playerid] = CivMuskoPeds[30][0]; }
    else if(SelectCharPlace[playerid] == 31) { SetPlayerSkin(playerid, CivMuskoPeds[31][0]); SelectCharPlace[playerid] = 32; ChosenSkin[playerid] = CivMuskoPeds[31][0]; }
    else if(SelectCharPlace[playerid] == 32) { SetPlayerSkin(playerid, CivMuskoPeds[32][0]); SelectCharPlace[playerid] = 33; ChosenSkin[playerid] = CivMuskoPeds[32][0]; }
    else if(SelectCharPlace[playerid] == 33) { SetPlayerSkin(playerid, CivMuskoPeds[33][0]); SelectCharPlace[playerid] = 34; ChosenSkin[playerid] = CivMuskoPeds[33][0]; }
    else if(SelectCharPlace[playerid] == 34) { SetPlayerSkin(playerid, CivMuskoPeds[34][0]); SelectCharPlace[playerid] = 35; ChosenSkin[playerid] = CivMuskoPeds[34][0]; }
    else if(SelectCharPlace[playerid] == 35) { SetPlayerSkin(playerid, CivMuskoPeds[35][0]); SelectCharPlace[playerid] = 36; ChosenSkin[playerid] = CivMuskoPeds[35][0]; }
    else if(SelectCharPlace[playerid] == 36) { SetPlayerSkin(playerid, CivMuskoPeds[36][0]); SelectCharPlace[playerid] = 37; ChosenSkin[playerid] = CivMuskoPeds[36][0]; }
    else if(SelectCharPlace[playerid] == 37) { SetPlayerSkin(playerid, CivMuskoPeds[37][0]); SelectCharPlace[playerid] = 38; ChosenSkin[playerid] = CivMuskoPeds[37][0]; }
    else if(SelectCharPlace[playerid] == 38) { SetPlayerSkin(playerid, CivMuskoPeds[38][0]); SelectCharPlace[playerid] = 39; ChosenSkin[playerid] = CivMuskoPeds[38][0]; }
    else if(SelectCharPlace[playerid] == 39) { SetPlayerSkin(playerid, CivMuskoPeds[39][0]); SelectCharPlace[playerid] = 40; ChosenSkin[playerid] = CivMuskoPeds[39][0]; }
    else if(SelectCharPlace[playerid] == 40) { SetPlayerSkin(playerid, CivMuskoPeds[40][0]); SelectCharPlace[playerid] = 41; ChosenSkin[playerid] = CivMuskoPeds[40][0]; }
    else if(SelectCharPlace[playerid] == 41) { SetPlayerSkin(playerid, CivMuskoPeds[41][0]); SelectCharPlace[playerid] = 42; ChosenSkin[playerid] = CivMuskoPeds[41][0]; }
    else if(SelectCharPlace[playerid] == 42) { SetPlayerSkin(playerid, CivMuskoPeds[42][0]); SelectCharPlace[playerid] = 43; ChosenSkin[playerid] = CivMuskoPeds[42][0]; }
    else if(SelectCharPlace[playerid] == 43) { SetPlayerSkin(playerid, CivMuskoPeds[43][0]); SelectCharPlace[playerid] = 44; ChosenSkin[playerid] = CivMuskoPeds[43][0]; }
    else if(SelectCharPlace[playerid] == 44) { SetPlayerSkin(playerid, CivMuskoPeds[44][0]); SelectCharPlace[playerid] = 45; ChosenSkin[playerid] = CivMuskoPeds[44][0]; }
    else if(SelectCharPlace[playerid] == 45) { SetPlayerSkin(playerid, CivMuskoPeds[45][0]); SelectCharPlace[playerid] = 46; ChosenSkin[playerid] = CivMuskoPeds[45][0]; }
    else if(SelectCharPlace[playerid] == 46) { SetPlayerSkin(playerid, CivMuskoPeds[46][0]); SelectCharPlace[playerid] = 47; ChosenSkin[playerid] = CivMuskoPeds[46][0]; }
    else if(SelectCharPlace[playerid] == 47) { SetPlayerSkin(playerid, CivMuskoPeds[47][0]); SelectCharPlace[playerid] = 48; ChosenSkin[playerid] = CivMuskoPeds[47][0]; }
    else if(SelectCharPlace[playerid] == 48) { SetPlayerSkin(playerid, CivMuskoPeds[48][0]); SelectCharPlace[playerid] = 49; ChosenSkin[playerid] = CivMuskoPeds[48][0]; }
    else if(SelectCharPlace[playerid] == 49) { SetPlayerSkin(playerid, CivMuskoPeds[49][0]); SelectCharPlace[playerid] = 50; ChosenSkin[playerid] = CivMuskoPeds[49][0]; }
    else if(SelectCharPlace[playerid] == 50) { SetPlayerSkin(playerid, CivMuskoPeds[50][0]); SelectCharPlace[playerid] = 51; ChosenSkin[playerid] = CivMuskoPeds[50][0]; }
    else if(SelectCharPlace[playerid] == 51) { SetPlayerSkin(playerid, CivMuskoPeds[51][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = CivMuskoPeds[51][0]; }
}
case 30: //Zensko civilian (by Ellis)
{
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, CivZenskoPeds[1][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = CivZenskoPeds[1][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, CivZenskoPeds[2][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = CivZenskoPeds[2][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, CivZenskoPeds[3][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = CivZenskoPeds[3][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, CivZenskoPeds[4][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = CivZenskoPeds[4][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, CivZenskoPeds[5][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = CivZenskoPeds[5][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, CivZenskoPeds[6][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = CivZenskoPeds[6][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, CivZenskoPeds[7][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = CivZenskoPeds[7][0]; }
    else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, CivZenskoPeds[8][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = CivZenskoPeds[8][0]; }
    else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, CivZenskoPeds[9][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = CivZenskoPeds[9][0]; }
    else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, CivZenskoPeds[10][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = CivZenskoPeds[10][0]; }
    else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, CivZenskoPeds[11][0]); SelectCharPlace[playerid] = 12; ChosenSkin[playerid] = CivZenskoPeds[11][0]; }
    else if(SelectCharPlace[playerid] == 12) { SetPlayerSkin(playerid, CivZenskoPeds[12][0]); SelectCharPlace[playerid] = 13; ChosenSkin[playerid] = CivZenskoPeds[12][0]; }
    else if(SelectCharPlace[playerid] == 13) { SetPlayerSkin(playerid, CivZenskoPeds[13][0]); SelectCharPlace[playerid] = 14; ChosenSkin[playerid] = CivZenskoPeds[13][0]; }
    else if(SelectCharPlace[playerid] == 14) { SetPlayerSkin(playerid, CivZenskoPeds[14][0]); SelectCharPlace[playerid] = 15; ChosenSkin[playerid] = CivZenskoPeds[14][0]; }
    else if(SelectCharPlace[playerid] == 15) { SetPlayerSkin(playerid, CivZenskoPeds[15][0]); SelectCharPlace[playerid] = 16; ChosenSkin[playerid] = CivZenskoPeds[15][0]; }
    else if(SelectCharPlace[playerid] == 16) { SetPlayerSkin(playerid, CivZenskoPeds[16][0]); SelectCharPlace[playerid] = 17; ChosenSkin[playerid] = CivZenskoPeds[16][0]; }
    else if(SelectCharPlace[playerid] == 17) { SetPlayerSkin(playerid, CivZenskoPeds[17][0]); SelectCharPlace[playerid] = 18; ChosenSkin[playerid] = CivZenskoPeds[17][0]; }
    else if(SelectCharPlace[playerid] == 18) { SetPlayerSkin(playerid, CivZenskoPeds[18][0]); SelectCharPlace[playerid] = 19; ChosenSkin[playerid] = CivZenskoPeds[18][0]; }
    else if(SelectCharPlace[playerid] == 19) { SetPlayerSkin(playerid, CivZenskoPeds[19][0]); SelectCharPlace[playerid] = 20; ChosenSkin[playerid] = CivZenskoPeds[19][0]; }
    else if(SelectCharPlace[playerid] == 20) { SetPlayerSkin(playerid, CivZenskoPeds[20][0]); SelectCharPlace[playerid] = 21; ChosenSkin[playerid] = CivZenskoPeds[20][0]; }
    else if(SelectCharPlace[playerid] == 21) { SetPlayerSkin(playerid, CivZenskoPeds[21][0]); SelectCharPlace[playerid] = 22; ChosenSkin[playerid] = CivZenskoPeds[21][0]; }
    else if(SelectCharPlace[playerid] == 22) { SetPlayerSkin(playerid, CivZenskoPeds[22][0]); SelectCharPlace[playerid] = 23; ChosenSkin[playerid] = CivZenskoPeds[22][0]; }
    else if(SelectCharPlace[playerid] == 23) { SetPlayerSkin(playerid, CivZenskoPeds[23][0]); SelectCharPlace[playerid] = 24; ChosenSkin[playerid] = CivZenskoPeds[23][0]; }
    else if(SelectCharPlace[playerid] == 24) { SetPlayerSkin(playerid, CivZenskoPeds[24][0]); SelectCharPlace[playerid] = 25; ChosenSkin[playerid] = CivZenskoPeds[24][0]; }
    else if(SelectCharPlace[playerid] == 25) { SetPlayerSkin(playerid, CivZenskoPeds[25][0]); SelectCharPlace[playerid] = 26; ChosenSkin[playerid] = CivZenskoPeds[25][0]; }
    else if(SelectCharPlace[playerid] == 26) { SetPlayerSkin(playerid, CivZenskoPeds[26][0]); SelectCharPlace[playerid] = 27; ChosenSkin[playerid] = CivZenskoPeds[26][0]; }
    else if(SelectCharPlace[playerid] == 27) { SetPlayerSkin(playerid, CivZenskoPeds[27][0]); SelectCharPlace[playerid] = 28; ChosenSkin[playerid] = CivZenskoPeds[27][0]; }
    else if(SelectCharPlace[playerid] == 28) { SetPlayerSkin(playerid, CivZenskoPeds[28][0]); SelectCharPlace[playerid] = 29; ChosenSkin[playerid] = CivZenskoPeds[28][0]; }
    else if(SelectCharPlace[playerid] == 29) { SetPlayerSkin(playerid, CivZenskoPeds[29][0]); SelectCharPlace[playerid] = 30; ChosenSkin[playerid] = CivZenskoPeds[29][0]; }
    else if(SelectCharPlace[playerid] == 30) { SetPlayerSkin(playerid, CivZenskoPeds[30][0]); SelectCharPlace[playerid] = 31; ChosenSkin[playerid] = CivZenskoPeds[30][0]; }
    else if(SelectCharPlace[playerid] == 31) { SetPlayerSkin(playerid, CivZenskoPeds[31][0]); SelectCharPlace[playerid] = 32; ChosenSkin[playerid] = CivZenskoPeds[31][0]; }
    else if(SelectCharPlace[playerid] == 32) { SetPlayerSkin(playerid, CivZenskoPeds[32][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = CivZenskoPeds[32][0]; }
}

}
    return 0;
}
else if((strcmp("done", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("done")))
{
    if(ChangePos2[playerid][1] == 1)
    {
        SafeSetPlayerInterior(playerid, ChangePos2[playerid][0]);
        SafeSetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
        SetPlayerVirtualWorld(playerid,ChangePos3[playerid]);
        ChangePos2[playerid][1] = 0;
        //return 0;
    }
    PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
    PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
    SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel],0.0,0.0,0.0,0,0,0,0,0,0,0);
    gTeam[playerid] = PlayerInfo[playerid][pTeam];
SetPlayerToTeamColor(playerid);
MedicBill[playerid] = 0;
SetPlayerSpawn(playerid);
SetCameraBehindPlayer(playerid);
    SelectCharPlace[playerid] = 0;
    SelectCharID[playerid] = 0;
    SelectChar[playerid] = 0;
    SetTimerEx("backtoclothes", 500, false, "i", playerid);
TogglePlayerControllable(playerid, 1);
BizzEntered[playerid] = enterbizz[playerid];
    return 0;
}
else
{
    SCM(playerid, COLOR_WHITE, "* Use 'next', or 'done'.");
    return 0;
}
}

nadji strtok, i povecaj ga na 128.

new tmp[128];
new string[156];

evo ovo ima samo na vrhu toga



Samo umesto ovog:

new string[156];
stavis:

new string[157]; (na primer)
//

ok je sada sve stavio sam na 256 MOZE OVDE LOCK