doesn't work the command error plz help
#7

Код:
  if (strcmp(cmdtext, "/duel 1", true) == 0)
{
  SetPlayerVirtualWorld(playerid, 0);
  if(IsPlayerInAnyVehicle(playerid)) //If they are in a vehicle
  SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 0); //Take the vehicle with them
  return 1;
}
change that to this

Код:
  if (strcmp(cmdtext, "/duel 1", true) == 0)
{
  SetPlayerVirtualWorld(playerid, 1);
  if(IsPlayerInAnyVehicle(playerid)) {
  SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 1);} //Take the vehicle with them
  return 1;
}
You have messed up with { u needed to put it behind if and wirtual world

P.S
in cmd you can put 0-10000000 spaces ... but when u use it you need to write like that..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)