if(strcmp(cmd, "/editcardes", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not an Admin !");
return 1;
}
if(IsAnOwnableCar(idcar))
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /osay TEXT");
return 1;
}
CarInfo[idcar][cDescription] = result;
format(string, sizeof(string), "Vehicle id %s's price changed to %d",idcar,CarInfo[idcar][cValue],result);
SendClientMessage(playerid, COLOR_GRAD2, string);
OnPropUpdate();
}
}
return 1;
}
|
Originally Posted by diesulke
Wich line is 21695? Can you show us the line please.
|
format(CarInfo[idcar][cDescription],256,"%s",result);