29.03.2009, 18:42
Sorry i Dont speak much english but i need Help, i like update my code for this mi old code are
Where i need change to update?
PD: Sorry my bad english thanks for you helpme
Код:
while(samp_mysql_strtok(arm, "|", armas)==1 && consulta[playerid] <= 6) //From 2nd call to the end you MUST call strtok without resultline
{
while(samp_mysql_strtok(arm, "|", "")==1 && consulta[playerid] <= 6) //From 2nd call to the end you MUST call strtok without resultline
{
consulta[playerid]++;
if(consulta[playerid] == 1)
{
arma2[playerid] = strval(arm);
if(arma2[playerid] == strval(""))
arma2[playerid] = 0;
printf("arma1: %s",arm); // palos
}
if(consulta[playerid] == 2)
{
arma3[playerid] = strval(arm);
if(arma3[playerid] == strval(""))
arma3[playerid] = 0;
printf("arma2: %s",arm); // pistolitas
}
if(consulta[playerid] == 3)
{
arma4[playerid] = strval(arm);
if(arma4[playerid] == strval(""))
arma4[playerid] = 0;
printf("arma3: %s",arm); //m4
}
if(consulta[playerid] == 4)
{
arma5[playerid] = strval(arm);
if(arma5[playerid] == strval(""))
arma5[playerid] = 0;
printf("arma4: %s",arm); // escopetas
}
if(consulta[playerid] == 5)
{
arma6[playerid] = strval(arm);
if(arma6[playerid] == strval(""))
arma6[playerid] = 0;
printf("arma5: %s",arm); // mp5
}
}
}
PD: Sorry my bad english thanks for you helpme

